![]() |
Slicer
4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Default representation for the markups widget in 3D views. More...
#include <Modules/Loadable/Markups/VTKWidgets/vtkSlicerMarkupsWidgetRepresentation3D.h>
Classes | |
class | ControlPointsPipeline3D |
Public Types | |
typedef vtkSlicerMarkupsWidgetRepresentation | Superclass |
Standard methods for instances of this class. More... | |
![]() | |
enum | { Unselected, Selected, Active, Project, ProjectBack, NumberOfControlPointTypes } |
typedef vtkMRMLAbstractWidgetRepresentation | Superclass |
Standard methods for instances of this class. More... | |
![]() | |
typedef vtkProp | Superclass |
Standard methods for instances of this class. More... | |
Public Member Functions | |
bool | AccuratePick (int x, int y, double pickPoint[3]) |
void | CanInteract (vtkMRMLInteractionEventData *interactionEventData, int &foundComponentType, int &foundComponentIndex, double &closestDistance2) override |
virtual void | CanInteractWithHandles (vtkMRMLInteractionEventData *interactionEventData, int &foundComponentType, int &foundComponentIndex, double &closestDistance2) |
Check if interaction with the transformation handles is possible. More... | |
void | CanInteractWithLine (vtkMRMLInteractionEventData *interactionEventData, int &foundComponentType, int &foundComponentIndex, double &closestDistance2) |
void | GetActors (vtkPropCollection *) override |
Methods to make this class behave as a vtkProp. More... | |
double * | GetBounds () override |
Return the bounds of the representation. More... | |
virtual const char * | GetClassName () |
bool | GetNthControlPointViewVisibility (int n) |
virtual double | GetOccludedRelativeOffset () |
vtkTypeBool | HasTranslucentPolygonalGeometry () override |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
void | ReleaseGraphicsResources (vtkWindow *) override |
int | RenderOpaqueGeometry (vtkViewport *viewport) override |
int | RenderOverlay (vtkViewport *viewport) override |
int | RenderTranslucentPolygonalGeometry (vtkViewport *viewport) override |
virtual void | SetOccludedRelativeOffset (double) |
void | SetRenderer (vtkRenderer *ren) override |
void | UpdateFromMRML (vtkMRMLNode *caller, unsigned long event, void *callData=nullptr) override |
![]() | |
virtual int | FindClosestPointOnWidget (const int displayPos[2], double worldPos[3], int *idx) |
void | GetActors (vtkPropCollection *) override |
Methods to make this class behave as a vtkProp. More... | |
virtual vtkPolyData * | GetControlPointsPolyData (int controlPointType) |
virtual void | GetInteractionHandleAxisWorld (int type, int index, double axis[3]) |
Get the axis for the handle specified by the index. More... | |
virtual void | GetInteractionHandleOriginWorld (double origin[3]) |
Get the origin of the interaction handle widget. More... | |
virtual vtkPolyData * | GetLabelControlPointsPolyData (int pipeline) |
virtual vtkStringArray * | GetLabels (int pipeline) |
virtual vtkMRMLMarkupsDisplayNode * | GetMarkupsDisplayNode () |
virtual vtkMRMLMarkupsNode * | GetMarkupsNode () |
virtual vtkMRMLMarkupsNode::ControlPoint * | GetNthControlPoint (int n) |
Get the nth control point. More... | |
virtual int | GetNthControlPointDisplayPosition (int n, double pos[2]) |
virtual int | GetNumberOfControlPoints () |
Get number of control points. More... | |
virtual vtkPointPlacer * | GetPointPlacer () |
virtual bool | GetTransformationReferencePoint (double referencePointWorld[3]) |
Translation, rotation, scaling will happen around this position. More... | |
vtkTypeBool | HasTranslucentPolygonalGeometry () override |
void | PrintSelf (ostream &os, vtkIndent indent) override |
void | ReleaseGraphicsResources (vtkWindow *) override |
int | RenderOpaqueGeometry (vtkViewport *viewport) override |
int | RenderOverlay (vtkViewport *viewport) override |
int | RenderTranslucentPolygonalGeometry (vtkViewport *viewport) override |
virtual void | SetMarkupsDisplayNode (vtkMRMLMarkupsDisplayNode *markupsDisplayNode) |
Set/Get the vtkMRMLMarkipsNode connected with this representation. More... | |
virtual void | UpdateCenter () |
bool | IsDisplayable () |
![]() | |
virtual void | AlwaysOnTopOff () |
virtual void | AlwaysOnTopOn () |
virtual bool | GetAlwaysOnTop () |
virtual double | GetPickingTolerance () |
void | PrintSelf (ostream &os, vtkIndent indent) override |
virtual void | SetAlwaysOnTop (bool) |
virtual void | SetPickingTolerance (double) |
double * | GetBounds () VTK_SIZEHINT(6) override |
void | GetActors (vtkPropCollection *) override |
void | GetActors2D (vtkPropCollection *) override |
void | GetVolumes (vtkPropCollection *) override |
void | ReleaseGraphicsResources (vtkWindow *) override |
int | RenderOverlay (vtkViewport *vtkNotUsed(viewport)) override |
int | RenderOpaqueGeometry (vtkViewport *vtkNotUsed(viewport)) override |
int | RenderTranslucentPolygonalGeometry (vtkViewport *vtkNotUsed(viewport)) override |
int | RenderVolumetricGeometry (vtkViewport *vtkNotUsed(viewport)) override |
vtkTypeBool | HasTranslucentPolygonalGeometry () override |
virtual vtkRenderer * | GetRenderer () |
virtual void | SetViewNode (vtkMRMLAbstractViewNode *viewNode) |
virtual vtkMRMLAbstractViewNode * | GetViewNode () |
virtual bool | GetNeedToRender () |
virtual void | SetNeedToRender (bool) |
virtual void | NeedToRenderOn () |
virtual void | NeedToRenderOff () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkSlicerMarkupsWidgetRepresentation3D * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkSlicerMarkupsWidgetRepresentation * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkMRMLAbstractWidgetRepresentation * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
ControlPointsPipeline3D * | GetControlPointsPipeline (int controlPointType) |
double | GetViewScaleFactorAtPosition (double positionWorld[3]) |
virtual void | UpdateAllPointsAndLabelsFromMRML () |
void | UpdateControlPointSize () override |
void | UpdateInteractionPipeline () override |
Update the interaction pipeline. More... | |
virtual void | UpdateNthPointAndLabelFromMRML (int n) |
void | UpdateRelativeCoincidentTopologyOffsets (vtkMapper *mapper, vtkMapper *occludedMapper) |
virtual void | UpdateRelativeCoincidentTopologyOffsets (vtkMapper *mapper) |
void | UpdateViewScaleFactor () override |
vtkSlicerMarkupsWidgetRepresentation3D () | |
~vtkSlicerMarkupsWidgetRepresentation3D () override | |
![]() | |
void | BuildLine (vtkPolyData *linePolyData, bool displayPosition) |
bool | GetAllControlPointsSelected () |
Convenience method. More... | |
virtual bool | GetAllControlPointsVisible () |
Convenience method. More... | |
double * | GetWidgetColor (int controlPointType) |
virtual void | SetMarkupsNode (vtkMRMLMarkupsNode *markupsNode) |
virtual void | SetupInteractionPipeline () |
vtkSlicerMarkupsWidgetRepresentation () | |
~vtkSlicerMarkupsWidgetRepresentation () 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< vtkCellPicker > | AccuratePicker |
bool | HideTextActorIfAllPointsOccluded |
double | OccludedRelativeOffset |
bool | TextActorOccluded |
double | TextActorPositionWorld [3] |
![]() | |
ControlPointsPipeline * | ControlPoints [NumberOfControlPointTypes] |
double | ControlPointSize |
vtkTypeBool | CurveClosed |
MarkupsInteractionPipeline * | InteractionPipeline |
vtkWeakPointer< vtkMRMLMarkupsDisplayNode > | MarkupsDisplayNode |
vtkWeakPointer< vtkMRMLMarkupsNode > | MarkupsNode |
vtkTimeStamp | MarkupsTransformModifiedTime |
vtkSmartPointer< vtkPointPlacer > | PointPlacer |
double | ScreenSizePixel |
vtkSmartPointer< vtkTextActor > | TextActor |
double | ViewScaleFactorMmPerPixel |
![]() | |
bool | AlwaysOnTop |
double | Bounds [6] |
Temporary variable to store GetBounds() result. More... | |
bool | NeedToRender |
double | PickingTolerance |
vtkWeakPointer< vtkRenderer > | Renderer |
The renderer in which this widget is placed. More... | |
double | ScreenScaleFactor |
Allows global rescaling of all widgets (to compensate for larger or smaller physical screen size) More... | |
vtkWeakPointer< vtkMRMLAbstractViewNode > | ViewNode |
Additional Inherited Members | |
![]() | |
typedef std::vector< MarkupsInteractionPipeline::HandleInfo > | HandleInfoList |
![]() | |
static int | GetGlyphTypeSourceFromDisplay (int glyphTypeDisplay) |
Default representation for the markups widget in 3D views.
Definition at line 44 of file vtkSlicerMarkupsWidgetRepresentation3D.h.
Standard methods for instances of this class.
Definition at line 48 of file vtkSlicerMarkupsWidgetRepresentation3D.h.
|
protected |
|
overrideprotected |
bool vtkSlicerMarkupsWidgetRepresentation3D::AccuratePick | ( | int | x, |
int | y, | ||
double | pickPoint[3] | ||
) |
|
overridevirtual |
Return found component type (as vtkMRMLMarkupsDisplayNode::ComponentType). closestDistance2 is the squared distance in display coordinates from the closest position where interaction is possible. componentIndex returns index of the found component (e.g., if control point is found then control point index is returned).
Reimplemented from vtkSlicerMarkupsWidgetRepresentation.
Reimplemented in vtkSlicerROIRepresentation3D, and vtkSlicerPlaneRepresentation3D.
|
virtual |
Check if interaction with the transformation handles is possible.
void vtkSlicerMarkupsWidgetRepresentation3D::CanInteractWithLine | ( | vtkMRMLInteractionEventData * | interactionEventData, |
int & | foundComponentType, | ||
int & | foundComponentIndex, | ||
double & | closestDistance2 | ||
) |
Checks if interaction with straight line between visible points is possible. Can be used on the output of CanInteract, as if no better component is found then the input is returned.
|
override |
Methods to make this class behave as a vtkProp.
|
override |
Return the bounds of the representation.
|
virtual |
|
protected |
bool vtkSlicerMarkupsWidgetRepresentation3D::GetNthControlPointViewVisibility | ( | int | n | ) |
Return true if the control point is actually visible (displayed and not occluded by other objects in the view). Useful for non-regression tests that need to inspect internal state of the widget.
|
virtual |
|
protected |
|
override |
|
virtual |
|
static |
|
override |
|
override |
|
override |
|
override |
|
override |
|
static |
|
virtual |
Relative offset used for rendering occluded actors. The range of coincident offset can be betweeen +/- 65000. Positive values move the occluded objects away from the camera, and negative values towards. Default value is -25000.
|
overridevirtual |
Set the renderer in which the representations draws itself. Typically the renderer is set by the associated widget. Use the widget's SetCurrentRenderer() method in most cases; otherwise there is a risk of inconsistent behavior as events and drawing may be performed in different viewports. WARNING: The renderer is NOT reference counted by the representation, in order to avoid reference loops. Be sure that the representation lifetime does not extend beyond the renderer lifetime.
Reimplemented from vtkMRMLAbstractWidgetRepresentation.
|
protectedvirtual |
|
overrideprotectedvirtual |
Implements vtkSlicerMarkupsWidgetRepresentation.
|
overridevirtual |
Subclasses of vtkSlicerMarkupsWidgetRepresentation3D must implement these methods. These are the methods that the widget and its representation use to communicate with each other.
Reimplemented from vtkSlicerMarkupsWidgetRepresentation.
Reimplemented in vtkSlicerROIRepresentation3D, and vtkSlicerPlaneRepresentation3D.
|
overrideprotectedvirtual |
Update the interaction pipeline.
Reimplemented from vtkSlicerMarkupsWidgetRepresentation.
Reimplemented in vtkSlicerPlaneRepresentation3D, and vtkSlicerROIRepresentation3D.
|
protectedvirtual |
|
protected |
Update the occluded relative offsets for an occluded mapper Allows occluded regions to be rendered on top. Sets the folowing parameter on the mappers:
|
protected |
|
overrideprotectedvirtual |
Implements vtkSlicerMarkupsWidgetRepresentation.
|
protected |
Definition at line 151 of file vtkSlicerMarkupsWidgetRepresentation3D.h.
|
protected |
Definition at line 155 of file vtkSlicerMarkupsWidgetRepresentation3D.h.
|
protected |
Definition at line 156 of file vtkSlicerMarkupsWidgetRepresentation3D.h.
|
protected |
Definition at line 154 of file vtkSlicerMarkupsWidgetRepresentation3D.h.
|
protected |
Definition at line 153 of file vtkSlicerMarkupsWidgetRepresentation3D.h.