Go to the documentation of this file.
29 #ifndef vtkChartLegend_h
30 #define vtkChartLegend_h
32 #include "vtkChartsCoreModule.h"
57 vtkSetVector2Macro(Point,
float);
64 vtkGetVector2Macro(Point,
float);
98 vtkGetMacro(HorizontalAlignment,
int);
113 vtkGetMacro(VerticalAlignment,
int);
127 vtkGetMacro(Padding,
int);
141 vtkGetMacro(SymbolWidth,
int);
147 virtual void SetLabelSize(
int size);
152 virtual int GetLabelSize();
161 vtkGetMacro(
Inline,
bool);
172 vtkGetMacro(DragEnabled,
bool);
229 vtkGetMacro(CacheBounds,
bool);
321 #endif //vtkChartLegend_h
Factory class for drawing 2D charts.
provides a brush that fills shapes drawn by vtkContext2D.
data structure to represent mouse events.
int Button
Last button to be pressed.
vtkNew< vtkPen > Pen
The pen used to draw the legend box.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
record modification and/or execution time
Class for drawing 2D primitives to a graphical context.
bool CacheBounds
Should the legend attempt to avoid recalculating its position & bounds unnecessarily?
bool Inline
Should the legend be drawn inline in its chart?
vtkNew< vtkTextProperty > LabelProperties
The text properties of the labels used in the legend.
a simple class to control print indentation
bool DragEnabled
Should we move the legend box around in response to the mouse drag?
virtual bool Hit(const vtkContextMouseEvent &mouse)
Return true if the supplied x, y coordinate is inside the item.
virtual bool MouseMoveEvent(const vtkContextMouseEvent &mouse)
Mouse move event.
int SymbolWidth
Width of the symbols in pixels in the legend.
virtual bool MouseButtonReleaseEvent(const vtkContextMouseEvent &mouse)
Mouse button release event.
represent text properties.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
base class for items that are part of a vtkContextScene.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
virtual bool Paint(vtkContext2D *painter)
Paint event for the item, called whenever the item needs to be drawn.
int Padding
Padding between symbol and text.
virtual bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse)
Mouse button down event Return true if the item holds the event, false if the event can be propagated...
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void Update()
Perform any updates to the item that may be necessary before rendering.
vtkNew< vtkBrush > Brush
The brush used to render the background of the legend.