Slicer
5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Default representation for the plane widget. More...
#include <Modules/Loadable/Markups/VTKWidgets/vtkSlicerPlaneRepresentation2D.h>
Classes | |
class | MarkupsInteractionPipelinePlane2D |
Public Types | |
typedef vtkSlicerMarkupsWidgetRepresentation2D | Superclass |
Standard methods for instances of this class. More... | |
Public Types inherited from vtkSlicerMarkupsWidgetRepresentation2D | |
typedef vtkSlicerMarkupsWidgetRepresentation | Superclass |
Standard methods for instances of this class. More... | |
Public Types inherited from vtkSlicerMarkupsWidgetRepresentation | |
enum | { Unselected, Selected, Active, Project, ProjectBack, NumberOfControlPointTypes } |
typedef vtkMRMLAbstractWidgetRepresentation | Superclass |
Standard methods for instances of this class. More... | |
Public Types inherited from vtkMRMLAbstractWidgetRepresentation | |
typedef vtkProp | Superclass |
Standard methods for instances of this class. More... | |
Public Member Functions | |
void | BuildPlane () |
void | CanInteract (vtkMRMLInteractionEventData *interactionEventData, int &foundComponentType, int &foundComponentIndex, double &closestDistance2) override |
Position is displayed (slice) position. More... | |
void | CanInteractWithPlane (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 | GetTransformationReferencePoint (double referencePointWorld[3]) override |
Translation, rotation, scaling will happen around this position. More... | |
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 |
void | SetupInteractionPipeline () override |
Reimplemented for 2D specific mapper/actor settings. More... | |
void | UpdateFromMRML (vtkMRMLNode *caller, unsigned long event, void *callData=nullptr) override |
void | UpdateInteractionPipeline () override |
Update the interaction pipeline. More... | |
Public Member Functions inherited from vtkSlicerMarkupsWidgetRepresentation2D | |
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... | |
int | GetNthControlPointDisplayPosition (int n, double pos[2]) override |
virtual bool | GetNthControlPointViewVisibility (int n) |
void | GetSliceToWorldCoordinates (const double[2], double[3]) |
void | GetWorldToSliceCoordinates (const double worldPos[3], double slicePos[2]) |
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 | SetCenterSliceVisibility (bool visibility) |
Set the center slice visibility (i.e. if it is on the slice). More... | |
virtual void | SetNthControlPointSliceVisibility (int n, bool visibility) |
Set the Nth node slice visibility (i.e. if it is on the slice). More... | |
Public Member Functions inherited from vtkSlicerMarkupsWidgetRepresentation | |
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 void | GetInteractionHandlePositionWorld (int type, int index, double position[3]) |
Get the position of an interaction handle in world coordinates. 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 | GetNumberOfControlPoints () |
Get number of control points. More... | |
virtual vtkPointPlacer * | GetPointPlacer () |
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 | UpdateCenterOfRotation () |
Compute the center of rotation and update it in the Markups node. More... | |
bool | IsDisplayable () |
Public Member Functions inherited from vtkMRMLAbstractWidgetRepresentation | |
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 void | SetRenderer (vtkRenderer *ren) |
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 vtkSlicerPlaneRepresentation2D * | New () |
Instantiate this class. More... | |
static vtkSlicerPlaneRepresentation2D * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkSlicerMarkupsWidgetRepresentation2D | |
static int | IsTypeOf (const char *type) |
static vtkSlicerMarkupsWidgetRepresentation2D * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkSlicerMarkupsWidgetRepresentation | |
static int | IsTypeOf (const char *type) |
static vtkSlicerMarkupsWidgetRepresentation * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkMRMLAbstractWidgetRepresentation | |
static int | IsTypeOf (const char *type) |
static vtkMRMLAbstractWidgetRepresentation * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
virtual void | UpdatePlaneFillColorMap (vtkDiscretizableColorTransferFunction *colormap, double color[3]) |
virtual void | UpdatePlaneOutlineColorMap (vtkDiscretizableColorTransferFunction *colormap, double color[3]) |
vtkSlicerPlaneRepresentation2D () | |
~vtkSlicerPlaneRepresentation2D () override | |
Protected Member Functions inherited from vtkSlicerMarkupsWidgetRepresentation2D | |
bool | GetAllControlPointsVisible () override |
Convenience method. More... | |
ControlPointsPipeline2D * | GetControlPointsPipeline (int controlPointType) |
double | GetMaximumControlPointPickingDistance2 () |
double | GetMaximumInteractionHandlePickingDistance2 () |
vtkMRMLSliceNode * | GetSliceNode () |
Get MRML view node as slice view node. More... | |
double | GetWidgetOpacity (int controlPointType) |
void | GetWorldToDisplayCoordinates (double r, double a, double s, double *displayCoordinates) |
Convert display to world coordinates. More... | |
void | GetWorldToDisplayCoordinates (double *worldCoordinates, double *displayCoordinates) |
virtual bool | IsCenterDisplayableOnSlice (vtkMRMLMarkupsNode *node) |
Check, if the point is displayable in the current slice geometry. More... | |
virtual bool | IsControlPointDisplayableOnSlice (vtkMRMLMarkupsNode *node, int pointIndex=0) |
Check, if the point is displayable in the current slice geometry. More... | |
virtual bool | IsPointBehindSlice (vtkMRMLMarkupsNode *node, int pointIndex=0) |
Check, if the point is behind in the current slice geometry. More... | |
virtual bool | IsPointInFrontSlice (vtkMRMLMarkupsNode *node, int pointIndex=0) |
Check, if the point is in front in the current slice geometry. More... | |
bool | IsRepresentationIntersectingSlice (vtkPolyData *representation, const char *arrayName) |
Check if the representation polydata intersects the slice. More... | |
virtual void | UpdateAllPointsAndLabelsFromMRML (double labelsOffset) |
void | UpdateControlPointSize () override |
virtual void | UpdateDistanceColorMap (vtkDiscretizableColorTransferFunction *colormap, double color[3]) |
void | UpdatePlaneFromSliceNode () |
void | UpdateViewScaleFactor () override |
vtkSlicerMarkupsWidgetRepresentation2D () | |
~vtkSlicerMarkupsWidgetRepresentation2D () override | |
Protected Member Functions inherited from vtkSlicerMarkupsWidgetRepresentation | |
void | BuildLine (vtkPolyData *linePolyData, bool displayPosition) |
bool | GetAllControlPointsSelected () |
Convenience method. More... | |
double * | GetWidgetColor (int controlPointType) |
virtual void | SetMarkupsNode (vtkMRMLMarkupsNode *markupsNode) |
virtual void | UpdateInteractionHandleSize () |
vtkSlicerMarkupsWidgetRepresentation () | |
~vtkSlicerMarkupsWidgetRepresentation () override | |
Protected Member Functions inherited from vtkMRMLAbstractWidgetRepresentation | |
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 | |
vtkNew< vtkActor2D > | ArrowActor |
vtkNew< vtkGlyphSource2D > | ArrowFilter |
vtkNew< vtkGlyph2D > | ArrowGlypher |
vtkNew< vtkPolyDataMapper2D > | ArrowMapper |
std::string | LabelFormat |
vtkNew< vtkAppendPolyData > | PlaneAppend |
vtkNew< vtkClipPolyData > | PlaneClipperEndFadeFar |
vtkNew< vtkClipPolyData > | PlaneClipperEndFadeNear |
vtkNew< vtkClipPolyData > | PlaneClipperSlicePlane |
vtkNew< vtkClipPolyData > | PlaneClipperStartFadeFar |
vtkNew< vtkClipPolyData > | PlaneClipperStartFadeNear |
vtkNew< vtkCompositeDataGeometryFilter > | PlaneCompositeFilter |
vtkNew< vtkPlaneCutter > | PlaneCutter |
vtkNew< vtkActor2D > | PlaneFillActor |
vtkNew< vtkDiscretizableColorTransferFunction > | PlaneFillColorMap |
vtkNew< vtkPolyDataMapper2D > | PlaneFillMapper |
vtkNew< vtkPlaneSource > | PlaneFilter |
vtkNew< vtkActor2D > | PlaneOutlineActor |
vtkNew< vtkDiscretizableColorTransferFunction > | PlaneOutlineColorMap |
vtkNew< vtkFeatureEdges > | PlaneOutlineFilter |
vtkNew< vtkPolyDataMapper2D > | PlaneOutlineMapper |
vtkNew< vtkTransformPolyDataFilter > | PlaneOutlineWorldToSliceTransformer |
vtkNew< vtkAppendPolyData > | PlanePickingAppend |
vtkNew< vtkSampleImplicitFunctionFilter > | PlaneSliceDistance |
vtkNew< vtkTransformPolyDataFilter > | PlaneWorldToSliceTransformer |
Protected Attributes inherited from vtkSlicerMarkupsWidgetRepresentation2D | |
bool | AnyPointVisibilityOnSlice = { false } |
bool | CenterVisibilityOnSlice = { false } |
vtkSmartPointer< vtkIntArray > | PointsVisibilityOnSlice |
vtkSmartPointer< vtkPlane > | SlicePlane |
vtkSmartPointer< vtkTransform > | WorldToSliceTransform |
Protected Attributes inherited from vtkSlicerMarkupsWidgetRepresentation | |
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 |
Protected Attributes inherited from vtkMRMLAbstractWidgetRepresentation | |
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 | |
Protected Types inherited from vtkSlicerMarkupsWidgetRepresentation | |
typedef std::vector< MarkupsInteractionPipeline::HandleInfo > | HandleInfoList |
Static Protected Member Functions inherited from vtkSlicerMarkupsWidgetRepresentation | |
static int | GetGlyphTypeSourceFromDisplay (int glyphTypeDisplay) |
Default representation for the plane widget.
This class provides the default concrete representation for the vtkMRMLAbstractWidget. See vtkMRMLAbstractWidget for details.
Definition at line 50 of file vtkSlicerPlaneRepresentation2D.h.
Standard methods for instances of this class.
Definition at line 57 of file vtkSlicerPlaneRepresentation2D.h.
|
protected |
|
overrideprotected |
void vtkSlicerPlaneRepresentation2D::BuildPlane | ( | ) |
|
overridevirtual |
Position is displayed (slice) position.
Reimplemented from vtkSlicerMarkupsWidgetRepresentation2D.
void vtkSlicerPlaneRepresentation2D::CanInteractWithPlane | ( | vtkMRMLInteractionEventData * | interactionEventData, |
int & | foundComponentType, | ||
int & | foundComponentIndex, | ||
double & | closestDistance2 | ||
) |
|
override |
Methods to make this class behave as a vtkProp.
|
override |
Return the bounds of the representation.
|
virtual |
Reimplemented from vtkSlicerMarkupsWidgetRepresentation2D.
|
overridevirtual |
Translation, rotation, scaling will happen around this position.
Reimplemented from vtkSlicerMarkupsWidgetRepresentation.
|
override |
|
virtual |
Reimplemented from vtkSlicerMarkupsWidgetRepresentation2D.
|
static |
|
static |
Instantiate this class.
|
override |
|
override |
|
override |
|
override |
|
override |
|
static |
|
overridevirtual |
Reimplemented for 2D specific mapper/actor settings.
Reimplemented from vtkSlicerMarkupsWidgetRepresentation2D.
|
overridevirtual |
Subclasses of vtkContourCurveRepresentation must implement these methods. These are the methods that the widget and its representation use to communicate with each other.
Reimplemented from vtkSlicerMarkupsWidgetRepresentation2D.
|
overridevirtual |
Update the interaction pipeline.
Reimplemented from vtkSlicerMarkupsWidgetRepresentation2D.
|
protectedvirtual |
|
protectedvirtual |
|
protected |
Definition at line 125 of file vtkSlicerPlaneRepresentation2D.h.
|
protected |
Definition at line 122 of file vtkSlicerPlaneRepresentation2D.h.
|
protected |
Definition at line 123 of file vtkSlicerPlaneRepresentation2D.h.
|
protected |
Definition at line 124 of file vtkSlicerPlaneRepresentation2D.h.
|
protected |
Definition at line 129 of file vtkSlicerPlaneRepresentation2D.h.
|
protected |
Definition at line 109 of file vtkSlicerPlaneRepresentation2D.h.
|
protected |
Definition at line 106 of file vtkSlicerPlaneRepresentation2D.h.
|
protected |
Definition at line 104 of file vtkSlicerPlaneRepresentation2D.h.
|
protected |
Definition at line 102 of file vtkSlicerPlaneRepresentation2D.h.
|
protected |
Definition at line 105 of file vtkSlicerPlaneRepresentation2D.h.
|
protected |
Definition at line 103 of file vtkSlicerPlaneRepresentation2D.h.
|
protected |
Definition at line 108 of file vtkSlicerPlaneRepresentation2D.h.
|
protected |
Definition at line 100 of file vtkSlicerPlaneRepresentation2D.h.
|
protected |
Definition at line 112 of file vtkSlicerPlaneRepresentation2D.h.
|
protected |
Definition at line 127 of file vtkSlicerPlaneRepresentation2D.h.
|
protected |
Definition at line 111 of file vtkSlicerPlaneRepresentation2D.h.
|
protected |
Definition at line 99 of file vtkSlicerPlaneRepresentation2D.h.
|
protected |
Definition at line 118 of file vtkSlicerPlaneRepresentation2D.h.
|
protected |
Definition at line 115 of file vtkSlicerPlaneRepresentation2D.h.
|
protected |
Definition at line 114 of file vtkSlicerPlaneRepresentation2D.h.
|
protected |
Definition at line 117 of file vtkSlicerPlaneRepresentation2D.h.
|
protected |
Definition at line 116 of file vtkSlicerPlaneRepresentation2D.h.
|
protected |
Definition at line 120 of file vtkSlicerPlaneRepresentation2D.h.
|
protected |
Definition at line 128 of file vtkSlicerPlaneRepresentation2D.h.
|
protected |
Definition at line 110 of file vtkSlicerPlaneRepresentation2D.h.