29 #ifndef vtkContextTransform_h 30 #define vtkContextTransform_h 32 #include "vtkRenderingContext2DModule.h" 55 void Update() VTK_OVERRIDE;
65 virtual
void Identity();
71 virtual
void Translate(
float dx,
float dy);
77 virtual
void Scale(
float dx,
float dy);
82 virtual
void Rotate(
float angle);
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);
211 ~vtkContextTransform() VTK_OVERRIDE;
219 int SecondaryPanMouseButton;
220 int SecondaryPanModifier;
221 int SecondaryZoomMouseButton;
222 int SecondaryZoomModifier;
224 bool ZoomOnMouseWheel;
225 bool PanYOnMouseWheel;
230 vtkContextTransform(const vtkContextTransform &) VTK_DELETE_FUNCTION;
231 void operator=(const vtkContextTransform &) VTK_DELETE_FUNCTION;
235 #endif //vtkContextTransform_h Hold a reference to a vtkObjectBase instance.
all children of this item are transformed by the vtkTransform2D of this item.
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.
data structure to represent mouse events.
a simple class to control print indentation
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
base class for items that are part of a vtkContextScene.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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.