 |
VTK
9.1.0
|
Go to the documentation of this file.
29 #ifndef vtkBlockItem_h
30 #define vtkBlockItem_h
34 #include "vtkRenderingContext2DModule.h"
102 vtkSetVector4Macro(Dimensions,
float);
112 vtkGetVector4Macro(Dimensions,
float);
123 vtkSetMacro(AutoComputeDimensions,
bool);
124 vtkGetMacro(AutoComputeDimensions,
bool);
125 vtkBooleanMacro(AutoComputeDimensions,
bool);
143 vtkSetMacro(HorizontalAlignment,
int);
144 vtkGetMacro(HorizontalAlignment,
int);
152 vtkSetMacro(VerticalAlignment,
int);
153 vtkGetMacro(VerticalAlignment,
int);
163 vtkSetVector2Macro(Padding,
int);
164 vtkGetVector2Macro(Padding,
int);
173 vtkSetVector2Macro(Margins,
int);
174 vtkGetVector2Macro(Margins,
int);
221 double (*scalarFunction)(double, double);
237 int HorizontalAlignment;
238 int VerticalAlignment;
239 bool AutoComputeDimensions;
244 #endif // vtkBlockItem_h
provides a brush that fills shapes drawn by vtkContext2D.
bool MouseButtonReleaseEvent(const vtkContextMouseEvent &mouse) override
Mouse button release event.
data structure to represent mouse events.
bool MouseLeaveEvent(const vtkContextMouseEvent &mouse) override
Mouse leave event.
void SetLabelProperties(vtkTextProperty *)
Provides access to the vtkTextProperty object that controls the way the label is rendered.
bool Paint(vtkContext2D *painter) override
Paint event for the item.
Class for drawing 2D primitives to a graphical context.
bool MouseEnterEvent(const vtkContextMouseEvent &mouse) override
Mouse enter event.
virtual vtkStdString GetLabel()
Get the block label.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
void SetScalarFunctor(double(*scalarFunction)(double, double))
bool MouseMoveEvent(const vtkContextMouseEvent &mouse) override
Mouse move event.
represent text properties.
base class for items that are part of a vtkContextScene.
static vtkBlockItem * New()
bool Hit(const vtkContextMouseEvent &mouse) override
Returns true if the supplied x, y coordinate is inside the item.
bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse) override
Mouse button down event.
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
Wrapper around std::string to keep symbols short.
a vtkContextItem that draws a block (optional label).
virtual void SetLabel(const vtkStdString &label)
Set the block label.