vtkContextTransform Class Reference

#include <vtkContextTransform.h>

Inheritance diagram for vtkContextTransform:

Inheritance graph
[legend]
Collaboration diagram for vtkContextTransform:

Collaboration graph
[legend]

List of all members.


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 36 of file vtkContextTransform.h.


Public Types

typedef vtkAbstractContextItem Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
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)

Static Public Member Functions

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

Protected Member Functions

 vtkContextTransform ()
 ~vtkContextTransform ()

Protected Attributes

vtkSmartPointer< vtkTransform2DTransform

Member Typedef Documentation

Reimplemented from vtkAbstractContextItem.

Definition at line 39 of file vtkContextTransform.h.


Constructor & Destructor Documentation

vtkContextTransform::vtkContextTransform (  )  [protected]

vtkContextTransform::~vtkContextTransform (  )  [protected]


Member Function Documentation

virtual const char* vtkContextTransform::GetClassName (  )  [virtual]

Reimplemented from vtkAbstractContextItem.

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 ( vtkObject o  )  [static]

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.


Member Data Documentation

Definition at line 78 of file vtkContextTransform.h.


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

Generated on Wed Aug 24 11:32:15 2011 for VTK by  doxygen 1.5.6