17 #ifndef vtkContextTransform_h
18 #define vtkContextTransform_h
21 #include "vtkRenderingContext2DModule.h"
26 VTK_ABI_NAMESPACE_BEGIN
47 return this->Superclass::AddItem(item);
56 return this->Superclass::GetItem(index);
79 virtual void Identity();
85 virtual void Translate(
float dx,
float dy);
91 virtual void Scale(
float dx,
float dy);
96 virtual void Rotate(
float angle);
118 vtkSetMacro(PanMouseButton,
int);
119 vtkGetMacro(PanMouseButton,
int);
127 vtkSetMacro(PanModifier,
int);
128 vtkGetMacro(PanModifier,
int);
136 vtkSetMacro(SecondaryPanMouseButton,
int);
137 vtkGetMacro(SecondaryPanMouseButton,
int);
145 vtkSetMacro(SecondaryPanModifier,
int);
146 vtkGetMacro(SecondaryPanModifier,
int);
154 vtkSetMacro(ZoomMouseButton,
int);
155 vtkGetMacro(ZoomMouseButton,
int);
163 vtkSetMacro(ZoomModifier,
int);
164 vtkGetMacro(ZoomModifier,
int);
172 vtkSetMacro(SecondaryZoomMouseButton,
int);
173 vtkGetMacro(SecondaryZoomMouseButton,
int);
181 vtkSetMacro(SecondaryZoomModifier,
int);
182 vtkGetMacro(SecondaryZoomModifier,
int);
189 vtkSetMacro(ZoomOnMouseWheel,
bool);
190 vtkGetMacro(ZoomOnMouseWheel,
bool);
191 vtkBooleanMacro(ZoomOnMouseWheel,
bool);
198 vtkSetMacro(PanYOnMouseWheel,
bool);
199 vtkGetMacro(PanYOnMouseWheel,
bool);
200 vtkBooleanMacro(PanYOnMouseWheel,
bool);
248 VTK_ABI_NAMESPACE_END
249 #endif // vtkContextTransform_h
int SecondaryZoomMouseButton
int SecondaryPanMouseButton
void RemoveAllItems()
Remove all child items from this item.
virtual vtkVector2f MapFromParent(const vtkVector2f &point)
Maps the point from the parent coordinate system.
virtual vtkVector2f MapToParent(const vtkVector2f &point)
Maps the point to the parent coordinate system.
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.
vtkIdType AddItem(vtkAbstractContextItem *item) override
Add child items to this item.
void ClearItems()
Remove all child items from this item.
all children of this item are transformed by the vtkTransform2D of this item.
vtkAbstractContextItem * GetItem(vtkIdType index) override
Get the item at the specified index.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Class for drawing 2D primitives to a graphical context.
virtual bool MouseWheelEvent(const vtkContextMouseEvent &mouse, int delta)
Mouse wheel event, positive delta indicates forward movement of the wheel.
data structure to represent mouse events.
a simple class to control print indentation
int SecondaryZoomModifier
virtual bool MouseMoveEvent(const vtkContextMouseEvent &mouse)
Mouse move event.
base class for items that are part of a vtkContextScene.
virtual bool Hit(const vtkContextMouseEvent &mouse)
Return true if the supplied x, y coordinate is inside the item.
vtkNew< vtkTransform2D > Transform
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
virtual void Update()
Perform any updates to the item that may be necessary before rendering.