32 #ifndef vtkBlockItem_h
33 #define vtkBlockItem_h
37 #include "vtkRenderingContext2DModule.h"
105 vtkSetVector4Macro(Dimensions,
float);
115 vtkGetVector4Macro(Dimensions,
float);
126 vtkSetMacro(AutoComputeDimensions,
bool);
127 vtkGetMacro(AutoComputeDimensions,
bool);
128 vtkBooleanMacro(AutoComputeDimensions,
bool);
146 vtkSetMacro(HorizontalAlignment,
int);
147 vtkGetMacro(HorizontalAlignment,
int);
155 vtkSetMacro(VerticalAlignment,
int);
156 vtkGetMacro(VerticalAlignment,
int);
166 vtkSetVector2Macro(Padding,
int);
167 vtkGetVector2Macro(Padding,
int);
176 vtkSetVector2Macro(Margins,
int);
177 vtkGetVector2Macro(Margins,
int);
184 vtkGetObjectMacro(Pen,
vtkPen);
199 vtkGetObjectMacro(MouseOverBrush,
vtkBrush);
211 void SetScalarFunctor(
double (*scalarFunction)(
double,
double));
224 double (*scalarFunction)(double, double);
240 int HorizontalAlignment;
241 int VerticalAlignment;
242 bool AutoComputeDimensions;
247 #endif // vtkBlockItem_h
Wrapper around std::string to keep symbols short.
base class for items that are part of a vtkContextScene.
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...
virtual bool Paint(vtkContext2D *painter)
Paint event for the item, called whenever the item needs to be drawn.
a vtkContextItem that draws a block (optional label).
Class for drawing 2D primitives to a graphical context.
provides a brush that fills shapes drawn by vtkContext2D.
data structure to represent mouse events.
a simple class to control print indentation
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual bool MouseButtonReleaseEvent(const vtkContextMouseEvent &mouse)
Mouse button release event.
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
represent text properties.
virtual bool MouseEnterEvent(const vtkContextMouseEvent &mouse)
Mouse enter event.
virtual bool MouseMoveEvent(const vtkContextMouseEvent &mouse)
Mouse move event.
virtual bool Hit(const vtkContextMouseEvent &mouse)
Return true if the supplied x, y coordinate is inside the item.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
virtual bool MouseLeaveEvent(const vtkContextMouseEvent &mouse)
Mouse leave event.