VTK
|
represent 2D affine transformations More...
#include <vtkAffineRepresentation2D.h>
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.)
Definition at line 64 of file vtkAffineRepresentation2D.h.
Standard methods for instances of this class.
Reimplemented from vtkAffineRepresentation.
Definition at line 72 of file vtkAffineRepresentation2D.h.
vtkAffineRepresentation2D::vtkAffineRepresentation2D | ( | ) | [protected] |
vtkAffineRepresentation2D::~vtkAffineRepresentation2D | ( | ) | [protected] |
static vtkAffineRepresentation2D* vtkAffineRepresentation2D::New | ( | ) | [static] |
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.
static vtkAffineRepresentation2D* vtkAffineRepresentation2D::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
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.
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 94 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.
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 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] |
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] |
int vtkAffineRepresentation2D::BoxWidth [protected] |
Definition at line 162 of file vtkAffineRepresentation2D.h.
int vtkAffineRepresentation2D::CircleWidth [protected] |
Definition at line 163 of file vtkAffineRepresentation2D.h.
int vtkAffineRepresentation2D::AxesWidth [protected] |
Definition at line 164 of file vtkAffineRepresentation2D.h.
int vtkAffineRepresentation2D::DisplayText [protected] |
Definition at line 167 of file vtkAffineRepresentation2D.h.
double vtkAffineRepresentation2D::CurrentWidth [protected] |
Definition at line 170 of file vtkAffineRepresentation2D.h.
double vtkAffineRepresentation2D::CurrentRadius [protected] |
Definition at line 171 of file vtkAffineRepresentation2D.h.
double vtkAffineRepresentation2D::CurrentAxesWidth [protected] |
Definition at line 172 of file vtkAffineRepresentation2D.h.
vtkTransform* vtkAffineRepresentation2D::CurrentTransform [protected] |
Definition at line 175 of file vtkAffineRepresentation2D.h.
vtkTransform* vtkAffineRepresentation2D::TotalTransform [protected] |
Definition at line 176 of file vtkAffineRepresentation2D.h.
vtkTransform* vtkAffineRepresentation2D::TempTransform [protected] |
Definition at line 177 of file vtkAffineRepresentation2D.h.
double vtkAffineRepresentation2D::Origin[4] [protected] |
Definition at line 178 of file vtkAffineRepresentation2D.h.
double vtkAffineRepresentation2D::DisplayOrigin[3] [protected] |
Definition at line 179 of file vtkAffineRepresentation2D.h.
double vtkAffineRepresentation2D::CurrentTranslation[3] [protected] |
Definition at line 180 of file vtkAffineRepresentation2D.h.
double vtkAffineRepresentation2D::StartWorldPosition[4] [protected] |
Definition at line 181 of file vtkAffineRepresentation2D.h.
double vtkAffineRepresentation2D::StartAngle [protected] |
Definition at line 182 of file vtkAffineRepresentation2D.h.
double vtkAffineRepresentation2D::CurrentAngle [protected] |
Definition at line 183 of file vtkAffineRepresentation2D.h.
double vtkAffineRepresentation2D::CurrentScale[2] [protected] |
Definition at line 184 of file vtkAffineRepresentation2D.h.
double vtkAffineRepresentation2D::CurrentShear[2] [protected] |
Definition at line 185 of file vtkAffineRepresentation2D.h.
vtkProperty2D* vtkAffineRepresentation2D::Property [protected] |
Definition at line 190 of file vtkAffineRepresentation2D.h.
vtkProperty2D* vtkAffineRepresentation2D::SelectedProperty [protected] |
Definition at line 191 of file vtkAffineRepresentation2D.h.
vtkTextProperty* vtkAffineRepresentation2D::TextProperty [protected] |
Definition at line 192 of file vtkAffineRepresentation2D.h.
double vtkAffineRepresentation2D::Opacity [protected] |
Definition at line 194 of file vtkAffineRepresentation2D.h.
double vtkAffineRepresentation2D::SelectedOpacity [protected] |
Definition at line 195 of file vtkAffineRepresentation2D.h.
double vtkAffineRepresentation2D::LastEventPosition[2] [protected] |
Definition at line 198 of file vtkAffineRepresentation2D.h.
vtkTextMapper* vtkAffineRepresentation2D::TextMapper [protected] |
Definition at line 202 of file vtkAffineRepresentation2D.h.
vtkActor2D* vtkAffineRepresentation2D::TextActor [protected] |
Definition at line 203 of file vtkAffineRepresentation2D.h.
vtkPoints* vtkAffineRepresentation2D::BoxPoints [protected] |
Definition at line 206 of file vtkAffineRepresentation2D.h.
vtkCellArray* vtkAffineRepresentation2D::BoxCellArray [protected] |
Definition at line 207 of file vtkAffineRepresentation2D.h.
vtkPolyData* vtkAffineRepresentation2D::Box [protected] |
Definition at line 208 of file vtkAffineRepresentation2D.h.
vtkPolyDataMapper2D* vtkAffineRepresentation2D::BoxMapper [protected] |
Definition at line 209 of file vtkAffineRepresentation2D.h.
vtkActor2D* vtkAffineRepresentation2D::BoxActor [protected] |
Definition at line 210 of file vtkAffineRepresentation2D.h.
vtkPoints* vtkAffineRepresentation2D::HBoxPoints [protected] |
Definition at line 212 of file vtkAffineRepresentation2D.h.
vtkCellArray* vtkAffineRepresentation2D::HBoxCellArray [protected] |
Definition at line 213 of file vtkAffineRepresentation2D.h.
vtkPolyData* vtkAffineRepresentation2D::HBox [protected] |
Definition at line 214 of file vtkAffineRepresentation2D.h.
vtkPolyDataMapper2D* vtkAffineRepresentation2D::HBoxMapper [protected] |
Definition at line 215 of file vtkAffineRepresentation2D.h.
vtkActor2D* vtkAffineRepresentation2D::HBoxActor [protected] |
Definition at line 216 of file vtkAffineRepresentation2D.h.
vtkPoints* vtkAffineRepresentation2D::CirclePoints [protected] |
Definition at line 219 of file vtkAffineRepresentation2D.h.
vtkCellArray* vtkAffineRepresentation2D::CircleCellArray [protected] |
Definition at line 220 of file vtkAffineRepresentation2D.h.
vtkPolyData* vtkAffineRepresentation2D::Circle [protected] |
Definition at line 221 of file vtkAffineRepresentation2D.h.
Definition at line 222 of file vtkAffineRepresentation2D.h.
vtkActor2D* vtkAffineRepresentation2D::CircleActor [protected] |
Definition at line 223 of file vtkAffineRepresentation2D.h.
vtkPoints* vtkAffineRepresentation2D::HCirclePoints [protected] |
Definition at line 225 of file vtkAffineRepresentation2D.h.
vtkCellArray* vtkAffineRepresentation2D::HCircleCellArray [protected] |
Definition at line 226 of file vtkAffineRepresentation2D.h.
vtkPolyData* vtkAffineRepresentation2D::HCircle [protected] |
Definition at line 227 of file vtkAffineRepresentation2D.h.
Definition at line 228 of file vtkAffineRepresentation2D.h.
vtkActor2D* vtkAffineRepresentation2D::HCircleActor [protected] |
Definition at line 229 of file vtkAffineRepresentation2D.h.
vtkLeaderActor2D* vtkAffineRepresentation2D::XAxis [protected] |
Definition at line 232 of file vtkAffineRepresentation2D.h.
vtkLeaderActor2D* vtkAffineRepresentation2D::YAxis [protected] |
Definition at line 233 of file vtkAffineRepresentation2D.h.
vtkLeaderActor2D* vtkAffineRepresentation2D::HXAxis [protected] |
Definition at line 234 of file vtkAffineRepresentation2D.h.
vtkLeaderActor2D* vtkAffineRepresentation2D::HYAxis [protected] |
Definition at line 235 of file vtkAffineRepresentation2D.h.