#include <vtkContextTransform.h>
This class can be used to transform all child items of this class. The default transform is the identity.
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 vtkTransform2D * | GetTransform () |
virtual vtkVector2f | MapToParent (const vtkVector2f &point) |
virtual vtkVector2f | MapFromParent (const vtkVector2f &point) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkContextTransform * | SafeDownCast (vtkObject *o) |
static vtkContextTransform * | New () |
Protected Member Functions | |
vtkContextTransform () | |
~vtkContextTransform () | |
Protected Attributes | |
vtkSmartPointer< vtkTransform2D > | Transform |
vtkContextTransform::vtkContextTransform | ( | ) | [protected] |
vtkContextTransform::~vtkContextTransform | ( | ) | [protected] |
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.
vtkSmartPointer<vtkTransform2D> vtkContextTransform::Transform [protected] |
Definition at line 78 of file vtkContextTransform.h.