VTK
|
represent 2D affine transformations More...
#include <vtkAffineRepresentation2D.h>
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 (const 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 vtkProperty2D * | GetProperty () |
virtual vtkProperty2D * | GetSelectedProperty () |
virtual vtkTextProperty * | GetTextProperty () |
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) |
Public Member Functions inherited from vtkAffineRepresentation | |
virtual void | SetTolerance (int) |
virtual int | GetTolerance () |
vtkAffineRepresentation * | NewInstance () const |
Public Member Functions inherited from vtkWidgetRepresentation | |
virtual void | PickingManagedOn () |
virtual void | PickingManagedOff () |
virtual void | SetPickingManaged (bool) |
virtual bool | GetPickingManaged () |
virtual void | SetRenderer (vtkRenderer *ren) |
virtual vtkRenderer * | GetRenderer () |
virtual void | PlaceWidget (double *vtkNotUsed(bounds[6])) |
virtual int | GetInteractionState () |
virtual void | Highlight (int vtkNotUsed(highlightOn)) |
virtual void | SetPlaceFactor (double) |
virtual double | GetPlaceFactor () |
virtual void | SetHandleSize (double) |
virtual double | GetHandleSize () |
virtual int | GetNeedToRender () |
virtual void | SetNeedToRender (int) |
virtual void | NeedToRenderOn () |
virtual void | NeedToRenderOff () |
virtual double * | GetBounds () |
virtual void | GetActors (vtkPropCollection *) |
virtual void | GetVolumes (vtkPropCollection *) |
virtual int | RenderOverlay (vtkViewport *vtkNotUsed(viewport)) |
virtual int | RenderOpaqueGeometry (vtkViewport *vtkNotUsed(viewport)) |
virtual int | RenderTranslucentPolygonalGeometry (vtkViewport *vtkNotUsed(viewport)) |
virtual int | RenderVolumetricGeometry (vtkViewport *vtkNotUsed(viewport)) |
virtual int | HasTranslucentPolygonalGeometry () |
vtkWidgetRepresentation * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
Public Member Functions inherited from vtkProp | |
vtkProp * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Pick () |
virtual bool | HasKeys (vtkInformation *requiredKeys) |
virtual void | BuildPaths (vtkAssemblyPaths *paths, vtkAssemblyPath *path) |
virtual void | SetVisibility (int) |
virtual int | GetVisibility () |
virtual void | VisibilityOn () |
virtual void | VisibilityOff () |
virtual void | SetPickable (int) |
virtual int | GetPickable () |
virtual void | PickableOn () |
virtual void | PickableOff () |
virtual void | SetDragable (int) |
virtual int | GetDragable () |
virtual void | DragableOn () |
virtual void | DragableOff () |
virtual unsigned long | GetRedrawMTime () |
virtual void | SetUseBounds (bool) |
virtual bool | GetUseBounds () |
virtual void | UseBoundsOn () |
virtual void | UseBoundsOff () |
virtual void | InitPathTraversal () |
virtual vtkAssemblyPath * | GetNextPath () |
virtual int | GetNumberOfPaths () |
virtual void | PokeMatrix (vtkMatrix4x4 *vtkNotUsed(matrix)) |
virtual vtkMatrix4x4 * | GetMatrix () |
virtual vtkInformation * | GetPropertyKeys () |
virtual void | SetPropertyKeys (vtkInformation *keys) |
virtual int | RenderOpaqueGeometry (vtkViewport *) |
virtual int | RenderTranslucentPolygonalGeometry (vtkViewport *) |
virtual int | RenderVolumetricGeometry (vtkViewport *) |
virtual bool | RenderFilteredOpaqueGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
virtual bool | RenderFilteredTranslucentPolygonalGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
virtual bool | RenderFilteredVolumetricGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
virtual bool | RenderFilteredOverlay (vtkViewport *v, vtkInformation *requiredKeys) |
virtual double | GetEstimatedRenderTime (vtkViewport *) |
virtual double | GetEstimatedRenderTime () |
virtual void | SetEstimatedRenderTime (double t) |
virtual void | RestoreEstimatedRenderTime () |
virtual void | AddEstimatedRenderTime (double t, vtkViewport *vtkNotUsed(vp)) |
virtual void | SetAllocatedRenderTime (double t, vtkViewport *vtkNotUsed(v)) |
virtual double | GetAllocatedRenderTime () |
void | SetRenderTimeMultiplier (double t) |
virtual double | GetRenderTimeMultiplier () |
virtual bool | GetSupportsSelection () |
virtual int | GetNumberOfConsumers () |
void | AddConsumer (vtkObject *c) |
void | RemoveConsumer (vtkObject *c) |
vtkObject * | GetConsumer (int i) |
int | IsConsumer (vtkObject *c) |
Public Member Functions inherited from vtkObject | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
Public Member Functions inherited from vtkObjectBase | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static vtkAffineRepresentation2D * | New () |
Static Public Member Functions inherited from vtkAffineRepresentation | |
static int | IsTypeOf (const char *type) |
static vtkAffineRepresentation * | SafeDownCast (vtkObjectBase *o) |
Static Public Member Functions inherited from vtkWidgetRepresentation | |
static int | IsTypeOf (const char *type) |
static vtkWidgetRepresentation * | SafeDownCast (vtkObjectBase *o) |
Static Public Member Functions inherited from vtkProp | |
static int | IsTypeOf (const char *type) |
static vtkProp * | SafeDownCast (vtkObjectBase *o) |
static vtkInformationIntegerKey * | GeneralTextureUnit () |
static vtkInformationDoubleVectorKey * | GeneralTextureTransform () |
Static Public Member Functions inherited from vtkObject | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
Static Public Member Functions inherited from vtkObjectBase | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Additional Inherited Members | |
Public Types inherited from vtkAffineRepresentation | |
enum | _InteractionState { Outside =0, Rotate, Translate, TranslateX, TranslateY, ScaleWEdge, ScaleEEdge, ScaleNEdge, ScaleSEdge, ScaleNE, ScaleSW, ScaleNW, ScaleSE, ShearEEdge, ShearWEdge, ShearNEdge, ShearSEdge, MoveOriginX, MoveOriginY, MoveOrigin } |
typedef vtkWidgetRepresentation | Superclass |
Public Types inherited from vtkWidgetRepresentation | |
typedef vtkProp | Superclass |
Public Types inherited from vtkProp | |
typedef vtkObject | Superclass |
Public Types inherited from vtkObject | |
typedef vtkObjectBase | Superclass |
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.
Definition at line 72 of file vtkAffineRepresentation2D.h.
|
protected |
|
protected |
|
static |
Instantiate this class.
|
static |
Standard methods for instances of this class.
|
virtual |
Standard methods for instances of this class.
Reimplemented from vtkAffineRepresentation.
|
static |
Standard methods for instances of this class.
|
protectedvirtual |
Standard methods for instances of this class.
Reimplemented from vtkAffineRepresentation.
vtkAffineRepresentation2D* vtkAffineRepresentation2D::NewInstance | ( | ) | const |
Standard methods for instances of this class.
|
virtual |
Standard methods for instances of this class.
Reimplemented from vtkAffineRepresentation.
|
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 |
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 |
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 |
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 |
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 |
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.
|
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.
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 |
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 |
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 |
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 |
Set/Get the properties when unselected and selected.
|
virtual |
Set/Get the properties when unselected and selected.
|
virtual |
Set/Get the properties when unselected and selected.
|
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
Methods to make this class behave as a vtkProp.
Reimplemented from vtkAffineRepresentation.
|
virtual |
Methods to make this class behave as a vtkProp.
Reimplemented from vtkWidgetRepresentation.
|
virtual |
Methods to make this class behave as a vtkProp.
Reimplemented from vtkWidgetRepresentation.
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 162 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 163 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 164 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 167 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 170 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 171 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 172 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 175 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 176 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 177 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 178 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 179 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 180 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 181 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 182 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 183 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 184 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 185 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 190 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 191 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 192 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 194 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 195 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 198 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 202 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 203 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 206 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 207 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 208 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 209 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 210 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 212 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 213 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 214 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 215 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 216 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 219 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 220 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 221 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 222 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 223 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 225 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 226 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 227 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 228 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 229 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 232 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 233 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 234 of file vtkAffineRepresentation2D.h.
|
protected |
Definition at line 235 of file vtkAffineRepresentation2D.h.