vtkAffineRepresentation2D Class Reference

#include <vtkAffineRepresentation2D.h>

Inheritance diagram for vtkAffineRepresentation2D:

Inheritance graph
[legend]
Collaboration diagram for vtkAffineRepresentation2D:

Collaboration graph
[legend]

List of all members.


Detailed Description

represent 2D affine transformations

This class is used to represent a vtkAffineWidget. This representation consists of three parts: a box, a circle, and a cross. The box is used for scaling and shearing, the circle for rotation, and the cross for translation. These parts are drawn in the overlay plane and maintain a constant size (width and height) specified in terms of normalized viewport coordinates.

The representation maintains an internal transformation matrix (see superclass' GetTransform() method). The transformations generated by this widget assume that the representation lies in the x-y plane. If this is not the case, the user is responsible for transforming this representation's matrix into the correct coordinate space (by judicious matrix multiplication). Note that the transformation matrix returned by GetTransform() is relative to the last PlaceWidget() invocation. (The PlaceWidget() sets the origin around which rotation and scaling occurs; the origin is the center point of the bounding box provided.)

See also:
vtkAffineRepresentation vtkAffineWidget
Examples:
vtkAffineRepresentation2D (Examples)
Tests:
vtkAffineRepresentation2D (Tests)

Definition at line 63 of file vtkAffineRepresentation2D.h.

typedef vtkAffineRepresentation Superclass
static int IsTypeOf (const char *type)
static vtkAffineRepresentation2DSafeDownCast (vtkObject *o)
virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)

Public Member Functions

virtual void GetTransform (vtkTransform *t)
virtual void SetBoxWidth (int)
virtual int GetBoxWidth ()
virtual void SetCircleWidth (int)
virtual int GetCircleWidth ()
virtual void SetAxesWidth (int)
virtual int GetAxesWidth ()
void SetOrigin (double o[3])
void SetOrigin (double ox, double oy, double oz)
virtual double * GetOrigin ()
virtual void GetOrigin (double &, double &, double &)
virtual void GetOrigin (double[3])
void SetProperty (vtkProperty2D *)
void SetSelectedProperty (vtkProperty2D *)
void SetTextProperty (vtkTextProperty *)
virtual vtkProperty2DGetProperty ()
virtual vtkProperty2DGetSelectedProperty ()
virtual vtkTextPropertyGetTextProperty ()
virtual void SetDisplayText (int)
virtual int GetDisplayText ()
virtual void DisplayTextOn ()
virtual void DisplayTextOff ()
virtual void PlaceWidget (double bounds[6])
virtual void StartWidgetInteraction (double eventPos[2])
virtual void WidgetInteraction (double eventPos[2])
virtual void EndWidgetInteraction (double eventPos[2])
virtual int ComputeInteractionState (int X, int Y, int modify=0)
virtual void BuildRepresentation ()
virtual void ShallowCopy (vtkProp *prop)
virtual void GetActors2D (vtkPropCollection *)
virtual void ReleaseGraphicsResources (vtkWindow *)
virtual int RenderOverlay (vtkViewport *viewport)

Static Public Member Functions

static vtkAffineRepresentation2DNew ()

Protected Member Functions

 vtkAffineRepresentation2D ()
 ~vtkAffineRepresentation2D ()
void Translate (double eventPos[2])
void Scale (double eventPos[2])
void Rotate (double eventPos[2])
void Shear (double eventPos[2])
void Highlight (int highlight)
void UpdateText (const char *text, double eventPos[2])
void ApplyShear ()
void CreateDefaultProperties ()

Protected Attributes

int BoxWidth
int CircleWidth
int AxesWidth
int DisplayText
double CurrentWidth
double CurrentRadius
double CurrentAxesWidth
vtkTransformCurrentTransform
vtkTransformTotalTransform
vtkTransformTempTransform
double Origin [4]
double DisplayOrigin [3]
double CurrentTranslation [3]
double StartWorldPosition [4]
double StartAngle
double CurrentAngle
double CurrentScale [2]
double CurrentShear [2]
vtkProperty2DProperty
vtkProperty2DSelectedProperty
vtkTextPropertyTextProperty
double Opacity
double SelectedOpacity
double LastEventPosition [2]
vtkTextMapperTextMapper
vtkActor2DTextActor
vtkPointsBoxPoints
vtkCellArrayBoxCellArray
vtkPolyDataBox
vtkPolyDataMapper2DBoxMapper
vtkActor2DBoxActor
vtkPointsHBoxPoints
vtkCellArrayHBoxCellArray
vtkPolyDataHBox
vtkPolyDataMapper2DHBoxMapper
vtkActor2DHBoxActor
vtkPointsCirclePoints
vtkCellArrayCircleCellArray
vtkPolyDataCircle
vtkPolyDataMapper2DCircleMapper
vtkActor2DCircleActor
vtkPointsHCirclePoints
vtkCellArrayHCircleCellArray
vtkPolyDataHCircle
vtkPolyDataMapper2DHCircleMapper
vtkActor2DHCircleActor
vtkLeaderActor2DXAxis
vtkLeaderActor2DYAxis
vtkLeaderActor2DHXAxis
vtkLeaderActor2DHYAxis

Member Typedef Documentation

Standard methods for instances of this class.

Reimplemented from vtkAffineRepresentation.

Definition at line 71 of file vtkAffineRepresentation2D.h.


Constructor & Destructor Documentation

vtkAffineRepresentation2D::vtkAffineRepresentation2D (  )  [protected]

vtkAffineRepresentation2D::~vtkAffineRepresentation2D (  )  [protected]


Member Function Documentation

static vtkAffineRepresentation2D* vtkAffineRepresentation2D::New (  )  [static]

Instantiate this class.

Reimplemented from vtkObject.

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

Standard methods for instances of this class.

Reimplemented from vtkAffineRepresentation.

static int vtkAffineRepresentation2D::IsTypeOf ( const char *  type  )  [static]

Standard methods for instances of this class.

Reimplemented from vtkAffineRepresentation.

virtual int vtkAffineRepresentation2D::IsA ( const char *  type  )  [virtual]

Standard methods for instances of this class.

Reimplemented from vtkAffineRepresentation.

static vtkAffineRepresentation2D* vtkAffineRepresentation2D::SafeDownCast ( vtkObject o  )  [static]

Standard methods for instances of this class.

Reimplemented from vtkAffineRepresentation.

void vtkAffineRepresentation2D::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Standard methods for instances of this class.

Reimplemented from vtkAffineRepresentation.

virtual void vtkAffineRepresentation2D::SetBoxWidth ( int   )  [virtual]

Specify the width of the various parts of the representation (in pixels). The three parts are of the representation are the translation axes, the rotation circle, and the scale/shear box. Note that since the widget resizes itself so that the width and height are always the same, only the width needs to be specified.

virtual int vtkAffineRepresentation2D::GetBoxWidth (  )  [virtual]

Specify the width of the various parts of the representation (in pixels). The three parts are of the representation are the translation axes, the rotation circle, and the scale/shear box. Note that since the widget resizes itself so that the width and height are always the same, only the width needs to be specified.

virtual void vtkAffineRepresentation2D::SetCircleWidth ( int   )  [virtual]

Specify the width of the various parts of the representation (in pixels). The three parts are of the representation are the translation axes, the rotation circle, and the scale/shear box. Note that since the widget resizes itself so that the width and height are always the same, only the width needs to be specified.

virtual int vtkAffineRepresentation2D::GetCircleWidth (  )  [virtual]

Specify the width of the various parts of the representation (in pixels). The three parts are of the representation are the translation axes, the rotation circle, and the scale/shear box. Note that since the widget resizes itself so that the width and height are always the same, only the width needs to be specified.

virtual void vtkAffineRepresentation2D::SetAxesWidth ( int   )  [virtual]

Specify the width of the various parts of the representation (in pixels). The three parts are of the representation are the translation axes, the rotation circle, and the scale/shear box. Note that since the widget resizes itself so that the width and height are always the same, only the width needs to be specified.

virtual int vtkAffineRepresentation2D::GetAxesWidth (  )  [virtual]

Specify the width of the various parts of the representation (in pixels). The three parts are of the representation are the translation axes, the rotation circle, and the scale/shear box. Note that since the widget resizes itself so that the width and height are always the same, only the width needs to be specified.

void vtkAffineRepresentation2D::SetOrigin ( double  o[3]  )  [inline]

Specify the origin of the widget (in world coordinates). The origin is the point where the widget places itself. Note that rotations and scaling occurs around the origin.

Definition at line 93 of file vtkAffineRepresentation2D.h.

void vtkAffineRepresentation2D::SetOrigin ( double  ox,
double  oy,
double  oz 
)

Specify the origin of the widget (in world coordinates). The origin is the point where the widget places itself. Note that rotations and scaling occurs around the origin.

virtual double* vtkAffineRepresentation2D::GetOrigin (  )  [virtual]

Specify the origin of the widget (in world coordinates). The origin is the point where the widget places itself. Note that rotations and scaling occurs around the origin.

virtual void vtkAffineRepresentation2D::GetOrigin ( double &  ,
double &  ,
double &   
) [virtual]

Specify the origin of the widget (in world coordinates). The origin is the point where the widget places itself. Note that rotations and scaling occurs around the origin.

virtual void vtkAffineRepresentation2D::GetOrigin ( double  [3]  )  [virtual]

Specify the origin of the widget (in world coordinates). The origin is the point where the widget places itself. Note that rotations and scaling occurs around the origin.

virtual void vtkAffineRepresentation2D::GetTransform ( vtkTransform t  )  [virtual]

Retrieve a linear transform characterizing the affine transformation generated by this widget. This method copies its internal transform into the transform provided. Note that the PlaceWidget() method initializes the internal matrix to identity. All subsequent widget operations (i.e., scale, translate, rotate, shear) are concatenated with the internal transform.

Implements vtkAffineRepresentation.

void vtkAffineRepresentation2D::SetProperty ( vtkProperty2D  ) 

Set/Get the properties when unselected and selected.

void vtkAffineRepresentation2D::SetSelectedProperty ( vtkProperty2D  ) 

Set/Get the properties when unselected and selected.

void vtkAffineRepresentation2D::SetTextProperty ( vtkTextProperty  ) 

Set/Get the properties when unselected and selected.

virtual vtkProperty2D* vtkAffineRepresentation2D::GetProperty (  )  [virtual]

Set/Get the properties when unselected and selected.

virtual vtkProperty2D* vtkAffineRepresentation2D::GetSelectedProperty (  )  [virtual]

Set/Get the properties when unselected and selected.

virtual vtkTextProperty* vtkAffineRepresentation2D::GetTextProperty (  )  [virtual]

Set/Get the properties when unselected and selected.

virtual void vtkAffineRepresentation2D::SetDisplayText ( int   )  [virtual]

Enable the display of text with numeric values characterizing the transformation. Rotation and shear are expressed in degrees; translation the distance in world coordinates; and scale normalized (sx,sy) values.

virtual int vtkAffineRepresentation2D::GetDisplayText (  )  [virtual]

Enable the display of text with numeric values characterizing the transformation. Rotation and shear are expressed in degrees; translation the distance in world coordinates; and scale normalized (sx,sy) values.

virtual void vtkAffineRepresentation2D::DisplayTextOn (  )  [virtual]

Enable the display of text with numeric values characterizing the transformation. Rotation and shear are expressed in degrees; translation the distance in world coordinates; and scale normalized (sx,sy) values.

virtual void vtkAffineRepresentation2D::DisplayTextOff (  )  [virtual]

Enable the display of text with numeric values characterizing the transformation. Rotation and shear are expressed in degrees; translation the distance in world coordinates; and scale normalized (sx,sy) values.

virtual void vtkAffineRepresentation2D::PlaceWidget ( double  bounds[6]  )  [virtual]

Subclasses of vtkAffineRepresentation2D must implement these methods. These are the methods that the widget and its representation use to communicate with each other. Note: PlaceWidget() reinitializes the transformation matrix (i.e., sets it to identity). It also sets the origin for scaling and rotation.

virtual void vtkAffineRepresentation2D::StartWidgetInteraction ( double  eventPos[2]  )  [virtual]

Subclasses of vtkAffineRepresentation2D must implement these methods. These are the methods that the widget and its representation use to communicate with each other. Note: PlaceWidget() reinitializes the transformation matrix (i.e., sets it to identity). It also sets the origin for scaling and rotation.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkAffineRepresentation2D::WidgetInteraction ( double  eventPos[2]  )  [virtual]

Subclasses of vtkAffineRepresentation2D must implement these methods. These are the methods that the widget and its representation use to communicate with each other. Note: PlaceWidget() reinitializes the transformation matrix (i.e., sets it to identity). It also sets the origin for scaling and rotation.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkAffineRepresentation2D::EndWidgetInteraction ( double  eventPos[2]  )  [virtual]

Subclasses of vtkAffineRepresentation2D must implement these methods. These are the methods that the widget and its representation use to communicate with each other. Note: PlaceWidget() reinitializes the transformation matrix (i.e., sets it to identity). It also sets the origin for scaling and rotation.

Reimplemented from vtkWidgetRepresentation.

virtual int vtkAffineRepresentation2D::ComputeInteractionState ( int  X,
int  Y,
int  modify = 0 
) [virtual]

Subclasses of vtkAffineRepresentation2D must implement these methods. These are the methods that the widget and its representation use to communicate with each other. Note: PlaceWidget() reinitializes the transformation matrix (i.e., sets it to identity). It also sets the origin for scaling and rotation.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkAffineRepresentation2D::BuildRepresentation (  )  [virtual]

Subclasses of vtkAffineRepresentation2D must implement these methods. These are the methods that the widget and its representation use to communicate with each other. Note: PlaceWidget() reinitializes the transformation matrix (i.e., sets it to identity). It also sets the origin for scaling and rotation.

Implements vtkWidgetRepresentation.

virtual void vtkAffineRepresentation2D::ShallowCopy ( vtkProp prop  )  [virtual]

Methods to make this class behave as a vtkProp.

Reimplemented from vtkAffineRepresentation.

virtual void vtkAffineRepresentation2D::GetActors2D ( vtkPropCollection  )  [virtual]

Methods to make this class behave as a vtkProp.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkAffineRepresentation2D::ReleaseGraphicsResources ( vtkWindow  )  [virtual]

Methods to make this class behave as a vtkProp.

Reimplemented from vtkWidgetRepresentation.

virtual int vtkAffineRepresentation2D::RenderOverlay ( vtkViewport viewport  )  [virtual]

Methods to make this class behave as a vtkProp.

Reimplemented from vtkProp.

void vtkAffineRepresentation2D::Translate ( double  eventPos[2]  )  [protected]

void vtkAffineRepresentation2D::Scale ( double  eventPos[2]  )  [protected]

void vtkAffineRepresentation2D::Rotate ( double  eventPos[2]  )  [protected]

void vtkAffineRepresentation2D::Shear ( double  eventPos[2]  )  [protected]

void vtkAffineRepresentation2D::Highlight ( int  highlight  )  [protected]

void vtkAffineRepresentation2D::UpdateText ( const char *  text,
double  eventPos[2] 
) [protected]

void vtkAffineRepresentation2D::ApplyShear (  )  [protected]

void vtkAffineRepresentation2D::CreateDefaultProperties (  )  [protected]


Member Data Documentation

Definition at line 161 of file vtkAffineRepresentation2D.h.

Definition at line 162 of file vtkAffineRepresentation2D.h.

Definition at line 163 of file vtkAffineRepresentation2D.h.

Definition at line 166 of file vtkAffineRepresentation2D.h.

Definition at line 169 of file vtkAffineRepresentation2D.h.

Definition at line 170 of file vtkAffineRepresentation2D.h.

Definition at line 171 of file vtkAffineRepresentation2D.h.

Definition at line 174 of file vtkAffineRepresentation2D.h.

Definition at line 175 of file vtkAffineRepresentation2D.h.

Definition at line 176 of file vtkAffineRepresentation2D.h.

double vtkAffineRepresentation2D::Origin[4] [protected]

Definition at line 177 of file vtkAffineRepresentation2D.h.

Definition at line 178 of file vtkAffineRepresentation2D.h.

Definition at line 179 of file vtkAffineRepresentation2D.h.

Definition at line 180 of file vtkAffineRepresentation2D.h.

Definition at line 181 of file vtkAffineRepresentation2D.h.

Definition at line 182 of file vtkAffineRepresentation2D.h.

Definition at line 183 of file vtkAffineRepresentation2D.h.

Definition at line 184 of file vtkAffineRepresentation2D.h.

Definition at line 189 of file vtkAffineRepresentation2D.h.

Definition at line 190 of file vtkAffineRepresentation2D.h.

Definition at line 191 of file vtkAffineRepresentation2D.h.

Definition at line 193 of file vtkAffineRepresentation2D.h.

Definition at line 194 of file vtkAffineRepresentation2D.h.

Definition at line 197 of file vtkAffineRepresentation2D.h.

Definition at line 201 of file vtkAffineRepresentation2D.h.

Definition at line 202 of file vtkAffineRepresentation2D.h.

Definition at line 205 of file vtkAffineRepresentation2D.h.

Definition at line 206 of file vtkAffineRepresentation2D.h.

Definition at line 207 of file vtkAffineRepresentation2D.h.

Definition at line 208 of file vtkAffineRepresentation2D.h.

Definition at line 209 of file vtkAffineRepresentation2D.h.

Definition at line 211 of file vtkAffineRepresentation2D.h.

Definition at line 212 of file vtkAffineRepresentation2D.h.

Definition at line 213 of file vtkAffineRepresentation2D.h.

Definition at line 214 of file vtkAffineRepresentation2D.h.

Definition at line 215 of file vtkAffineRepresentation2D.h.

Definition at line 218 of file vtkAffineRepresentation2D.h.

Definition at line 219 of file vtkAffineRepresentation2D.h.

Definition at line 220 of file vtkAffineRepresentation2D.h.

Definition at line 221 of file vtkAffineRepresentation2D.h.

Definition at line 222 of file vtkAffineRepresentation2D.h.

Definition at line 224 of file vtkAffineRepresentation2D.h.

Definition at line 225 of file vtkAffineRepresentation2D.h.

Definition at line 226 of file vtkAffineRepresentation2D.h.

Definition at line 227 of file vtkAffineRepresentation2D.h.

Definition at line 228 of file vtkAffineRepresentation2D.h.

Definition at line 231 of file vtkAffineRepresentation2D.h.

Definition at line 232 of file vtkAffineRepresentation2D.h.

Definition at line 233 of file vtkAffineRepresentation2D.h.

Definition at line 234 of file vtkAffineRepresentation2D.h.


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

Generated on Wed Aug 24 11:28:26 2011 for VTK by  doxygen 1.5.6