29 #ifndef vtkContextTransform_h
30 #define vtkContextTransform_h
32 #include "vtkRenderingContext2DModule.h"
77 virtual void Scale(
float dx,
float dy);
105 vtkGetMacro(PanMouseButton,
int);
114 vtkGetMacro(PanModifier,
int);
123 vtkGetMacro(SecondaryPanMouseButton,
int);
132 vtkGetMacro(SecondaryPanModifier,
int);
141 vtkGetMacro(ZoomMouseButton,
int);
150 vtkGetMacro(ZoomModifier,
int);
159 vtkGetMacro(SecondaryZoomMouseButton,
int);
168 vtkGetMacro(SecondaryZoomModifier,
int);
176 vtkGetMacro(ZoomOnMouseWheel,
bool);
185 vtkGetMacro(PanYOnMouseWheel,
bool);
base class for items that are part of a vtkContextScene.
Class for drawing 2D primitives to a graphical context.
data structure to represent mouse events.
all children of this item are transformed by the vtkTransform2D of this item.
virtual bool Paint(vtkContext2D *painter)
Paint event for the item, called whenever the item needs to be drawn.
virtual vtkVector2f MapFromParent(const vtkVector2f &point)
Transforms a point from the parent coordinate system.
virtual bool MouseMoveEvent(const vtkContextMouseEvent &mouse)
Mouse move event.
virtual void Identity()
Reset the transform to the identity transformation.
virtual vtkTransform2D * GetTransform()
Access the vtkTransform2D that controls object transformation.
virtual void Update()
Perform any updates to the item that may be necessary before rendering.
virtual void Translate(float dx, float dy)
Translate the item by the specified amounts dx and dy in the x and y directions.
int SecondaryPanMouseButton
int SecondaryZoomMouseButton
virtual bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse)
Mouse press event.
static vtkContextTransform * New()
Creates a vtkContextTransform object.
virtual vtkVector2f MapToParent(const vtkVector2f &point)
Transforms a point to the parent coordinate system.
virtual bool MouseWheelEvent(const vtkContextMouseEvent &mouse, int delta)
Mouse wheel event.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void Scale(float dx, float dy)
Scale the item by the specified amounts dx and dy in the x and y directions.
vtkSmartPointer< vtkTransform2D > Transform
virtual void Rotate(float angle)
Rotate the item by the specified angle.
int SecondaryZoomModifier
virtual bool Hit(const vtkContextMouseEvent &mouse)
Returns true if the transform is interactive, false otherwise.
a simple class to control print indentation
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.