32 #include "vtkChartsCoreModule.h"
33 #include "vtkContextItem.h"
39 class vtkContextScene;
43 class vtkTextProperty;
46 class vtkInteractorStyle;
47 class vtkAnnotationLink;
49 class VTKCHARTSCORE_EXPORT
vtkChart :
public vtkContextItem
53 virtual void PrintSelf(ostream &os,
vtkIndent indent);
71 SELECT_RECTANGLE = SELECT,
87 virtual bool Paint(vtkContext2D *painter) = 0;
90 virtual vtkPlot* AddPlot(
int type);
103 virtual bool RemovePlotInstance(
vtkPlot* plot);
106 virtual void ClearPlots();
118 virtual vtkAxis* GetAxis(
int axisIndex);
126 virtual void RecalculateBounds();
146 virtual void SetSelectionMethod(
int method);
147 virtual int GetSelectionMethod();
151 virtual void SetAnnotationLink(vtkAnnotationLink *link);
155 vtkGetObjectMacro(AnnotationLink, vtkAnnotationLink);
160 vtkSetVector2Macro(Geometry,
int);
161 vtkGetVector2Macro(Geometry,
int);
166 vtkSetVector2Macro(Point1,
int);
167 vtkGetVector2Macro(Point1,
int);
172 vtkSetVector2Macro(Point2,
int);
173 vtkGetVector2Macro(Point2,
int);
178 virtual void SetShowLegend(
bool visible);
179 virtual bool GetShowLegend();
195 vtkGetObjectMacro(TitleProperties, vtkTextProperty);
200 void SetBottomBorder(
int border);
201 void SetTopBorder(
int border);
202 void SetLeftBorder(
int border);
203 void SetRightBorder(
int border);
207 void SetBorders(
int left,
int bottom,
int right,
int top);
212 void SetSize(
const vtkRectf &rect);
230 vtkSetMacro(LayoutStrategy,
int);
231 vtkGetMacro(LayoutStrategy,
int);
254 vtkSetMacro(RenderEmpty,
bool);
255 vtkGetMacro(RenderEmpty,
bool);
265 virtual void SetActionToButton(
int action,
int button);
270 virtual int GetActionToButton(
int action);
275 virtual void SetClickActionToButton(
int action,
int button);
280 virtual int GetClickActionToButton(
int action);
284 void SetBackgroundBrush(vtkBrush *brush);
285 vtkBrush* GetBackgroundBrush();
293 virtual void SetSelectionMode(
int);
294 vtkGetMacro(SelectionMode,
int);
307 vtkTransform2D *transform);
312 void AttachAxisRangeListener(
vtkAxis*);
314 void AxisRangeForwarderCallback(
vtkObject*,
unsigned long,
void*);
358 enum { MaxAction = 4 };
359 short&
Pan() {
return Data[0]; }
360 short&
Zoom() {
return Data[1]; }
364 short Data[MaxAction];
385 #endif //__vtkChart_h
MouseClickActions ActionsClick
Wrapper around std::string to keep symbols short.
vtkTextProperty * TitleProperties
abstract base class for most VTK objects
vtkAnnotationLink * AnnotationLink
Factory class for drawing 2D charts.
takes care of drawing 2D axes
a simple class to control print indentation
virtual void SetAutoSize(bool isAutoSized)
virtual bool GetAutoSize()
Abstract class for 2D plots.
short & operator[](int index)
vtkSmartPointer< vtkBrush > BackgroundBrush
short & operator[](int index)