25#include "vtkRenderingContext2DModule.h"
29VTK_ABI_NAMESPACE_BEGIN
95 vtkSetVector4Macro(Dimensions,
float);
105 vtkGetVector4Macro(Dimensions,
float);
116 vtkSetMacro(AutoComputeDimensions,
bool);
117 vtkGetMacro(AutoComputeDimensions,
bool);
118 vtkBooleanMacro(AutoComputeDimensions,
bool);
136 vtkSetMacro(HorizontalAlignment,
int);
137 vtkGetMacro(HorizontalAlignment,
int);
145 vtkSetMacro(VerticalAlignment,
int);
146 vtkGetMacro(VerticalAlignment,
int);
156 vtkSetVector2Macro(Padding,
int);
157 vtkGetVector2Macro(Padding,
int);
166 vtkSetVector2Macro(Margins,
int);
167 vtkGetVector2Macro(Margins,
int);
214 double (*scalarFunction)(double, double);
230 int HorizontalAlignment;
231 int VerticalAlignment;
232 bool AutoComputeDimensions;
a vtkContextItem that draws a block (optional label).
bool MouseMoveEvent(const vtkContextMouseEvent &mouse) override
Mouse move event.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual vtkStdString GetLabel()
Get the block label.
bool MouseEnterEvent(const vtkContextMouseEvent &mouse) override
Mouse enter event.
void SetScalarFunctor(double(*scalarFunction)(double, double))
virtual void SetLabel(const vtkStdString &label)
Set the block label.
bool MouseButtonReleaseEvent(const vtkContextMouseEvent &mouse) override
Mouse button release event.
bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse) override
Mouse button down event.
bool Hit(const vtkContextMouseEvent &mouse) override
Returns true if the supplied x, y coordinate is inside the item.
bool MouseLeaveEvent(const vtkContextMouseEvent &mouse) override
Mouse leave event.
bool Paint(vtkContext2D *painter) override
Paint event for the item.
void SetLabelProperties(vtkTextProperty *)
Provides access to the vtkTextProperty object that controls the way the label is rendered.
static vtkBlockItem * New()
provides a brush that fills shapes drawn by vtkContext2D.
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
Allocate and hold a VTK object.
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
Wrapper around std::string to keep symbols short.
represent text properties.