Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkSlicerROIRepresentation2D Class Reference

Default representation for the plane widget. More...

#include <Modules/Loadable/Markups/VTKWidgets/vtkSlicerROIRepresentation2D.h>

Inheritance diagram for vtkSlicerROIRepresentation2D:
Inheritance graph
[legend]
Collaboration diagram for vtkSlicerROIRepresentation2D:
Collaboration graph
[legend]

Public Types

typedef vtkSlicerMarkupsWidgetRepresentation2D Superclass
 Standard methods for instances of this class.
 
- Public Types inherited from vtkSlicerMarkupsWidgetRepresentation2D
typedef vtkSlicerMarkupsWidgetRepresentation Superclass
 Standard methods for instances of this class.
 
- Public Types inherited from vtkSlicerMarkupsWidgetRepresentation
enum  {
  Unselected , Selected , Active , Project ,
  ProjectBack , NumberOfControlPointTypes
}
 
typedef vtkMRMLAbstractWidgetRepresentation Superclass
 Standard methods for instances of this class.
 
- Public Types inherited from vtkMRMLAbstractWidgetRepresentation
typedef vtkProp Superclass
 Standard methods for instances of this class.
 

Public Member Functions

void CanInteract (vtkMRMLInteractionEventData *interactionEventData, int &foundComponentType, int &foundComponentIndex, double &closestDistance2) override
 Position is displayed (slice) position.
 
void CanInteractWithROI (vtkMRMLInteractionEventData *interactionEventData, int &foundComponentType, int &foundComponentIndex, double &closestDistance2)
 
void GetActors (vtkPropCollection *) override
 Methods to make this class behave as a vtkProp.
 
double * GetBounds () VTK_SIZEHINT(6) override
 Return the bounds of the representation.
 
virtual const char * GetClassName ()
 
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 UpdateFromMRMLInternal (vtkMRMLNode *caller, unsigned long event, void *callData=nullptr) override
 
- Public Member Functions inherited from vtkSlicerMarkupsWidgetRepresentation2D
void CanInteractWithLine (vtkMRMLInteractionEventData *interactionEventData, int &foundComponentType, int &foundComponentIndex, double &closestDistance2)
 
void GetActors (vtkPropCollection *) override
 Methods to make this class behave as a vtkProp.
 
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).
 
virtual void SetNthControlPointSliceVisibility (int n, bool visibility)
 Set the Nth node slice visibility (i.e. if it is on the slice).
 
- 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.
 
virtual vtkPolyData * GetControlPointsPolyData (int controlPointType)
 
virtual vtkPolyData * GetLabelControlPointsPolyData (int pipeline)
 
virtual vtkStringArray * GetLabels (int pipeline)
 
virtual vtkMRMLMarkupsDisplayNodeGetMarkupsDisplayNode ()
 
virtual vtkMRMLMarkupsNodeGetMarkupsNode ()
 
virtual vtkMRMLMarkupsNode::ControlPointGetNthControlPoint (int n)
 Get the nth control point.
 
virtual int GetNumberOfControlPoints ()
 Get number of control points.
 
virtual vtkPointPlacer * GetPointPlacer ()
 
virtual bool GetTransformationReferencePoint (double referencePointWorld[3])
 Translation, rotation, scaling will happen around this position.
 
vtkTypeBool HasTranslucentPolygonalGeometry () override
 
bool IsDisplayable ()
 
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 vtkMRMLMarkupsNode connected with this representation.
 
virtual void UpdateCenterOfRotation ()
 Compute the center of rotation and update it in the Markups node.
 
void UpdateFromMRML (vtkMRMLNode *caller, unsigned long event, void *callData=nullptr) override
 Update the representation from markups node.
 
- Public Member Functions inherited from vtkMRMLAbstractWidgetRepresentation
virtual void AlwaysOnTopOff ()
 
virtual void AlwaysOnTopOn ()
 
void GetActors (vtkPropCollection *) override
 
void GetActors2D (vtkPropCollection *) override
 
virtual bool GetAlwaysOnTop ()
 
virtual double GetAlwaysOnTopRelativeOffsetFactor ()
 
virtual double GetAlwaysOnTopRelativeOffsetUnits ()
 
virtual vtkMRMLApplicationLogicGetApplicationLogic ()
 
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 vtkMRMLAbstractViewNodeGetViewNode ()
 
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 int IsTypeOf (const char *type)
 
static vtkSlicerROIRepresentation2DNew ()
 Instantiate this class.
 
static vtkSlicerROIRepresentation2DSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkSlicerMarkupsWidgetRepresentation2D
static int IsTypeOf (const char *type)
 
static vtkSlicerMarkupsWidgetRepresentation2DSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkSlicerMarkupsWidgetRepresentation
static int IsTypeOf (const char *type)
 
static vtkSlicerMarkupsWidgetRepresentationSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkMRMLAbstractWidgetRepresentation
static int IsTypeOf (const char *type)
 
static vtkMRMLAbstractWidgetRepresentationSafeDownCast (vtkObject *o)
 

Protected Member Functions

void SetROISource (vtkPolyDataAlgorithm *roiSource)
 
virtual void UpdateCubeSourceFromMRML (vtkMRMLMarkupsROINode *roiNode)
 Update the cube source filter from the ROI node.
 
 vtkSlicerROIRepresentation2D ()
 
 ~vtkSlicerROIRepresentation2D () override
 
- Protected Member Functions inherited from vtkSlicerMarkupsWidgetRepresentation2D
bool GetAllControlPointsVisible () override
 Convenience method.
 
ControlPointsPipeline2DGetControlPointsPipeline (int controlPointType)
 
double GetMaximumControlPointPickingDistance2 ()
 
vtkMRMLSliceNodeGetSliceNode ()
 Get MRML view node as slice view node.
 
double GetWidgetOpacity (int controlPointType)
 
void GetWorldToDisplayCoordinates (double *worldCoordinates, double *displayCoordinates)
 
void GetWorldToDisplayCoordinates (double r, double a, double s, double *displayCoordinates)
 Convert display to world coordinates.
 
virtual bool IsCenterDisplayableOnSlice (vtkMRMLMarkupsNode *node)
 Check, if the point is displayable in the current slice geometry.
 
virtual bool IsControlPointDisplayableOnSlice (vtkMRMLMarkupsNode *node, int pointIndex=0)
 Check, if the point is displayable in the current slice geometry.
 
virtual bool IsPointBehindSlice (vtkMRMLMarkupsNode *node, int pointIndex=0)
 Check, if the point is behind in the current slice geometry.
 
virtual bool IsPointInFrontSlice (vtkMRMLMarkupsNode *node, int pointIndex=0)
 Check, if the point is in front in the current slice geometry.
 
bool IsRepresentationIntersectingSlice (vtkPolyData *representation, const char *arrayName)
 Check if the representation polydata intersects the slice.
 
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.
 
double * GetWidgetColor (int controlPointType) VTK_SIZEHINT(3)
 
virtual void SetMarkupsNode (vtkMRMLMarkupsNode *markupsNode)
 
 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

vtkSmartPointer< vtkActor2D > ROIActor
 
vtkSmartPointer< vtkContourTriangulator > ROIIntersectionTriangulator
 
vtkSmartPointer< vtkPolyDataMapper2D > ROIMapper
 
vtkSmartPointer< vtkActor2D > ROIOutlineActor
 
vtkSmartPointer< vtkCleanPolyData > ROIOutlineCleaner
 
vtkSmartPointer< vtkCutter > ROIOutlineCutter
 
vtkSmartPointer< vtkPolyDataMapper2D > ROIOutlineMapper
 
vtkSmartPointer< vtkProperty2D > ROIOutlineProperty
 
vtkSmartPointer< vtkTransformPolyDataFilter > ROIOutlineWorldToSliceTransformFilter
 
vtkSmartPointer< vtkPassThrough > ROIPipelineInputFilter
 
vtkSmartPointer< vtkProperty2D > ROIProperty
 
vtkSmartPointer< vtkPolyDataAlgorithm > ROISource
 
vtkSmartPointer< vtkTransform > ROIToWorldTransform
 
vtkSmartPointer< vtkTransformPolyDataFilter > ROIToWorldTransformFilter
 
- 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
ControlPointsPipelineControlPoints [NumberOfControlPointTypes]
 
double ControlPointSize
 
vtkTypeBool CurveClosed
 
vtkWeakPointer< vtkMRMLMarkupsDisplayNodeMarkupsDisplayNode
 
vtkWeakPointer< vtkMRMLMarkupsNodeMarkupsNode
 
vtkTimeStamp MarkupsTransformModifiedTime
 
vtkSmartPointer< vtkPointPlacer > PointPlacer
 
double ScreenSizePixel
 
vtkSmartPointer< vtkTextActor > TextActor
 
double ViewScaleFactorMmPerPixel
 
- Protected Attributes inherited from vtkMRMLAbstractWidgetRepresentation
bool AlwaysOnTop
 
double AlwaysOnTopRelativeOffsetFactor { 0.0 }
 Relative offset used for rendering occluded actors.
 
double AlwaysOnTopRelativeOffsetUnits { -66000.0 }
 
vtkWeakPointer< vtkMRMLApplicationLogicApplicationLogic
 
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< vtkMRMLAbstractViewNodeViewNode
 

Additional Inherited Members

- Static Protected Member Functions inherited from vtkSlicerMarkupsWidgetRepresentation
static int GetGlyphTypeSourceFromDisplay (int glyphTypeDisplay)
 

Detailed Description

Default representation for the plane widget.

This class provides the default concrete representation for the vtkMRMLAbstractWidget. See vtkMRMLAbstractWidget for details.

See also
vtkSlicerMarkupsWidgetRepresentation2D vtkMRMLAbstractWidget

Definition at line 49 of file vtkSlicerROIRepresentation2D.h.

Member Typedef Documentation

◆ Superclass

Standard methods for instances of this class.

Definition at line 56 of file vtkSlicerROIRepresentation2D.h.

Constructor & Destructor Documentation

◆ vtkSlicerROIRepresentation2D()

vtkSlicerROIRepresentation2D::vtkSlicerROIRepresentation2D ( )
protected

◆ ~vtkSlicerROIRepresentation2D()

vtkSlicerROIRepresentation2D::~vtkSlicerROIRepresentation2D ( )
overrideprotected

Member Function Documentation

◆ CanInteract()

void vtkSlicerROIRepresentation2D::CanInteract ( vtkMRMLInteractionEventData * interactionEventData,
int & foundComponentType,
int & foundComponentIndex,
double & closestDistance2 )
overridevirtual

Position is displayed (slice) position.

Reimplemented from vtkSlicerMarkupsWidgetRepresentation2D.

◆ CanInteractWithROI()

void vtkSlicerROIRepresentation2D::CanInteractWithROI ( vtkMRMLInteractionEventData * interactionEventData,
int & foundComponentType,
int & foundComponentIndex,
double & closestDistance2 )

◆ GetActors()

void vtkSlicerROIRepresentation2D::GetActors ( vtkPropCollection * )
override

Methods to make this class behave as a vtkProp.

◆ GetBounds()

double * vtkSlicerROIRepresentation2D::GetBounds ( )
override

Return the bounds of the representation.

◆ GetClassName()

virtual const char * vtkSlicerROIRepresentation2D::GetClassName ( )
virtual

◆ HasTranslucentPolygonalGeometry()

vtkTypeBool vtkSlicerROIRepresentation2D::HasTranslucentPolygonalGeometry ( )
override

◆ IsA()

virtual int vtkSlicerROIRepresentation2D::IsA ( const char * type)
virtual

◆ IsTypeOf()

static int vtkSlicerROIRepresentation2D::IsTypeOf ( const char * type)
static

◆ New()

static vtkSlicerROIRepresentation2D * vtkSlicerROIRepresentation2D::New ( )
static

Instantiate this class.

◆ PrintSelf()

void vtkSlicerROIRepresentation2D::PrintSelf ( ostream & os,
vtkIndent indent )
override

◆ ReleaseGraphicsResources()

void vtkSlicerROIRepresentation2D::ReleaseGraphicsResources ( vtkWindow * )
override

◆ RenderOpaqueGeometry()

int vtkSlicerROIRepresentation2D::RenderOpaqueGeometry ( vtkViewport * viewport)
override

◆ RenderOverlay()

int vtkSlicerROIRepresentation2D::RenderOverlay ( vtkViewport * viewport)
override

◆ RenderTranslucentPolygonalGeometry()

int vtkSlicerROIRepresentation2D::RenderTranslucentPolygonalGeometry ( vtkViewport * viewport)
override

◆ SafeDownCast()

static vtkSlicerROIRepresentation2D * vtkSlicerROIRepresentation2D::SafeDownCast ( vtkObject * o)
static

◆ SetROISource()

void vtkSlicerROIRepresentation2D::SetROISource ( vtkPolyDataAlgorithm * roiSource)
protected

◆ UpdateCubeSourceFromMRML()

virtual void vtkSlicerROIRepresentation2D::UpdateCubeSourceFromMRML ( vtkMRMLMarkupsROINode * roiNode)
protectedvirtual

Update the cube source filter from the ROI node.

◆ UpdateFromMRMLInternal()

void vtkSlicerROIRepresentation2D::UpdateFromMRMLInternal ( vtkMRMLNode * caller,
unsigned long event,
void * callData = nullptr )
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.

Member Data Documentation

◆ ROIActor

vtkSmartPointer<vtkActor2D> vtkSlicerROIRepresentation2D::ROIActor
protected

Definition at line 104 of file vtkSlicerROIRepresentation2D.h.

◆ ROIIntersectionTriangulator

vtkSmartPointer<vtkContourTriangulator> vtkSlicerROIRepresentation2D::ROIIntersectionTriangulator
protected

Definition at line 100 of file vtkSlicerROIRepresentation2D.h.

◆ ROIMapper

vtkSmartPointer<vtkPolyDataMapper2D> vtkSlicerROIRepresentation2D::ROIMapper
protected

Definition at line 102 of file vtkSlicerROIRepresentation2D.h.

◆ ROIOutlineActor

vtkSmartPointer<vtkActor2D> vtkSlicerROIRepresentation2D::ROIOutlineActor
protected

Definition at line 108 of file vtkSlicerROIRepresentation2D.h.

◆ ROIOutlineCleaner

vtkSmartPointer<vtkCleanPolyData> vtkSlicerROIRepresentation2D::ROIOutlineCleaner
protected

Definition at line 98 of file vtkSlicerROIRepresentation2D.h.

◆ ROIOutlineCutter

vtkSmartPointer<vtkCutter> vtkSlicerROIRepresentation2D::ROIOutlineCutter
protected

Definition at line 97 of file vtkSlicerROIRepresentation2D.h.

◆ ROIOutlineMapper

vtkSmartPointer<vtkPolyDataMapper2D> vtkSlicerROIRepresentation2D::ROIOutlineMapper
protected

Definition at line 106 of file vtkSlicerROIRepresentation2D.h.

◆ ROIOutlineProperty

vtkSmartPointer<vtkProperty2D> vtkSlicerROIRepresentation2D::ROIOutlineProperty
protected

Definition at line 107 of file vtkSlicerROIRepresentation2D.h.

◆ ROIOutlineWorldToSliceTransformFilter

vtkSmartPointer<vtkTransformPolyDataFilter> vtkSlicerROIRepresentation2D::ROIOutlineWorldToSliceTransformFilter
protected

Definition at line 99 of file vtkSlicerROIRepresentation2D.h.

◆ ROIPipelineInputFilter

vtkSmartPointer<vtkPassThrough> vtkSlicerROIRepresentation2D::ROIPipelineInputFilter
protected

Definition at line 94 of file vtkSlicerROIRepresentation2D.h.

◆ ROIProperty

vtkSmartPointer<vtkProperty2D> vtkSlicerROIRepresentation2D::ROIProperty
protected

Definition at line 103 of file vtkSlicerROIRepresentation2D.h.

◆ ROISource

vtkSmartPointer<vtkPolyDataAlgorithm> vtkSlicerROIRepresentation2D::ROISource
protected

Definition at line 92 of file vtkSlicerROIRepresentation2D.h.

◆ ROIToWorldTransform

vtkSmartPointer<vtkTransform> vtkSlicerROIRepresentation2D::ROIToWorldTransform
protected

Definition at line 95 of file vtkSlicerROIRepresentation2D.h.

◆ ROIToWorldTransformFilter

vtkSmartPointer<vtkTransformPolyDataFilter> vtkSlicerROIRepresentation2D::ROIToWorldTransformFilter
protected

Definition at line 96 of file vtkSlicerROIRepresentation2D.h.


The documentation for this class was generated from the following file: