36#ifndef vtkContextTransform_h 
   37#define vtkContextTransform_h 
   40#include "vtkRenderingContext2DModule.h"  
   45VTK_ABI_NAMESPACE_BEGIN
 
   66    return this->Superclass::AddItem(item);
 
   75    return this->Superclass::GetItem(index);
 
  110  virtual void Scale(
float dx, 
float dy);
 
  137  vtkSetMacro(PanMouseButton, 
int);
 
  138  vtkGetMacro(PanMouseButton, 
int);
 
  146  vtkSetMacro(PanModifier, 
int);
 
  147  vtkGetMacro(PanModifier, 
int);
 
  155  vtkSetMacro(SecondaryPanMouseButton, 
int);
 
  156  vtkGetMacro(SecondaryPanMouseButton, 
int);
 
  164  vtkSetMacro(SecondaryPanModifier, 
int);
 
  165  vtkGetMacro(SecondaryPanModifier, 
int);
 
  173  vtkSetMacro(ZoomMouseButton, 
int);
 
  174  vtkGetMacro(ZoomMouseButton, 
int);
 
  182  vtkSetMacro(ZoomModifier, 
int);
 
  183  vtkGetMacro(ZoomModifier, 
int);
 
  191  vtkSetMacro(SecondaryZoomMouseButton, 
int);
 
  192  vtkGetMacro(SecondaryZoomMouseButton, 
int);
 
  200  vtkSetMacro(SecondaryZoomModifier, 
int);
 
  201  vtkGetMacro(SecondaryZoomModifier, 
int);
 
  208  vtkSetMacro(ZoomOnMouseWheel, 
bool);
 
  209  vtkGetMacro(ZoomOnMouseWheel, 
bool);
 
  210  vtkBooleanMacro(ZoomOnMouseWheel, 
bool);
 
  217  vtkSetMacro(PanYOnMouseWheel, 
bool);
 
  218  vtkGetMacro(PanYOnMouseWheel, 
bool);
 
  219  vtkBooleanMacro(PanYOnMouseWheel, 
bool);
 
base class for items that are part of a vtkContextScene.
 
void ClearItems()
Remove all child items from this item.
 
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.
 
static vtkContextTransform * New()
Creates a vtkContextTransform object.
 
bool MouseWheelEvent(const vtkContextMouseEvent &mouse, int delta) override
Mouse wheel event.
 
bool Paint(vtkContext2D *painter) override
Paint event for the item, called whenever the item needs to be drawn.
 
vtkIdType AddItem(vtkAbstractContextItem *item) override
Add child items to this item.
 
virtual void Identity()
Reset the transform to the identity transformation.
 
virtual vtkTransform2D * GetTransform()
Access the vtkTransform2D that controls object transformation.
 
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
 
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
 
bool MouseMoveEvent(const vtkContextMouseEvent &mouse) override
Mouse move event.
 
bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse) override
Mouse press event.
 
vtkVector2f MapToParent(const vtkVector2f &point) override
Transforms a point to the parent coordinate system.
 
bool Hit(const vtkContextMouseEvent &mouse) override
Returns true if the transform is interactive, false otherwise.
 
void RemoveAllItems()
Remove all child items from this item.
 
vtkAbstractContextItem * GetItem(vtkIdType index) override
Get the item at the specified index.
 
~vtkContextTransform() override
 
void Update() override
Perform any updates to the item that may be necessary before rendering.
 
vtkVector2f MapFromParent(const vtkVector2f &point) override
Transforms a point from the parent coordinate system.
 
virtual void Scale(float dx, float dy)
Scale the item by the specified amounts dx and dy in the x and y directions.
 
vtkNew< vtkTransform2D > Transform
 
virtual void Rotate(float angle)
Rotate the item by the specified angle.
 
int SecondaryZoomModifier
 
a simple class to control print indentation
 
Allocate and hold a VTK object.