Go to the documentation of this file.
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);
235 #endif //vtkContextTransform_h
data structure to represent mouse events.
vtkSmartPointer< vtkTransform2D > Transform
virtual bool Paint(vtkContext2D *painter)
Paint event for the item, called whenever the item needs to be drawn.
virtual void Rotate(float angle)
Rotate the item by the specified angle.
base class for items that are part of a vtkContextScene.
Class for drawing 2D primitives to a graphical context.
virtual bool Hit(const vtkContextMouseEvent &mouse)
Returns true if the transform is interactive, false otherwise.
static vtkContextTransform * New()
Creates a vtkContextTransform object.
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
virtual bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse)
Mouse press event.
a simple class to control print indentation
virtual vtkTransform2D * GetTransform()
Access the vtkTransform2D that controls object transformation.
virtual void Identity()
Reset the transform to the identity transformation.
virtual bool MouseWheelEvent(const vtkContextMouseEvent &mouse, int delta)
Mouse wheel event.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
all children of this item are transformed by the vtkTransform2D of this item.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
int SecondaryZoomModifier
int SecondaryZoomMouseButton
virtual vtkVector2f MapToParent(const vtkVector2f &point)
Transforms a point to the parent coordinate system.
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 Scale(float dx, float dy)
Scale the item by the specified amounts dx and dy in the x and y directions.