28 #ifndef vtkBlockItem_h
29 #define vtkBlockItem_h
31 #include "vtkRenderingContext2DModule.h"
97 vtkSetVector4Macro(Dimensions,
float);
107 vtkGetVector4Macro(Dimensions,
float);
127 void operator=(
const vtkBlockItem &) VTK_DELETE_FUNCTION;
a vtkContextItem that draws a block (optional label).
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual bool Hit(const vtkContextMouseEvent &mouse)
Returns true if the supplied x, y coordinate is inside the item.
virtual bool MouseEnterEvent(const vtkContextMouseEvent &mouse)
Mouse enter event.
static vtkBlockItem * New()
virtual vtkStdString GetLabel()
Get the block label.
void SetScalarFunctor(double(*scalarFunction)(double, double))
virtual bool MouseMoveEvent(const vtkContextMouseEvent &mouse)
Mouse move event.
virtual bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse)
Mouse button down event.
virtual bool MouseLeaveEvent(const vtkContextMouseEvent &mouse)
Mouse leave event.
virtual bool MouseButtonReleaseEvent(const vtkContextMouseEvent &mouse)
Mouse button release event.
virtual void SetLabel(const vtkStdString &label)
Set the block label.
virtual bool Paint(vtkContext2D *painter)
Paint event for the item.
Class for drawing 2D primitives to a graphical context.
base class for items that are part of a vtkContextScene.
data structure to represent mouse events.
a simple class to control print indentation
Wrapper around std::string to keep symbols short.