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;
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.
virtual vtkPlot * AddPlot(int type)
Add a plot to the chart, defaults to using the name of the y column.
MouseClickActions ActionsClick
void AxisRangeForwarderCallback(vtkObject *, unsigned long, void *)
virtual void SetAutoSize(bool isAutoSized)
Set/get whether the chart should automatically resize to fill the current render window.
virtual bool GetShowLegend()
virtual vtkStdString GetTitle()
virtual void ClearPlots()
Remove all plots from the chart.
virtual void SetTitle(const vtkStdString &title)
Get/set the title text of the chart.
virtual vtkChartLegend * GetLegend()
Get the legend for the chart, if available.
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()
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.
virtual bool Paint(vtkContext2D *painter)=0
Paint event for the chart, called whenever the chart needs to be drawn.
void SetRightBorder(int border)
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.
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)
void SetBackgroundBrush(vtkBrush *brush)
Set/Get the brush to use for the background color.
virtual void SetShowLegend(bool visible)
Set/get whether the chart should draw a legend.
void SetSize(const vtkRectf &rect)
Set the size of the chart.
virtual vtkIdType GetNumberOfPlots()
Get the number of plots the chart contains.
virtual void RecalculateBounds()
Request that the chart recalculates the range of its axes.
virtual void SetSelectionMode(int)
Set/get the Selection Mode that will be used by the chart while doing selection.
virtual bool RemovePlot(vtkIdType index)
Remove the plot at the specified index, returns true if successful, false if the index was invalid.
virtual vtkAxis * GetAxis(int axisIndex)
Get the axis specified by axisIndex.
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.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual vtkPlot * GetPlot(vtkIdType index)
Get the plot at the specified index, returns null if the index is invalid.
virtual int GetSelectionMethod()
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 ...
vtkBrush * GetBackgroundBrush()
void SetLeftBorder(int border)
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.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.