21 #include "vtkChartsCoreModule.h"
29 VTK_ABI_NAMESPACE_BEGIN
81 SELECT_RECTANGLE = SELECT,
85 ACTION_TYPES_COUNT = 7
122 virtual bool RemovePlotInstance(
vtkPlot* plot);
128 virtual void ClearPlots();
145 virtual vtkAxis* GetAxis(
int axisIndex);
151 virtual void SetAxis(
int axisIndex,
vtkAxis*);
162 virtual void RecalculateBounds();
187 virtual void SetSelectionMethod(
int method);
188 virtual int GetSelectionMethod();
207 vtkSetVector2Macro(Geometry,
int);
208 vtkGetVector2Macro(Geometry,
int);
215 vtkSetVector2Macro(Point1,
int);
216 vtkGetVector2Macro(Point1,
int);
223 vtkSetVector2Macro(Point2,
int);
224 vtkGetVector2Macro(Point2,
int);
231 virtual void SetShowLegend(
bool visible);
232 virtual bool GetShowLegend();
260 void SetBottomBorder(
int border);
261 void SetTopBorder(
int border);
262 void SetLeftBorder(
int border);
263 void SetRightBorder(
int border);
269 void SetBorders(
int left,
int bottom,
int right,
int top);
276 virtual void SetSize(
const vtkRectf& rect);
299 vtkSetMacro(LayoutStrategy,
int);
300 vtkGetMacro(LayoutStrategy,
int);
324 vtkSetMacro(RenderEmpty,
bool);
325 vtkGetMacro(RenderEmpty,
bool);
338 virtual void SetActionToButton(
int action,
int button);
344 virtual int GetActionToButton(
int action);
351 virtual void SetClickActionToButton(
int action,
int button);
358 virtual int GetClickActionToButton(
int action);
364 void SetBackgroundBrush(
vtkBrush* brush);
375 vtkGetMacro(SelectionMode,
int);
386 static int GetSelectionModeFromMouseModifiers(
410 void AttachAxisRangeListener(
vtkAxis*);
412 void AxisRangeForwarderCallback(
vtkObject*,
unsigned long,
void*);
483 short&
Pan() {
return Data[0]; }
484 short&
Zoom() {
return Data[1]; }
490 short Data[MaxAction];
508 void operator=(
const vtkChart&) =
delete;
511 VTK_ABI_NAMESPACE_END
MouseClickActions ActionsClick
Wrapper around std::string to keep symbols short.
vtkStdString Title
The title of the chart.
vtkTextProperty * TitleProperties
The text properties associated with the chart.
abstract base class for most VTK objects
vtkAnnotationLink * AnnotationLink
Our annotation link, used for sharing selections etc.
base class for items that are part of a vtkContextScene.
virtual bool Paint(vtkContext2D *painter)
Paint event for the item, called whenever the item needs to be drawn.
bool RemovePlot(vtkPlot *plot)
Class for drawing 2D primitives to a graphical context.
Factory class for drawing 2D charts.
provides a brush that fills shapes drawn by vtkContext2D.
takes care of drawing 2D axes
Provides a 2D scene for vtkContextItem objects.
data structure to represent mouse events.
a simple class to control print indentation
virtual void SetAutoSize(bool isAutoSized)
Set/get whether the chart should automatically resize to fill the current render window.
bool ShowLegend
Display the legend?
void UpdateRange(A &min, A &max, const A &value)
Update an existing min - max range with a new prospective value.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual bool GetAutoSize()
Set/get whether the chart should automatically resize to fill the current render window.
Abstract class for 2D plots.
represent text properties.
EventIds
Enum of event type that are triggered by the charts.
short & operator[](int index)
provide event-driven interface to the rendering window (defines trackball mode)
Hold mouse action mappings.
vtkSmartPointer< vtkBrush > BackgroundBrush
Brush to use for drawing the background.
An algorithm for linking annotations among objects.
short & operator[](int index)