Workspace 6.21.5
|
Represents one set of data to be included in a Plot. More...
#include <DataAnalysis/Plot2D/plotitem.h>
Public Member Functions | |
PlotItem () | |
PlotItem (const PlotItem &item) | |
~PlotItem () | |
ColorMode | getColorMode () const |
const ColorScale & | getColorScale () const |
bool | getFitPointsToXAxisLimits () const |
bool | getFitPointsToYAxisLimits () const |
Glyph | getGlyph () const |
bool | getIncludeInLegend () const |
const QString & | getLabel () const |
LineMode | getLineMode () const |
LineStyle | getLineStyle () const |
LineType | getLineType () const |
bool | getRenderPlotLine () const |
const QVector< int > & | getSectionsToRender () const |
const DataSeries & | getSourceColor () const |
const DataSeries & | getSourceX () const |
const DataSeries & | getSourceY () const |
const QColor & | getUniformColor () const |
bool | isAntiAliasing () const |
bool | isEnabled () const |
PlotItem & | operator= (const PlotItem &item) |
void | setAntiAliasing (bool antiAliasing) |
void | setColorMode (ColorMode colorMode) |
void | setColorScale (const ColorScale &colorScale) |
void | setEnabled (bool enabled) |
void | setFitPointsToXAxisLimits (bool fit) |
void | setFitPointsToYAxisLimits (bool fit) |
void | setGlyph (Glyph glyph) |
void | setIncludeInLegend (bool includeInLegend) |
void | setLabel (const QString &label) |
void | setLineMode (LineMode lineMode) |
void | setLineStyle (LineStyle lineStyle) |
void | setLineType (LineType lineType) |
void | setRenderPlotLine (bool renderPlotLine) |
void | setSectionsToRender (const QVector< int > §ionsToRender) |
void | setSourceColor (const DataSeries &series) |
void | setSourceX (const DataSeries &series) |
void | setSourceY (const DataSeries &series) |
void | setUniformColor (const QColor &color) |
Static Public Member Functions | |
static QPainterPath | createPath (Glyph glyph, double size) |
static const QVector< qreal > & | getDashPattern (LineStyle lineStyle) |
static bool | isFilled (Glyph glyph) |
A PlotItem object specifies a pair of DataSeries objects to be used to generate a single line, set of points, etc. to be included in a Plot. It also contains information on how the data should be presented, such as line style and color, glyphs at each data point, etc.
enum ColorMode |
enum Glyph |
enum LineMode |
enum LineStyle |
enum LineType |
PlotItem | ( | ) |
~PlotItem | ( | ) |
|
static |
glyph | Specifies the glyph for which a painter path should be built. |
size | This is the size (ie width or height) of the glyph. |
PlotItem::ColorMode getColorMode | ( | ) | const |
const ColorScale & getColorScale | ( | ) | const |
|
static |
lineStyle | The line style for which the custom dash pattern is needed. It should not really be either NoLine or SolidLine. |
bool getFitPointsToXAxisLimits | ( | ) | const |
bool getFitPointsToYAxisLimits | ( | ) | const |
PlotItem::Glyph getGlyph | ( | ) | const |
bool getIncludeInLegend | ( | ) | const |
const QString & getLabel | ( | ) | const |
PlotItem::LineMode getLineMode | ( | ) | const |
PlotItem::LineStyle getLineStyle | ( | ) | const |
PlotItem::LineType getLineType | ( | ) | const |
bool getRenderPlotLine | ( | ) | const |
const QVector< int > & getSectionsToRender | ( | ) | const |
const DataSeries & getSourceColor | ( | ) | const |
const DataSeries & getSourceX | ( | ) | const |
const DataSeries & getSourceY | ( | ) | const |
const QColor & getUniformColor | ( | ) | const |
bool isAntiAliasing | ( | ) | const |
bool isEnabled | ( | ) | const |
|
static |
void setAntiAliasing | ( | bool | antiAliasing | ) |
antiAliasing | If set to true, then the plot item will be drawn with anti-aliasing turned on where appropriate. The default is off, since anti-aliasing can make some plots appear less crisp. |
void setColorMode | ( | PlotItem::ColorMode | colorMode | ) |
colorMode | Specifies the color mode to use |
void setColorScale | ( | const ColorScale & | colorScale | ) |
colorScale | Specifies the color to use for the plot item. The default color is black. |
void setEnabled | ( | bool | enabled | ) |
enabled | If this is set to true, then the plot item is allowed to appear in plots. Setting this to false is the easiest way to hide this particular plot item, since the item then doesn't have to be removed from plots and all its other properties are left untouched. Plot items are disabled by default because when created, they have no data. |
void setFitPointsToXAxisLimits | ( | bool | fit | ) |
void setFitPointsToYAxisLimits | ( | bool | fit | ) |
void setGlyph | ( | PlotItem::Glyph | glyph | ) |
glyph | Specifies what glyph to draw at each point. |
void setIncludeInLegend | ( | bool | includeInLegend | ) |
includeInLegend | If set to true, then this plot item will be included in any legend shown on its plot. The default is true. |
void setLabel | ( | const QString & | label | ) |
label | The label to use for this plot item. If it is left blank, then the description associated with the Y data in the data collection will be used. Normally, the data collection can be expected to provide reasonable descriptions, so setting the label is not normally needed. |
void setLineMode | ( | PlotItem::LineMode | lineMode | ) |
lineMode | Specifies what line mode to use for this plot item. The default is PlotItem::OneLineThroughAllDataPoints. |
void setLineStyle | ( | PlotItem::LineStyle | lineStyle | ) |
lineStyle | Specifies what line style to use for this plot item. The default is PlotItem::SolidLine. |
void setLineType | ( | PlotItem::LineType | lineType | ) |
lineType | Specifies how lines are connected to one another for line plots. The default is PlotItem::Segment, which means to join the end points of each line segment, resulting in a continuous set of lines from point to point. |
void setRenderPlotLine | ( | bool | renderPlotLine | ) |
void setSectionsToRender | ( | const QVector< int > & | sectionsToRender | ) |
sectionsToRender | Series of integer pairs to determine which sections of a plot line will be rendered. If this array is empty, the whole plot will be rendered. This array of ints needs to be ordered so that the plot render doesn't fall into an inifnite loop. |
void setSourceColor | ( | const DataSeries & | series | ) |
series | The data series to use as the source for the color data. The default is a NullDataSeries which will create a valid but empty plot (assuming the X source is compatible). |
void setSourceX | ( | const DataSeries & | series | ) |
series | The data series to use as the source for the X data. The default is a SequenceDataSeries, which will allow just the Y data to have a source and be plotted against a regularly spaced X axis. |
void setSourceY | ( | const DataSeries & | series | ) |
series | The data series to use as the source for the Y data. The default is a NullDataSeries which will create a valid but empty plot (assuming the X source is compatible). |
void setUniformColor | ( | const QColor & | color | ) |
color | Specifies the color to use for the plot item. The default color is black. |