![]() |
Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Abstract representation for the transform handle widgets. More...
#include <Modules/Loadable/Transforms/MRMLDM/vtkMRMLTransformHandleWidgetRepresentation.h>
Public Member Functions | |
virtual int | GetActiveComponentIndex () override |
virtual int | GetActiveComponentType () override |
virtual vtkMRMLTransformDisplayNode * | GetDisplayNode () |
bool | GetHandleVisibility (int type, int index) override |
Get the visibility of the specified handle. | |
double | GetInteractionScalePercent () override |
Size relative to screen. | |
bool | GetInteractionSizeAbsolute () override |
True -> size in mm; false -> relative to screen. | |
double | GetInteractionSizeMm () override |
Size in mm. | |
virtual vtkMRMLTransformNode * | GetTransformNode () |
bool | IsDisplayable () override |
virtual void | SetActiveComponentIndex (int type) override |
virtual void | SetActiveComponentType (int type) override |
virtual void | SetDisplayNode (vtkMRMLTransformDisplayNode *displayNode) |
virtual void | UpdateHandleToWorldTransform () |
void | UpdateHandleToWorldTransform (vtkTransform *handleToWorldTransform) override |
void | UpdateInteractionPipeline () override |
Update the interaction pipeline. | |
![]() | |
virtual void | CanInteract (vtkMRMLInteractionEventData *interactionEventData, int &foundComponentType, int &foundComponentIndex, double &closestDistance2) |
void | GetActors (vtkPropCollection *) override |
Methods to make this class behave as a vtkProp. | |
virtual bool | GetApplyScaleToPosition (int type, int index) |
Get if the view scaling should be applied to the position of the handle. | |
virtual void | GetHandleColor (int type, int index, double color[4]) |
virtual int | GetHandleGlyphType (int type, int index) |
Get the type of glyph (Arrow, Circle, Ring, etc.) of the specified handle. | |
virtual double | GetHandleOpacity (int type, int index) |
Get the opacity of the specified handle. | |
virtual vtkTransform * | GetHandleToWorldTransform () |
virtual bool | GetInteracting () |
vtkProp * | GetInteractionActor () |
Returns the actor for the interaction widget. | |
virtual void | GetInteractionHandleAxisLocal (int type, int index, double axis[3]) |
Get the axis for the handle specified by the index in local coordinates. | |
virtual void | GetInteractionHandleAxisWorld (int type, int index, double axis[3]) |
Get the axis for the handle specified by the index. | |
virtual void | GetInteractionHandleOriginWorld (double origin[3]) |
Get the origin of the interaction handle widget. | |
virtual void | GetInteractionHandlePositionLocal (int type, int index, double position[3]) |
virtual void | GetInteractionHandlePositionWorld (int type, int index, double position[3]) |
virtual double | GetMaximumHandlePickingDistance2 () |
virtual int | GetNumberOfHandles () |
virtual int | GetNumberOfHandles (int type) |
virtual vtkPointPlacer * | GetPointPlacer () |
virtual vtkMRMLSliceNode * | GetSliceNode () |
virtual void | GetSliceToWorldCoordinates (const double slicePos[2], double worldPos[3]) |
virtual bool | GetTransformationReferencePoint (double referencePointWorld[3]) |
Translation, rotation, scaling will happen around this position. | |
vtkTypeBool | HasTranslucentPolygonalGeometry () override |
virtual void | InteractingOff () |
virtual void | InteractingOn () |
void | ReleaseGraphicsResources (vtkWindow *) override |
int | RenderOpaqueGeometry (vtkViewport *viewport) override |
int | RenderOverlay (vtkViewport *viewport) override |
int | RenderTranslucentPolygonalGeometry (vtkViewport *viewport) override |
virtual void | SetInteracting (bool) |
void | UpdateFromMRML (vtkMRMLNode *caller, unsigned long event, void *callData=nullptr) override |
Update the representation from display node. | |
virtual void | UpdateHandlePolyData () |
virtual void | UpdateSlicePlaneFromSliceNode () |
void | PrintSelf (ostream &os, vtkIndent indent) override |
![]() | |
virtual void | AlwaysOnTopOff () |
virtual void | AlwaysOnTopOn () |
void | GetActors (vtkPropCollection *) override |
void | GetActors2D (vtkPropCollection *) override |
virtual bool | GetAlwaysOnTop () |
virtual double | GetAlwaysOnTopRelativeOffsetFactor () |
virtual double | GetAlwaysOnTopRelativeOffsetUnits () |
virtual vtkMRMLApplicationLogic * | GetApplicationLogic () |
double * | GetBounds () VTK_SIZEHINT(6) override |
virtual bool | GetNeedToRender () |
virtual double | GetPickingTolerance () |
virtual vtkRenderer * | GetRenderer () |
double | GetScreenScaleFactor () |
Convenience method for getting screen scale factor from the associated view node. | |
virtual vtkMRMLAbstractViewNode * | GetViewNode () |
void | GetVolumes (vtkPropCollection *) override |
vtkTypeBool | HasTranslucentPolygonalGeometry () override |
virtual void | NeedToRenderOff () |
virtual void | NeedToRenderOn () |
void | PrintSelf (ostream &os, vtkIndent indent) override |
void | ReleaseGraphicsResources (vtkWindow *) override |
int | RenderOpaqueGeometry (vtkViewport *vtkNotUsed(viewport)) override |
int | RenderOverlay (vtkViewport *vtkNotUsed(viewport)) override |
int | RenderTranslucentPolygonalGeometry (vtkViewport *vtkNotUsed(viewport)) override |
int | RenderVolumetricGeometry (vtkViewport *vtkNotUsed(viewport)) override |
virtual void | SetAlwaysOnTop (bool) |
virtual void | SetAlwaysOnTopRelativeOffsetFactor (double) |
virtual void | SetAlwaysOnTopRelativeOffsetUnits (double) |
virtual void | SetApplicationLogic (vtkMRMLApplicationLogic *appLogic) |
virtual void | SetNeedToRender (bool) |
virtual void | SetPickingTolerance (double) |
virtual void | SetRenderer (vtkRenderer *ren) |
virtual void | SetViewNode (vtkMRMLAbstractViewNode *viewNode) |
Static Public Member Functions | |
static vtkMRMLTransformHandleWidgetRepresentation * | New () |
Instantiate this class. | |
static int | IsTypeOf (const char *type) |
static vtkMRMLInteractionWidgetRepresentation * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkMRMLAbstractWidgetRepresentation * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkMRMLTransformHandleWidgetRepresentation () | |
~vtkMRMLTransformHandleWidgetRepresentation () override | |
![]() | |
virtual void | CanInteractWithArrowHandle (vtkMRMLInteractionEventData *interactionEventData, int &foundComponentType, int &foundComponentIndex, double &closestDistance2, HandleInfo &handleInfo) |
virtual void | CanInteractWithCircleHandle (vtkMRMLInteractionEventData *interactionEventData, int &foundComponentType, int &foundComponentIndex, double &closestDistance2, HandleInfo &handleInfo) |
virtual void | CanInteractWithRingHandle (vtkMRMLInteractionEventData *interactionEventData, int &foundComponentType, int &foundComponentIndex, double &closestDistance2, HandleInfo &handleInfo) |
virtual void | CreateRotationHandles () |
virtual void | CreateScaleHandles () |
virtual void | CreateTranslationHandles () |
virtual HandleInfo | GetHandleInfo (int type, int index) |
virtual HandleInfoList | GetHandleInfoList () |
virtual vtkPolyData * | GetHandlePolydata (int type) |
virtual void | GetHandleToCameraVectorWorld (double handlePosition_World[3], double normal_World[3]) |
virtual void | InitializePipeline () |
virtual void | OrthoganalizeTransform (vtkTransform *transform) |
Orthogonalize the transform axes. The Z-axis will not be changed. | |
virtual void | SetupInteractionPipeline () |
virtual void | SetWidgetScale (double scale) |
Set the scale of the interaction handles in world coordinates. | |
virtual void | UpdateHandleColors () |
virtual int | UpdateHandleColors (int type, int startIndex) |
virtual void | UpdateHandleOrientation () |
virtual void | UpdateHandleSize () |
virtual void | UpdateRotationHandleOrientation () |
virtual void | UpdateScaleHandleOrientation () |
virtual void | UpdateTranslationHandleOrientation () |
virtual void | UpdateViewScaleFactor () |
Calculate view size and scale factor. | |
vtkMRMLInteractionWidgetRepresentation () | |
~vtkMRMLInteractionWidgetRepresentation () override | |
![]() | |
void | AddActorsBounds (vtkBoundingBox &bounds, const std::vector< vtkProp * > &actors, double *additionalBounds=nullptr) |
void | GetRendererComputedDisplayPositionFromWorldPosition (const double worldPos[3], double displayPos[2]) |
virtual void | UpdateRelativeCoincidentTopologyOffsets (vtkMapper *mapper) |
vtkMRMLAbstractWidgetRepresentation () | |
~vtkMRMLAbstractWidgetRepresentation () override | |
Protected Attributes | |
vtkSmartPointer< vtkMRMLTransformDisplayNode > | DisplayNode |
![]() | |
double | EndFadeAngleDegrees {8.0} |
The angle between the camera and the interaction axis at which point the interaction handle is completely faded out. | |
bool | Interacting {false} |
double | InteractionSize {1.0} |
InteractionPipeline * | Pipeline |
vtkSmartPointer< vtkPointPlacer > | PointPlacer |
double | ScreenSizePixel |
vtkSmartPointer< vtkPlane > | SlicePlane |
double | StartFadeAngleDegrees {10.0} |
The angle between the camera and the interaction axis at which point the interaction handle starts to fade out. | |
double | ViewScaleFactorMmPerPixel |
double | WidgetScale {1.0} |
![]() | |
bool | AlwaysOnTop |
double | AlwaysOnTopRelativeOffsetFactor { 0.0 } |
Relative offset used for rendering occluded actors. | |
double | AlwaysOnTopRelativeOffsetUnits { -66000.0 } |
vtkWeakPointer< vtkMRMLApplicationLogic > | ApplicationLogic |
double | Bounds [6] |
Temporary variable to store GetBounds() result. | |
bool | NeedToRender |
double | PickingTolerance |
vtkWeakPointer< vtkRenderer > | Renderer |
The renderer in which this widget is placed. | |
vtkWeakPointer< vtkMRMLAbstractViewNode > | ViewNode |
typedef vtkMRMLInteractionWidgetRepresentation | Superclass |
static int | IsTypeOf (const char *type) |
static vtkMRMLTransformHandleWidgetRepresentation * | SafeDownCast (vtkObject *o) |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
Additional Inherited Members | |
![]() | |
enum | { InteractionNone , InteractionTranslationHandle , InteractionRotationHandle , InteractionScaleHandle , Interaction_Last } |
enum | { GlyphArrow , GlyphCircle , GlyphRing } |
typedef vtkMRMLAbstractWidgetRepresentation | Superclass |
![]() | |
typedef vtkProp | Superclass |
Standard methods for instances of this class. | |
![]() | |
typedef std::vector< HandleInfo > | HandleInfoList |
Get the list of info for all interaction handles. | |
Abstract representation for the transform handle widgets.
Definition at line 43 of file vtkMRMLTransformHandleWidgetRepresentation.h.
typedef vtkMRMLInteractionWidgetRepresentation vtkMRMLTransformHandleWidgetRepresentation::Superclass |
Standard VTK class macros.
Definition at line 52 of file vtkMRMLTransformHandleWidgetRepresentation.h.
|
protected |
|
overrideprotected |
|
overridevirtual |
Implements vtkMRMLInteractionWidgetRepresentation.
|
overridevirtual |
Implements vtkMRMLInteractionWidgetRepresentation.
|
virtual |
Reimplemented from vtkMRMLInteractionWidgetRepresentation.
|
virtual |
|
overridevirtual |
Get the visibility of the specified handle.
Reimplemented from vtkMRMLInteractionWidgetRepresentation.
|
overridevirtual |
Size relative to screen.
Reimplemented from vtkMRMLInteractionWidgetRepresentation.
|
overridevirtual |
True -> size in mm; false -> relative to screen.
Reimplemented from vtkMRMLInteractionWidgetRepresentation.
|
overridevirtual |
Size in mm.
Reimplemented from vtkMRMLInteractionWidgetRepresentation.
|
virtual |
|
virtual |
Reimplemented from vtkMRMLInteractionWidgetRepresentation.
|
overridevirtual |
Returns true if the representation is displayable in the current view. It takes into account current view node's display node and parent folder's visibility.
Implements vtkMRMLInteractionWidgetRepresentation.
|
static |
|
static |
Instantiate this class.
|
override |
|
static |
|
overridevirtual |
Implements vtkMRMLInteractionWidgetRepresentation.
|
overridevirtual |
Implements vtkMRMLInteractionWidgetRepresentation.
|
virtual |
|
virtual |
Update HandleToWorldTransform. This controls the position and orientation of the interaction handles.
Reimplemented from vtkMRMLInteractionWidgetRepresentation.
|
overridevirtual |
Implements vtkMRMLInteractionWidgetRepresentation.
|
overridevirtual |
Update the interaction pipeline.
Reimplemented from vtkMRMLInteractionWidgetRepresentation.
|
protected |
Definition at line 86 of file vtkMRMLTransformHandleWidgetRepresentation.h.