VTK
|
all children of this item are transformed by the vtkTransform2D of this item. More...
#include <vtkContextTransform.h>
all children of this item are transformed by the vtkTransform2D of this item.
This class can be used to transform all child items of this class. The default transform is the identity.
Definition at line 38 of file vtkContextTransform.h.
Reimplemented from vtkAbstractContextItem.
Definition at line 41 of file vtkContextTransform.h.
vtkContextTransform::vtkContextTransform | ( | ) | [protected] |
vtkContextTransform::~vtkContextTransform | ( | ) | [protected] |
static int vtkContextTransform::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkAbstractContextItem.
virtual int vtkContextTransform::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkAbstractContextItem.
static vtkContextTransform* vtkContextTransform::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkAbstractContextItem.
virtual vtkObjectBase* vtkContextTransform::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkAbstractContextItem.
Reimplemented from vtkAbstractContextItem.
virtual void vtkContextTransform::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkAbstractContextItem.
static vtkContextTransform* vtkContextTransform::New | ( | ) | [static] |
Creates a vtkContextTransform object.
Reimplemented from vtkObject.
virtual void vtkContextTransform::Update | ( | ) | [virtual] |
Perform any updates to the item that may be necessary before rendering. The scene should take care of calling this on all items before their Paint function is invoked.
Reimplemented from vtkAbstractContextItem.
virtual bool vtkContextTransform::Paint | ( | vtkContext2D * | painter | ) | [virtual] |
Paint event for the item, called whenever the item needs to be drawn.
Reimplemented from vtkAbstractContextItem.
virtual void vtkContextTransform::Translate | ( | float | dx, |
float | dy | ||
) | [virtual] |
Translate the item by the specified amounts dx and dy in the x and y directions.
virtual void vtkContextTransform::Scale | ( | float | dx, |
float | dy | ||
) | [virtual] |
Scale the item by the specified amounts dx and dy in the x and y directions.
virtual void vtkContextTransform::Rotate | ( | float | angle | ) | [virtual] |
Rotate the item by the specified angle.
virtual vtkTransform2D* vtkContextTransform::GetTransform | ( | ) | [virtual] |
Access the vtkTransform2D that controls object transformation.
virtual vtkVector2f vtkContextTransform::MapToParent | ( | const vtkVector2f & | point | ) | [virtual] |
Transforms a point to the parent coordinate system.
Reimplemented from vtkAbstractContextItem.
virtual vtkVector2f vtkContextTransform::MapFromParent | ( | const vtkVector2f & | point | ) | [virtual] |
Transforms a point from the parent coordinate system.
Reimplemented from vtkAbstractContextItem.
virtual void vtkContextTransform::SetPanMouseButton | ( | int | ) | [virtual] |
The mouse button from vtkContextMouseEvent to use for panning. Default is vtkContextMouseEvent::LEFT_BUTTON.
virtual int vtkContextTransform::GetPanMouseButton | ( | ) | [virtual] |
The mouse button from vtkContextMouseEvent to use for panning. Default is vtkContextMouseEvent::LEFT_BUTTON.
virtual void vtkContextTransform::SetPanModifier | ( | int | ) | [virtual] |
The modifier from vtkContextMouseEvent to use for panning. Default is vtkContextMouseEvent::NO_MODIFIER.
virtual int vtkContextTransform::GetPanModifier | ( | ) | [virtual] |
The modifier from vtkContextMouseEvent to use for panning. Default is vtkContextMouseEvent::NO_MODIFIER.
virtual void vtkContextTransform::SetSecondaryPanMouseButton | ( | int | ) | [virtual] |
A secondary mouse button from vtkContextMouseEvent to use for panning. Default is vtkContextMouseEvent::NO_BUTTON (disabled).
virtual int vtkContextTransform::GetSecondaryPanMouseButton | ( | ) | [virtual] |
A secondary mouse button from vtkContextMouseEvent to use for panning. Default is vtkContextMouseEvent::NO_BUTTON (disabled).
virtual void vtkContextTransform::SetSecondaryPanModifier | ( | int | ) | [virtual] |
A secondary modifier from vtkContextMouseEvent to use for panning. Default is vtkContextMouseEvent::NO_MODIFIER.
virtual int vtkContextTransform::GetSecondaryPanModifier | ( | ) | [virtual] |
A secondary modifier from vtkContextMouseEvent to use for panning. Default is vtkContextMouseEvent::NO_MODIFIER.
virtual void vtkContextTransform::SetZoomMouseButton | ( | int | ) | [virtual] |
The mouse button from vtkContextMouseEvent to use for panning. Default is vtkContextMouseEvent::RIGHT_BUTTON.
virtual int vtkContextTransform::GetZoomMouseButton | ( | ) | [virtual] |
The mouse button from vtkContextMouseEvent to use for panning. Default is vtkContextMouseEvent::RIGHT_BUTTON.
virtual void vtkContextTransform::SetZoomModifier | ( | int | ) | [virtual] |
The modifier from vtkContextMouseEvent to use for panning. Default is vtkContextMouseEvent::NO_MODIFIER.
virtual int vtkContextTransform::GetZoomModifier | ( | ) | [virtual] |
The modifier from vtkContextMouseEvent to use for panning. Default is vtkContextMouseEvent::NO_MODIFIER.
virtual void vtkContextTransform::SetSecondaryZoomMouseButton | ( | int | ) | [virtual] |
A secondary mouse button from vtkContextMouseEvent to use for panning. Default is vtkContextMouseEvent::LEFT_BUTTON.
virtual int vtkContextTransform::GetSecondaryZoomMouseButton | ( | ) | [virtual] |
A secondary mouse button from vtkContextMouseEvent to use for panning. Default is vtkContextMouseEvent::LEFT_BUTTON.
virtual void vtkContextTransform::SetSecondaryZoomModifier | ( | int | ) | [virtual] |
A secondary modifier from vtkContextMouseEvent to use for panning. Default is vtkContextMouseEvent::SHIFT_MODIFIER.
virtual int vtkContextTransform::GetSecondaryZoomModifier | ( | ) | [virtual] |
A secondary modifier from vtkContextMouseEvent to use for panning. Default is vtkContextMouseEvent::SHIFT_MODIFIER.
virtual void vtkContextTransform::SetZoomOnMouseWheel | ( | bool | ) | [virtual] |
Whether to zoom on mouse wheels. Default is true.
virtual bool vtkContextTransform::GetZoomOnMouseWheel | ( | ) | [virtual] |
Whether to zoom on mouse wheels. Default is true.
virtual void vtkContextTransform::ZoomOnMouseWheelOn | ( | ) | [virtual] |
Whether to zoom on mouse wheels. Default is true.
virtual void vtkContextTransform::ZoomOnMouseWheelOff | ( | ) | [virtual] |
Whether to zoom on mouse wheels. Default is true.
virtual void vtkContextTransform::SetPanYOnMouseWheel | ( | bool | ) | [virtual] |
Whether to pan in the Y direction on mouse wheels. Default is false.
virtual bool vtkContextTransform::GetPanYOnMouseWheel | ( | ) | [virtual] |
Whether to pan in the Y direction on mouse wheels. Default is false.
virtual void vtkContextTransform::PanYOnMouseWheelOn | ( | ) | [virtual] |
Whether to pan in the Y direction on mouse wheels. Default is false.
virtual void vtkContextTransform::PanYOnMouseWheelOff | ( | ) | [virtual] |
Whether to pan in the Y direction on mouse wheels. Default is false.
virtual bool vtkContextTransform::Hit | ( | const vtkContextMouseEvent & | mouse | ) | [virtual] |
Returns true if the transform is interactive, false otherwise.
Reimplemented from vtkAbstractContextItem.
virtual bool vtkContextTransform::MouseButtonPressEvent | ( | const vtkContextMouseEvent & | mouse | ) | [virtual] |
Mouse press event. Keep track of zoom anchor position.
Reimplemented from vtkAbstractContextItem.
virtual bool vtkContextTransform::MouseMoveEvent | ( | const vtkContextMouseEvent & | mouse | ) | [virtual] |
Mouse move event. Perform pan or zoom as specified by the mouse bindings.
Reimplemented from vtkAbstractContextItem.
virtual bool vtkContextTransform::MouseWheelEvent | ( | const vtkContextMouseEvent & | mouse, |
int | delta | ||
) | [virtual] |
Mouse wheel event. Perform pan or zoom as specified by mouse bindings.
Reimplemented from vtkAbstractContextItem.
vtkSmartPointer<vtkTransform2D> vtkContextTransform::Transform [protected] |
Definition at line 168 of file vtkContextTransform.h.
int vtkContextTransform::PanMouseButton [protected] |
Definition at line 170 of file vtkContextTransform.h.
int vtkContextTransform::PanModifier [protected] |
Definition at line 171 of file vtkContextTransform.h.
int vtkContextTransform::ZoomMouseButton [protected] |
Definition at line 172 of file vtkContextTransform.h.
int vtkContextTransform::ZoomModifier [protected] |
Definition at line 173 of file vtkContextTransform.h.
int vtkContextTransform::SecondaryPanMouseButton [protected] |
Definition at line 174 of file vtkContextTransform.h.
int vtkContextTransform::SecondaryPanModifier [protected] |
Definition at line 175 of file vtkContextTransform.h.
int vtkContextTransform::SecondaryZoomMouseButton [protected] |
Definition at line 176 of file vtkContextTransform.h.
int vtkContextTransform::SecondaryZoomModifier [protected] |
Definition at line 177 of file vtkContextTransform.h.
bool vtkContextTransform::ZoomOnMouseWheel [protected] |
Definition at line 179 of file vtkContextTransform.h.
bool vtkContextTransform::PanYOnMouseWheel [protected] |
Definition at line 180 of file vtkContextTransform.h.
vtkVector2f vtkContextTransform::ZoomAnchor [protected] |
Definition at line 182 of file vtkContextTransform.h.