130 #include "vtkChartsCoreModule.h"
137 VTK_ABI_NAMESPACE_BEGIN
189 SELECT_RECTANGLE = SELECT,
313 vtkSetVector2Macro(Geometry,
int);
314 vtkGetVector2Macro(Geometry,
int);
321 vtkSetVector2Macro(Point1,
int);
322 vtkGetVector2Macro(Point1,
int);
329 vtkSetVector2Macro(Point2,
int);
330 vtkGetVector2Macro(Point2,
int);
405 vtkSetMacro(LayoutStrategy,
int);
406 vtkGetMacro(LayoutStrategy,
int);
430 vtkSetMacro(RenderEmpty,
bool);
431 vtkGetMacro(RenderEmpty,
bool);
481 vtkGetMacro(SelectionMode,
int);
577 short&
Pan() {
return Data[0]; }
578 short&
Zoom() {
return Data[1]; }
584 short Data[MaxAction];
602 void operator=(
const vtkChart&) =
delete;
605 VTK_ABI_NAMESPACE_END
An algorithm for linking annotations among objects.
takes care of drawing 2D axes
provides a brush that fills shapes drawn by vtkContext2D.
Hold mouse action mappings.
short & operator[](int index)
short & operator[](int index)
Factory class for drawing 2D charts.
MouseClickActions ActionsClick
void AxisRangeForwarderCallback(vtkObject *, unsigned long, void *)
virtual void SetSize(const vtkRectf &rect)
Set the size of the chart.
virtual void SetAutoSize(bool isAutoSized)
Set/get whether the chart should automatically resize to fill the current render window.
virtual bool GetShowLegend()
Set/get whether the chart should draw a legend.
virtual vtkStdString GetTitle()
Get/set the title text of the chart.
virtual vtkPlot * AddPlot(int type)
Add a plot to the chart, defaults to using the name of the y column.
virtual void ClearPlots()
Remove all plots from the chart.
virtual void SetTitle(const vtkStdString &title)
Get/set the title text of the chart.
vtkStdString Title
The title of the chart.
vtkTextProperty * TitleProperties
The text properties associated with the chart.
bool CalculateUnscaledPlotTransform(vtkAxis *x, vtkAxis *y, vtkTransform2D *transform)
Calculate the unshifted, and unscaled plot transform for the x and y axis.
virtual bool GetAutoSize()
Set/get whether the chart should automatically resize to fill the current render window.
virtual void SetAnnotationLink(vtkAnnotationLink *link)
Set the vtkAnnotationLink for the chart.
virtual int GetActionToButton(int action)
Get the mouse button associated with the supplied action.
void SetRightBorder(int border)
Set/get the borders of the chart (space in pixels around the chart).
vtkAnnotationLink * AnnotationLink
Our annotation link, used for sharing selections etc.
vtkRectf GetSize()
Get the current size of the chart.
void SetBottomBorder(int border)
Set/get the borders of the chart (space in pixels around the chart).
virtual int GetClickActionToButton(int action)
Get the mouse button associated with the supplied click action.
virtual void SetSelectionMethod(int method)
Set the selection method, which controls how selections are handled by the chart.
virtual vtkAxis * GetAxis(int axisIndex)
Get the axis specified by axisIndex.
vtkSmartPointer< vtkBrush > BackgroundBrush
Brush to use for drawing the background.
virtual void SetClickActionToButton(int action, int button)
Assign action types to single mouse clicks.
EventIds
Enum of event type that are triggered by the charts.
virtual bool RemovePlotInstance(vtkPlot *plot)
Remove the given plot.
void SetTopBorder(int border)
Set/get the borders of the chart (space in pixels around the chart).
void SetBackgroundBrush(vtkBrush *brush)
Set/Get the brush to use for the background color.
bool Paint(vtkContext2D *painter) override=0
Paint event for the chart, called whenever the chart needs to be drawn.
virtual void SetShowLegend(bool visible)
Set/get whether the chart should draw a legend.
virtual vtkIdType GetNumberOfPlots()
Get the number of plots the chart contains.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void RecalculateBounds()
Request that the chart recalculates the range of its axes.
virtual void SetAxis(int axisIndex, vtkAxis *)
Set the axis specified by axisIndex.
virtual bool RemovePlot(vtkIdType index)
Remove the plot at the specified index, returns true if successful, false if the index was invalid.
virtual vtkChartLegend * GetLegend()
Get the legend for the chart, if available.
virtual vtkIdType GetNumberOfAxes()
Get the number of axes in the current chart.
virtual void SetActionToButton(int action, int button)
Assign action types to mouse buttons.
void AttachAxisRangeListener(vtkAxis *)
Attach axis range listener so we can forward those events at the chart level.
virtual vtkIdType AddPlot(vtkPlot *plot)
Add a plot to the chart.
vtkBrush * GetBackgroundBrush()
Set/Get the brush to use for the background color.
virtual int GetSelectionMethod()
Set the selection method, which controls how selections are handled by the chart.
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 ...
virtual vtkPlot * GetPlot(vtkIdType index)
Get the plot at the specified index, returns null if the index is invalid.
void SetLeftBorder(int border)
Set/get the borders of the chart (space in pixels around the chart).
bool ShowLegend
Display the legend?
void SetBorders(int left, int bottom, int right, int top)
Set/get the borders of the chart (space in pixels around the chart).
Class for drawing 2D primitives to a graphical context.
base class for items that are part of a vtkContextScene.
Provides a 2D scene for vtkContextItem objects.
a simple class to control print indentation
provide event-driven interface to the rendering window (defines trackball mode)
abstract base class for most VTK objects
Abstract class for 2D plots.
Wrapper around std::string to keep symbols short.
represent text properties.
void UpdateRange(A &min0, A &max0, const A &value, typename std::enable_if<!std::is_floating_point< A >::value >::type *=nullptr)