36 #include "vtkChartsCoreModule.h"
65 vtkGetMacro(LegendVisibility,
bool);
143 virtual void SetColor(
unsigned char r,
unsigned char g,
unsigned char b,
145 virtual void SetColor(
double r,
double g,
double b);
248 vtkGetMacro(UseIndexForXSeries,
bool);
290 vtkGetMacro(Selectable,
bool);
337 { bounds[0] = bounds[1] = bounds[2] = bounds[3] = 0.0; }
367 return this->GetBounds(bounds);
489 void operator=(
const vtkPlot &) VTK_DELETE_FUNCTION;
takes care of drawing 2D axes
provides a brush that fills shapes drawn by vtkContext2D.
Class for drawing 2D primitives to a graphical context.
base class for items that are part of a vtkContextScene.
Abstract class for 2D context mappers.
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
Abstract class for 2D plots.
bool UseIndexForXSeries
Use the Y array index for the X value.
vtkBrush * GetSelectionBrush()
virtual vtkStdString GetLabel()
Get the label of this plot.
virtual void UpdateCache()
Subclasses that build data caches to speed up painting should override this method to update such cac...
virtual int GetTooltipPrecision()
virtual void GetColor(double rgb[3])
vtkRectd ShiftScale
The current shift in origin and scaling factor applied to the plot.
virtual int GetTooltipNotation()
void SetSelectionPen(vtkPen *pen)
Set/get the vtkBrush object that controls how this plot fills selected shapes.
vtkSmartPointer< vtkStringArray > IndexedLabels
Holds Labels when they're auto-created.
void SetIndexedLabels(vtkStringArray *labels)
Set indexed labels for the plot.
virtual void SetInputData(vtkTable *table, const vtkStdString &xColumn, const vtkStdString &yColumn)
virtual bool SelectPoints(const vtkVector2f &min, const vtkVector2f &max)
Select all points in the specified rectangle.
virtual vtkTable * GetInput()
Get the input table used by the plot.
vtkAxis * XAxis
The X axis associated with this plot.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual vtkStdString GetTooltipLabel(const vtkVector2d &plotPos, vtkIdType seriesIndex, vtkIdType segmentIndex)
Generate and return the tooltip label string for this plot The segmentIndex parameter is ignored,...
virtual void SetWidth(float width)
Set the width of the line.
virtual int GetNumberOfLabels()
Get the number of labels associated with this plot.
virtual vtkStdString GetTooltipLabelFormat()
virtual vtkVariant GetProperty(const vtkStdString &property)
virtual void SetInputData(vtkTable *table)
This is a convenience function to set the input table and the x, y column for the plot.
virtual void SetColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a)
Set the plot color.
vtkStdString GetLabel(vtkIdType index)
Get the label at the specified index.
vtkContextMapper2D * GetData()
Get the data object that the plot will draw.
virtual vtkStringArray * GetIndexedLabels()
Get the indexed labels array.
virtual void SetInputArray(int index, const vtkStdString &name)
Convenience function to set the input arrays.
virtual void GetUnscaledInputBounds(double bounds[4])
Provide un-log-scaled bounds for the plot inputs.
virtual vtkIdType GetNearestPoint(const vtkVector2f &point, const vtkVector2f &tolerance, vtkVector2f *location)
Function to query a plot for the nearest point to the specified coordinate.
void SetBrush(vtkBrush *brush)
Set/get the vtkBrush object that controls how this plot fills shapes.
vtkIdTypeArray * Selection
Selected indices for the table the plot is rendering.
virtual void SetLabel(const vtkStdString &label)
Set the label of this plot.
vtkSmartPointer< vtkBrush > SelectionBrush
This object stores the vtkBrush that controls how the selected elements of the plot are drawn.
vtkPen * GetSelectionPen()
virtual void GetBounds(double bounds[4])
Get the bounds for this plot as (Xmin, Xmax, Ymin, Ymax).
virtual void SetTooltipLabelFormat(const vtkStdString &label)
Sets/gets a printf-style string to build custom tooltip labels from.
virtual void SetXAxis(vtkAxis *axis)
vtkAxis * YAxis
The X axis associated with this plot.
vtkStdString TooltipDefaultLabelFormat
The default printf-style string to build custom tooltip labels from.
virtual void SetColor(double r, double g, double b)
vtkSmartPointer< vtkPen > SelectionPen
This object stores the vtkPen that controls how the selected elements of the plot are drawn.
virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf &rect, int legendIndex)
Paint legend event for the plot, called whenever the legend needs the plot items symbol/mark/line dra...
void SetSelectionBrush(vtkBrush *brush)
Set/get the vtkBrush object that controls how this plot fills selected shapes.
virtual void SetProperty(const vtkStdString &property, const vtkVariant &var)
A General setter/getter that should be overridden.
void GetColor(unsigned char rgb[3])
void SetPen(vtkPen *pen)
Set/get the vtkPen object that controls how this plot draws (out)lines.
vtkStdString TooltipLabelFormat
A printf-style string to build custom tooltip labels from.
bool Selectable
Whether plot points can be selected or not.
vtkSmartPointer< vtkContextMapper2D > Data
This data member contains the data that will be plotted, it inherits from vtkAlgorithm.
void SetShiftScale(const vtkRectd &scaling)
Get/set the origin shift and scaling factor used by the plot, this is normally 0.0 offset and 1....
vtkSmartPointer< vtkStringArray > Labels
Plot labels, used by legend.
void SetInputData(vtkTable *table, vtkIdType xColumn, vtkIdType yColumn)
virtual void SetTooltipPrecision(int precision)
Sets/gets the tooltip precision.
virtual void SetYAxis(vtkAxis *axis)
vtkSmartPointer< vtkStringArray > AutoLabels
Holds Labels when they're auto-created.
vtkStdString GetNumber(double position, vtkAxis *axis)
Get the properly formatted number for the supplied position and axis.
vtkSmartPointer< vtkBrush > Brush
This object stores the vtkBrush that controls how the plot is drawn.
virtual bool SelectPointsInPolygon(const vtkContextPolygon &polygon)
Select all points in the specified polygon.
virtual void SetSelection(vtkIdTypeArray *id)
Sets the list of points that must be selected.
vtkSmartPointer< vtkPen > Pen
This object stores the vtkPen that controls how the plot is drawn.
virtual float GetWidth()
Get the width of the line.
virtual vtkStringArray * GetLabels()
Get the plot labels.
virtual void SetLabels(vtkStringArray *labels)
Set the plot labels, these are used for stacked chart variants, with the index referring to the stack...
virtual void SetTooltipNotation(int notation)
Sets/gets the tooltip notation style.
Wrapper around std::string to keep symbols short.
a vtkAbstractArray subclass for strings
A table, which contains similar-typed columns of data.
A atomic type representing the union of many types.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.