28 #ifndef __vtkChartLegend_h
29 #define __vtkChartLegend_h
31 #include "vtkChartsCoreModule.h"
32 #include "vtkContextItem.h"
39 class vtkTextProperty;
45 virtual void PrintSelf(ostream &os,
vtkIndent indent);
52 vtkSetVector2Macro(Point,
float);
57 vtkGetVector2Macro(Point,
float);
70 void SetPoint(
const vtkVector2f &point);
73 const vtkVector2f& GetPointVector();
78 vtkSetMacro(HorizontalAlignment,
int);
83 vtkGetMacro(HorizontalAlignment,
int);
89 vtkSetMacro(VerticalAlignment,
int);
94 vtkGetMacro(VerticalAlignment,
int);
99 vtkSetMacro(Padding,
int);
104 vtkGetMacro(Padding,
int);
109 vtkSetMacro(SymbolWidth,
int);
114 vtkGetMacro(SymbolWidth,
int);
118 virtual void SetLabelSize(
int size);
121 virtual int GetLabelSize();
128 vtkSetMacro(Inline,
bool);
129 vtkGetMacro(Inline,
bool);
137 vtkSetMacro(DragEnabled,
bool);
138 vtkGetMacro(DragEnabled,
bool);
151 virtual void Update();
154 virtual bool Paint(vtkContext2D *painter);
161 virtual vtkRectf GetBoundingRect(vtkContext2D* painter);
167 vtkBrush * GetBrush();
170 vtkTextProperty * GetLabelProperties();
173 virtual bool Hit(
const vtkContextMouseEvent &mouse);
176 virtual bool MouseMoveEvent(
const vtkContextMouseEvent &mouse);
179 virtual bool MouseButtonPressEvent(
const vtkContextMouseEvent &mouse);
182 virtual bool MouseButtonReleaseEvent(
const vtkContextMouseEvent &mouse);
230 #endif //__vtkChartLegend_h
record modification and/or execution time
Factory class for drawing 2D charts.
a simple class to control print indentation
vtkNew< vtkTextProperty > LabelProperties