Go to the documentation of this file.
33 #include "vtkChartsCoreModule.h"
84 SELECT_RECTANGLE = SELECT,
198 vtkSetVector2Macro(Geometry,
int);
199 vtkGetVector2Macro(Geometry,
int);
206 vtkSetVector2Macro(Point1,
int);
207 vtkGetVector2Macro(Point1,
int);
214 vtkSetVector2Macro(Point2,
int);
215 vtkGetVector2Macro(Point2,
int);
290 vtkGetMacro(LayoutStrategy,
int);
319 vtkGetMacro(RenderEmpty,
bool);
369 vtkGetMacro(SelectionMode,
int);
458 enum { MaxAction = 5 };
459 short&
Pan() {
return Data[0]; }
460 short&
Zoom() {
return Data[1]; }
465 short Data[MaxAction];
483 void operator=(
const vtkChart &) VTK_DELETE_FUNCTION;
Factory class for drawing 2D charts.
provides a brush that fills shapes drawn by vtkContext2D.
short & operator[](int index)
virtual vtkIdType GetNumberOfPlots()
Get the number of plots the chart contains.
Hold mouse action mappings.
virtual bool RemovePlot(vtkIdType index)
Remove the plot at the specified index, returns true if successful, false if the index was invalid.
void SetLeftBorder(int border)
virtual void SetSelectionMethod(int method)
Set the selection method, which controls how selections are handled by the chart.
virtual bool GetShowLegend()
void SetBorders(int left, int bottom, int right, int top)
Set/get the borders of the chart (space in pixels around the chart).
vtkBrush * GetBackgroundBrush()
virtual void SetSelectionMode(int)
Set/get the Selection Mode that will be used by the chart while doing selection.
MouseClickActions ActionsClick
virtual vtkIdType AddPlot(vtkPlot *plot)
Add a plot to the chart.
abstract base class for most VTK objects
bool CalculatePlotTransform(vtkAxis *x, vtkAxis *y, vtkTransform2D *transform)
Given the x and y vtkAxis, and a transform, calculate the transform that the points in a chart would ...
vtkSmartPointer< vtkBrush > BackgroundBrush
Brush to use for drawing the background.
virtual bool Paint(vtkContext2D *painter)=0
Paint event for the chart, called whenever the chart needs to be drawn.
An algorithm for linking annotations among objects.
virtual void SetAnnotationLink(vtkAnnotationLink *link)
Set the vtkAnnotationLink for the chart.
Class for drawing 2D primitives to a graphical context.
virtual vtkPlot * AddPlot(int type)
Add a plot to the chart, defaults to using the name of the y column.
Abstract class for 2D plots.
virtual int GetClickActionToButton(int action)
Get the mouse button associated with the supplied click action.
vtkAnnotationLink * AnnotationLink
Our annotation link, used for sharing selections etc.
virtual vtkStdString GetTitle()
void SetBackgroundBrush(vtkBrush *brush)
Set/Get the brush to use for the background color.
bool CalculateUnscaledPlotTransform(vtkAxis *x, vtkAxis *y, vtkTransform2D *transform)
Calculate the unshifted, and unscaled plot transform for the x and y axis.
bool ShowLegend
Display the legend?
virtual int GetActionToButton(int action)
Get the mouse button associated with the supplied action.
Provides a 2D scene for vtkContextItem objects.
void SetSize(const vtkRectf &rect)
Set the size of the chart.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkRectf GetSize()
Get the current size of the chart.
virtual void SetClickActionToButton(int action, int button)
Assign action types to single mouse clicks.
virtual vtkChartLegend * GetLegend()
Get the legend for the chart, if available.
short & operator[](int index)
void AttachAxisRangeListener(vtkAxis *)
Attach axis range listener so we can forward those events at the chart level.
a simple class to control print indentation
virtual bool RemovePlotInstance(vtkPlot *plot)
Remove the given plot.
virtual vtkPlot * GetPlot(vtkIdType index)
Get the plot at the specified index, returns null if the index is invalid.
virtual void SetActionToButton(int action, int button)
Assign action types to mouse buttons.
virtual bool GetAutoSize()
provide event-driven interface to the rendering window (defines trackball mode)
represent text properties.
base class for items that are part of a vtkContextScene.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
EventIds
Enum of event type that are triggered by the charts.
vtkStdString Title
The title of the chart.
virtual void SetAutoSize(bool isAutoSized)
Set/get whether the chart should automatically resize to fill the current render window.
takes care of drawing 2D axes
virtual int GetSelectionMethod()
virtual void ClearPlots()
Remove all plots from the chart.
virtual void RecalculateBounds()
Request that the chart recalculates the range of its axes.
void SetBottomBorder(int border)
Set/get the borders of the chart (space in pixels around the chart).
vtkTextProperty * TitleProperties
The text properties associated with the chart.
virtual vtkIdType GetNumberOfAxes()
Get the number of axes in the current chart.
Wrapper around std::string to keep symbols short.
virtual vtkAxis * GetAxis(int axisIndex)
Get the axis specified by axisIndex.
virtual void SetTitle(const vtkStdString &title)
Get/set the title text of the chart.
void AxisRangeForwarderCallback(vtkObject *, unsigned long, void *)
void SetTopBorder(int border)
virtual void SetShowLegend(bool visible)
Set/get whether the chart should draw a legend.
void SetRightBorder(int border)