VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkContextTransform Class Reference

all children of this item are transformed by the vtkTransform2D of this item. More...

#include <vtkContextTransform.h>

Inheritance diagram for vtkContextTransform:
Inheritance graph
[legend]
Collaboration diagram for vtkContextTransform:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkAbstractContextItem Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkContextTransformNewInstance () const
virtual void PrintSelf (ostream &os, vtkIndent indent)
virtual void Update ()
virtual bool Paint (vtkContext2D *painter)
virtual void Translate (float dx, float dy)
virtual void Scale (float dx, float dy)
virtual void Rotate (float angle)
virtual vtkTransform2DGetTransform ()
virtual vtkVector2f MapToParent (const vtkVector2f &point)
virtual vtkVector2f MapFromParent (const vtkVector2f &point)
virtual bool Hit (const vtkContextMouseEvent &mouse)
virtual bool MouseButtonPressEvent (const vtkContextMouseEvent &mouse)
virtual bool MouseMoveEvent (const vtkContextMouseEvent &mouse)
virtual void SetPanMouseButton (int)
virtual int GetPanMouseButton ()
virtual void SetPanModifier (int)
virtual int GetPanModifier ()
virtual void SetSecondaryPanMouseButton (int)
virtual int GetSecondaryPanMouseButton ()
virtual void SetSecondaryPanModifier (int)
virtual int GetSecondaryPanModifier ()
virtual void SetZoomMouseButton (int)
virtual int GetZoomMouseButton ()
virtual void SetZoomModifier (int)
virtual int GetZoomModifier ()
virtual void SetSecondaryZoomMouseButton (int)
virtual int GetSecondaryZoomMouseButton ()
virtual void SetSecondaryZoomModifier (int)
virtual int GetSecondaryZoomModifier ()
virtual void SetZoomOnMouseWheel (bool)
virtual bool GetZoomOnMouseWheel ()
virtual void ZoomOnMouseWheelOn ()
virtual void ZoomOnMouseWheelOff ()
virtual void SetPanYOnMouseWheel (bool)
virtual bool GetPanYOnMouseWheel ()
virtual void PanYOnMouseWheelOn ()
virtual void PanYOnMouseWheelOff ()
virtual bool MouseWheelEvent (const vtkContextMouseEvent &mouse, int delta)

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkContextTransformSafeDownCast (vtkObjectBase *o)
static vtkContextTransformNew ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkContextTransform ()
 ~vtkContextTransform ()

Protected Attributes

vtkSmartPointer< vtkTransform2DTransform
int PanMouseButton
int PanModifier
int ZoomMouseButton
int ZoomModifier
int SecondaryPanMouseButton
int SecondaryPanModifier
int SecondaryZoomMouseButton
int SecondaryZoomModifier
bool ZoomOnMouseWheel
bool PanYOnMouseWheel
vtkVector2f ZoomAnchor

Detailed Description

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.

Tests:
vtkContextTransform (Tests)

Definition at line 38 of file vtkContextTransform.h.


Member Typedef Documentation

Reimplemented from vtkAbstractContextItem.

Definition at line 41 of file vtkContextTransform.h.


Constructor & Destructor Documentation


Member Function Documentation

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.

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.

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.

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.

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.

The modifier from vtkContextMouseEvent to use for panning. Default is vtkContextMouseEvent::NO_MODIFIER.

A secondary mouse button from vtkContextMouseEvent to use for panning. Default is vtkContextMouseEvent::NO_BUTTON (disabled).

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.

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.

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.

The modifier from vtkContextMouseEvent to use for panning. Default is vtkContextMouseEvent::NO_MODIFIER.

A secondary mouse button from vtkContextMouseEvent to use for panning. Default is vtkContextMouseEvent::LEFT_BUTTON.

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.

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.


Member Data Documentation

Definition at line 168 of file vtkContextTransform.h.

Definition at line 170 of file vtkContextTransform.h.

Definition at line 171 of file vtkContextTransform.h.

Definition at line 172 of file vtkContextTransform.h.

Definition at line 173 of file vtkContextTransform.h.

Definition at line 174 of file vtkContextTransform.h.

Definition at line 175 of file vtkContextTransform.h.

Definition at line 176 of file vtkContextTransform.h.

Definition at line 177 of file vtkContextTransform.h.

Definition at line 179 of file vtkContextTransform.h.

Definition at line 180 of file vtkContextTransform.h.

Definition at line 182 of file vtkContextTransform.h.


The documentation for this class was generated from the following file: