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
vtkSlicerROIRepresentation3D Class Reference

Default representation for the plane widget. More...

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

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

Public Types

typedef vtkSlicerMarkupsWidgetRepresentation3D Superclass
 Standard methods for instances of this class.
 
- Public Types inherited from vtkSlicerMarkupsWidgetRepresentation3D
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
 
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
 
virtual void UpdateCubeSourceFromMRML (vtkMRMLMarkupsROINode *roiNode)
 Updates the dimensions of the cube source filter.
 
void UpdateFromMRMLInternal (vtkMRMLNode *caller, unsigned long event, void *callData=nullptr) override
 
- Public Member Functions inherited from vtkSlicerMarkupsWidgetRepresentation3D
bool AccuratePick (int x, int y, double pickPoint[3], double pickNormal[3]=nullptr)
 
void CanInteractWithLine (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.
 
bool GetNthControlPointViewVisibility (int n)
 
virtual double GetOccludedRelativeOffset ()
 
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 SetOccludedRelativeOffset (double)
 
void SetRenderer (vtkRenderer *ren) override
 
- 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 GetNthControlPointDisplayPosition (int n, double pos[2])
 
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 SetViewNode (vtkMRMLAbstractViewNode *viewNode)
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkSlicerROIRepresentation3DNew ()
 Instantiate this class.
 
static vtkSlicerROIRepresentation3DSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkSlicerMarkupsWidgetRepresentation3D
static int IsTypeOf (const char *type)
 
static vtkSlicerMarkupsWidgetRepresentation3DSafeDownCast (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)
 
 vtkSlicerROIRepresentation3D ()
 
 ~vtkSlicerROIRepresentation3D () override
 
- Protected Member Functions inherited from vtkSlicerMarkupsWidgetRepresentation3D
ControlPointsPipeline3DGetControlPointsPipeline (int controlPointType)
 
virtual void UpdateAllPointsAndLabelsFromMRML ()
 
virtual void UpdateControlPointGlyphOrientation ()
 
void UpdateControlPointSize () override
 
virtual void UpdateNthPointAndLabelFromMRML (int n)
 
virtual void UpdateRelativeCoincidentTopologyOffsets (vtkMapper *mapper)
 
void UpdateRelativeCoincidentTopologyOffsets (vtkMapper *mapper, vtkMapper *occludedMapper)
 
void UpdateViewScaleFactor () override
 
 vtkSlicerMarkupsWidgetRepresentation3D ()
 
 ~vtkSlicerMarkupsWidgetRepresentation3D () override
 
- Protected Member Functions inherited from vtkSlicerMarkupsWidgetRepresentation
void BuildLine (vtkPolyData *linePolyData, bool displayPosition)
 
bool GetAllControlPointsSelected ()
 Convenience method.
 
virtual bool GetAllControlPointsVisible ()
 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])
 
 vtkMRMLAbstractWidgetRepresentation ()
 
 ~vtkMRMLAbstractWidgetRepresentation () override
 

Protected Attributes

vtkSmartPointer< vtkActor > ROIActor
 
vtkSmartPointer< vtkPolyDataMapper > ROIMapper
 
vtkSmartPointer< vtkActor > ROIOccludedActor
 
vtkSmartPointer< vtkPolyDataMapper > ROIOccludedMapper
 
vtkSmartPointer< vtkProperty > ROIOccludedProperty
 
vtkSmartPointer< vtkActor > ROIOutlineActor
 
vtkSmartPointer< vtkOutlineFilter > ROIOutlineFilter
 
vtkSmartPointer< vtkPolyDataMapper > ROIOutlineMapper
 
vtkSmartPointer< vtkActor > ROIOutlineOccludedActor
 
vtkSmartPointer< vtkPolyDataMapper > ROIOutlineOccludedMapper
 
vtkSmartPointer< vtkProperty > ROIOutlineOccludedProperty
 
vtkSmartPointer< vtkProperty > ROIOutlineProperty
 
vtkSmartPointer< vtkTransformPolyDataFilter > ROIOutlineTransformFilter
 
vtkSmartPointer< vtkPassThrough > ROIPipelineInputFilter
 
vtkSmartPointer< vtkProperty > ROIProperty
 
vtkSmartPointer< vtkPolyDataAlgorithm > ROISource
 
vtkSmartPointer< vtkTransform > ROIToWorldTransform
 
vtkSmartPointer< vtkTransformPolyDataFilter > ROITransformFilter
 
- Protected Attributes inherited from vtkSlicerMarkupsWidgetRepresentation3D
vtkSmartPointer< vtkCellPicker > AccuratePicker
 
bool HideTextActorIfAllPointsOccluded
 
double OccludedRelativeOffset
 
vtkSmartPointer< vtkCallbackCommand > RenderCompletedCallback
 
bool TextActorOccluded
 
double TextActorPositionWorld [3]
 
- 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 vtkSlicerMarkupsWidgetRepresentation3D
static vtkFloatArray * GetCachedZBuffer (vtkRenderer *renderer)
 
static void OnRenderCompleted (vtkObject *caller, unsigned long event, void *clientData, void *callData)
 
- Static Protected Member Functions inherited from vtkSlicerMarkupsWidgetRepresentation
static int GetGlyphTypeSourceFromDisplay (int glyphTypeDisplay)
 
- Static Protected Attributes inherited from vtkSlicerMarkupsWidgetRepresentation3D
static std::map< vtkRenderer *, vtkSmartPointer< vtkFloatArray > > CachedZBuffers
 

Detailed Description

Default representation for the plane widget.

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

See also
vtkSlicerMarkupsWidgetRepresentation3D vtkMRMLAbstractWidget

Definition at line 55 of file vtkSlicerROIRepresentation3D.h.

Member Typedef Documentation

◆ Superclass

Standard methods for instances of this class.

Definition at line 62 of file vtkSlicerROIRepresentation3D.h.

Constructor & Destructor Documentation

◆ vtkSlicerROIRepresentation3D()

vtkSlicerROIRepresentation3D::vtkSlicerROIRepresentation3D ( )
protected

◆ ~vtkSlicerROIRepresentation3D()

vtkSlicerROIRepresentation3D::~vtkSlicerROIRepresentation3D ( )
overrideprotected

Member Function Documentation

◆ CanInteract()

void vtkSlicerROIRepresentation3D::CanInteract ( vtkMRMLInteractionEventData * interactionEventData,
int & foundComponentType,
int & foundComponentIndex,
double & closestDistance2 )
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 vtkSlicerMarkupsWidgetRepresentation3D.

◆ CanInteractWithROI()

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

◆ GetActors()

void vtkSlicerROIRepresentation3D::GetActors ( vtkPropCollection * )
override

Methods to make this class behave as a vtkProp.

◆ GetBounds()

double * vtkSlicerROIRepresentation3D::GetBounds ( )
override

Return the bounds of the representation.

◆ GetClassName()

virtual const char * vtkSlicerROIRepresentation3D::GetClassName ( )
virtual

◆ HasTranslucentPolygonalGeometry()

vtkTypeBool vtkSlicerROIRepresentation3D::HasTranslucentPolygonalGeometry ( )
override

◆ IsA()

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

◆ IsTypeOf()

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

◆ New()

static vtkSlicerROIRepresentation3D * vtkSlicerROIRepresentation3D::New ( )
static

Instantiate this class.

◆ PrintSelf()

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

◆ ReleaseGraphicsResources()

void vtkSlicerROIRepresentation3D::ReleaseGraphicsResources ( vtkWindow * )
override

◆ RenderOpaqueGeometry()

int vtkSlicerROIRepresentation3D::RenderOpaqueGeometry ( vtkViewport * viewport)
override

◆ RenderOverlay()

int vtkSlicerROIRepresentation3D::RenderOverlay ( vtkViewport * viewport)
override

◆ RenderTranslucentPolygonalGeometry()

int vtkSlicerROIRepresentation3D::RenderTranslucentPolygonalGeometry ( vtkViewport * viewport)
override

◆ SafeDownCast()

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

◆ SetROISource()

void vtkSlicerROIRepresentation3D::SetROISource ( vtkPolyDataAlgorithm * roiSource)
protected

◆ UpdateCubeSourceFromMRML()

virtual void vtkSlicerROIRepresentation3D::UpdateCubeSourceFromMRML ( vtkMRMLMarkupsROINode * roiNode)
virtual

Updates the dimensions of the cube source filter.

◆ UpdateFromMRMLInternal()

void vtkSlicerROIRepresentation3D::UpdateFromMRMLInternal ( vtkMRMLNode * caller,
unsigned long event,
void * callData = nullptr )
overridevirtual

Subclasses of vtkMRMLAbstractWidgetRepresentation must implement these methods. These are the methods that the widget and its representation use to communicate with each other.

Reimplemented from vtkSlicerMarkupsWidgetRepresentation3D.

Member Data Documentation

◆ ROIActor

vtkSmartPointer<vtkActor> vtkSlicerROIRepresentation3D::ROIActor
protected

Definition at line 105 of file vtkSlicerROIRepresentation3D.h.

◆ ROIMapper

vtkSmartPointer<vtkPolyDataMapper> vtkSlicerROIRepresentation3D::ROIMapper
protected

Definition at line 103 of file vtkSlicerROIRepresentation3D.h.

◆ ROIOccludedActor

vtkSmartPointer<vtkActor> vtkSlicerROIRepresentation3D::ROIOccludedActor
protected

Definition at line 109 of file vtkSlicerROIRepresentation3D.h.

◆ ROIOccludedMapper

vtkSmartPointer<vtkPolyDataMapper> vtkSlicerROIRepresentation3D::ROIOccludedMapper
protected

Definition at line 107 of file vtkSlicerROIRepresentation3D.h.

◆ ROIOccludedProperty

vtkSmartPointer<vtkProperty> vtkSlicerROIRepresentation3D::ROIOccludedProperty
protected

Definition at line 108 of file vtkSlicerROIRepresentation3D.h.

◆ ROIOutlineActor

vtkSmartPointer<vtkActor> vtkSlicerROIRepresentation3D::ROIOutlineActor
protected

Definition at line 117 of file vtkSlicerROIRepresentation3D.h.

◆ ROIOutlineFilter

vtkSmartPointer<vtkOutlineFilter> vtkSlicerROIRepresentation3D::ROIOutlineFilter
protected

Definition at line 111 of file vtkSlicerROIRepresentation3D.h.

◆ ROIOutlineMapper

vtkSmartPointer<vtkPolyDataMapper> vtkSlicerROIRepresentation3D::ROIOutlineMapper
protected

Definition at line 115 of file vtkSlicerROIRepresentation3D.h.

◆ ROIOutlineOccludedActor

vtkSmartPointer<vtkActor> vtkSlicerROIRepresentation3D::ROIOutlineOccludedActor
protected

Definition at line 121 of file vtkSlicerROIRepresentation3D.h.

◆ ROIOutlineOccludedMapper

vtkSmartPointer<vtkPolyDataMapper> vtkSlicerROIRepresentation3D::ROIOutlineOccludedMapper
protected

Definition at line 119 of file vtkSlicerROIRepresentation3D.h.

◆ ROIOutlineOccludedProperty

vtkSmartPointer<vtkProperty> vtkSlicerROIRepresentation3D::ROIOutlineOccludedProperty
protected

Definition at line 120 of file vtkSlicerROIRepresentation3D.h.

◆ ROIOutlineProperty

vtkSmartPointer<vtkProperty> vtkSlicerROIRepresentation3D::ROIOutlineProperty
protected

Definition at line 116 of file vtkSlicerROIRepresentation3D.h.

◆ ROIOutlineTransformFilter

vtkSmartPointer<vtkTransformPolyDataFilter> vtkSlicerROIRepresentation3D::ROIOutlineTransformFilter
protected

Definition at line 113 of file vtkSlicerROIRepresentation3D.h.

◆ ROIPipelineInputFilter

vtkSmartPointer<vtkPassThrough> vtkSlicerROIRepresentation3D::ROIPipelineInputFilter
protected

Definition at line 98 of file vtkSlicerROIRepresentation3D.h.

◆ ROIProperty

vtkSmartPointer<vtkProperty> vtkSlicerROIRepresentation3D::ROIProperty
protected

Definition at line 104 of file vtkSlicerROIRepresentation3D.h.

◆ ROISource

vtkSmartPointer<vtkPolyDataAlgorithm> vtkSlicerROIRepresentation3D::ROISource
protected

Definition at line 96 of file vtkSlicerROIRepresentation3D.h.

◆ ROIToWorldTransform

vtkSmartPointer<vtkTransform> vtkSlicerROIRepresentation3D::ROIToWorldTransform
protected

Definition at line 101 of file vtkSlicerROIRepresentation3D.h.

◆ ROITransformFilter

vtkSmartPointer<vtkTransformPolyDataFilter> vtkSlicerROIRepresentation3D::ROITransformFilter
protected

Definition at line 100 of file vtkSlicerROIRepresentation3D.h.


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