VTK
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkAffineRepresentation2D Class Reference

represent 2D affine transformations More...

#include <vtkAffineRepresentation2D.h>

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

List of all members.

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 doubleGetOrigin ()
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
typedef vtkAffineRepresentation Superclass
static int IsTypeOf (const char *type)
static vtkAffineRepresentation2DSafeDownCast (vtkObjectBase *o)
virtual int IsA (const char *type)
vtkAffineRepresentation2DNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual vtkObjectBaseNewInstanceInternal () const

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 64 of file vtkAffineRepresentation2D.h.


Member Typedef Documentation

Standard methods for instances of this class.

Reimplemented from vtkAffineRepresentation.

Definition at line 72 of file vtkAffineRepresentation2D.h.


Constructor & Destructor Documentation


Member Function Documentation

Instantiate this class.

Reimplemented from vtkObject.

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.

Standard methods for instances of this class.

Reimplemented from vtkAffineRepresentation.

virtual vtkObjectBase* vtkAffineRepresentation2D::NewInstanceInternal ( ) const [protected, virtual]

Standard methods for instances of this class.

Reimplemented from vtkAffineRepresentation.

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.

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.

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.

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.

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 94 of file vtkAffineRepresentation2D.h.

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.

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.

Set/Get the properties when unselected and selected.

Set/Get the properties when unselected and selected.

Set/Get the properties when unselected and selected.

Set/Get the properties when unselected and selected.

Set/Get the properties when unselected and selected.

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.

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.

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.

Methods to make this class behave as a vtkProp.

Reimplemented from vtkWidgetRepresentation.

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]

Member Data Documentation

Definition at line 162 of file vtkAffineRepresentation2D.h.

Definition at line 163 of file vtkAffineRepresentation2D.h.

Definition at line 164 of file vtkAffineRepresentation2D.h.

Definition at line 167 of file vtkAffineRepresentation2D.h.

Definition at line 170 of file vtkAffineRepresentation2D.h.

Definition at line 171 of file vtkAffineRepresentation2D.h.

Definition at line 172 of file vtkAffineRepresentation2D.h.

Definition at line 175 of file vtkAffineRepresentation2D.h.

Definition at line 176 of file vtkAffineRepresentation2D.h.

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 185 of file vtkAffineRepresentation2D.h.

Definition at line 190 of file vtkAffineRepresentation2D.h.

Definition at line 191 of file vtkAffineRepresentation2D.h.

Definition at line 192 of file vtkAffineRepresentation2D.h.

Definition at line 194 of file vtkAffineRepresentation2D.h.

Definition at line 195 of file vtkAffineRepresentation2D.h.

Definition at line 198 of file vtkAffineRepresentation2D.h.

Definition at line 202 of file vtkAffineRepresentation2D.h.

Definition at line 203 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 210 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 216 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 223 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 229 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.

Definition at line 235 of file vtkAffineRepresentation2D.h.


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