Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes
qMRMLSegmentationDisplayNodeWidget Class Reference

Qt widget for selecting a single segment from a segmentation. If multiple segments are needed, then use. More...

#include <Modules/Loadable/Segmentations/Widgets/qMRMLSegmentationDisplayNodeWidget.h>

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

Public Slots

void onOpacity3DChanged (double)
 
void onOpacityChanged (double)
 
void onOpacitySliceFillChanged (double)
 
void onOpacitySliceOutlineChanged (double)
 
void onRepresentation2DChanged (int)
 
void onRepresentation3DChanged (int)
 
void onSegmentOpacity3DChanged (double)
 
void onSegmentOpacitySliceFillChanged (double)
 
void onSegmentOpacitySliceOutlineChanged (double)
 
void onSegmentSelectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
 Handles segment selection changes when connecting directly to a. More...
 
void onSegmentVisibility3DChanged (int)
 
void onSegmentVisibilitySliceFillChanged (int)
 
void onSegmentVisibilitySliceOutlineChanged (int)
 
void onSliceIntersectionThicknessChanged (int)
 
void onVisibility3DChanged (int)
 
void onVisibilityChanged (int)
 
void onVisibilitySliceFillChanged (int)
 
void onVisibilitySliceOutlineChanged (int)
 
void populate2DRepresentationsCombobox ()
 Populate combobox that contain possible 2D representation names. More...
 
void populate3DRepresentationsCombobox ()
 Populate combobox that contain possible 3D representation names. More...
 
Q_INVOKABLE void setCurrentSegmentID (QString segmentID)
 Get segment ID of selected segment. More...
 
Q_INVOKABLE void setSegmentationDisplayNode (vtkMRMLSegmentationDisplayNode *node)
 Set segmentation display MRML node. More...
 
Q_INVOKABLE void setSegmentationNode (vtkMRMLSegmentationNode *node)
 Utility function to set segmentation display node by segmentation node. More...
 
void updateWidgetFromMRML ()
 Update widget from MRML. More...
 
- Public Slots inherited from qMRMLWidget
virtual void setMRMLScene (vtkMRMLScene *newScene)
 Set the MRML scene associated with the widget. More...
 

Public Member Functions

Q_INVOKABLE QString currentSegmentID ()
 Get segment ID of selected segment. More...
 
 qMRMLSegmentationDisplayNodeWidget (QWidget *parent=nullptr)
 Constructor. More...
 
Q_INVOKABLE vtkMRMLSegmentationDisplayNodesegmentationDisplayNode () const
 Get current segmentation display node. More...
 
Q_INVOKABLE QString segmentationDisplayNodeID ()
 Get current segmentation display node's ID. More...
 
 ~qMRMLSegmentationDisplayNodeWidget () override
 Destructor. More...
 
- Public Member Functions inherited from qMRMLWidget
Q_INVOKABLE vtkMRMLScenemrmlScene () const
 Return a pointer on the current MRML scene. More...
 
 qMRMLWidget (QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
 
 ~qMRMLWidget () override
 

Protected Member Functions

void updateSelectedSegmentSection ()
 Update visibility and opacity section for selected segment. More...
 

Protected Attributes

QScopedPointer< qMRMLSegmentationDisplayNodeWidgetPrivate > d_ptr
 
- Protected Attributes inherited from qMRMLWidget
QScopedPointer< qMRMLWidgetPrivate > d_ptr
 

Additional Inherited Members

- Public Types inherited from qMRMLWidget
typedef QWidget Superclass
 
- Signals inherited from qMRMLWidget
void mrmlSceneChanged (vtkMRMLScene *)
 
- Static Public Member Functions inherited from qMRMLWidget
static Q_INVOKABLE QPixmap pixmapFromIcon (const QIcon &icon)
 
static Q_INVOKABLE void postInitializeApplication ()
 Initialization that needs to be performed after application object is created. More...
 
static Q_INVOKABLE void preInitializeApplication ()
 

Detailed Description

Qt widget for selecting a single segment from a segmentation. If multiple segments are needed, then use.

See also
qMRMLSegmentsTableView instead in SimpleListMode

Definition at line 44 of file qMRMLSegmentationDisplayNodeWidget.h.

Constructor & Destructor Documentation

◆ qMRMLSegmentationDisplayNodeWidget()

qMRMLSegmentationDisplayNodeWidget::qMRMLSegmentationDisplayNodeWidget ( QWidget *  parent = nullptr)
explicit

Constructor.

◆ ~qMRMLSegmentationDisplayNodeWidget()

qMRMLSegmentationDisplayNodeWidget::~qMRMLSegmentationDisplayNodeWidget ( )
override

Destructor.

Member Function Documentation

◆ currentSegmentID()

Q_INVOKABLE QString qMRMLSegmentationDisplayNodeWidget::currentSegmentID ( )

Get segment ID of selected segment.

◆ onOpacity3DChanged

void qMRMLSegmentationDisplayNodeWidget::onOpacity3DChanged ( double  )
slot

◆ onOpacityChanged

void qMRMLSegmentationDisplayNodeWidget::onOpacityChanged ( double  )
slot

◆ onOpacitySliceFillChanged

void qMRMLSegmentationDisplayNodeWidget::onOpacitySliceFillChanged ( double  )
slot

◆ onOpacitySliceOutlineChanged

void qMRMLSegmentationDisplayNodeWidget::onOpacitySliceOutlineChanged ( double  )
slot

◆ onRepresentation2DChanged

void qMRMLSegmentationDisplayNodeWidget::onRepresentation2DChanged ( int  )
slot

◆ onRepresentation3DChanged

void qMRMLSegmentationDisplayNodeWidget::onRepresentation3DChanged ( int  )
slot

◆ onSegmentOpacity3DChanged

void qMRMLSegmentationDisplayNodeWidget::onSegmentOpacity3DChanged ( double  )
slot

◆ onSegmentOpacitySliceFillChanged

void qMRMLSegmentationDisplayNodeWidget::onSegmentOpacitySliceFillChanged ( double  )
slot

◆ onSegmentOpacitySliceOutlineChanged

void qMRMLSegmentationDisplayNodeWidget::onSegmentOpacitySliceOutlineChanged ( double  )
slot

◆ onSegmentSelectionChanged

void qMRMLSegmentationDisplayNodeWidget::onSegmentSelectionChanged ( const QItemSelection &  selected,
const QItemSelection &  deselected 
)
slot

Handles segment selection changes when connecting directly to a.

See also
qMRMLSegmentsTableView

◆ onSegmentVisibility3DChanged

void qMRMLSegmentationDisplayNodeWidget::onSegmentVisibility3DChanged ( int  )
slot

◆ onSegmentVisibilitySliceFillChanged

void qMRMLSegmentationDisplayNodeWidget::onSegmentVisibilitySliceFillChanged ( int  )
slot

◆ onSegmentVisibilitySliceOutlineChanged

void qMRMLSegmentationDisplayNodeWidget::onSegmentVisibilitySliceOutlineChanged ( int  )
slot

◆ onSliceIntersectionThicknessChanged

void qMRMLSegmentationDisplayNodeWidget::onSliceIntersectionThicknessChanged ( int  )
slot

◆ onVisibility3DChanged

void qMRMLSegmentationDisplayNodeWidget::onVisibility3DChanged ( int  )
slot

◆ onVisibilityChanged

void qMRMLSegmentationDisplayNodeWidget::onVisibilityChanged ( int  )
slot

◆ onVisibilitySliceFillChanged

void qMRMLSegmentationDisplayNodeWidget::onVisibilitySliceFillChanged ( int  )
slot

◆ onVisibilitySliceOutlineChanged

void qMRMLSegmentationDisplayNodeWidget::onVisibilitySliceOutlineChanged ( int  )
slot

◆ populate2DRepresentationsCombobox

void qMRMLSegmentationDisplayNodeWidget::populate2DRepresentationsCombobox ( )
slot

Populate combobox that contain possible 2D representation names.

◆ populate3DRepresentationsCombobox

void qMRMLSegmentationDisplayNodeWidget::populate3DRepresentationsCombobox ( )
slot

Populate combobox that contain possible 3D representation names.

◆ segmentationDisplayNode()

Q_INVOKABLE vtkMRMLSegmentationDisplayNode* qMRMLSegmentationDisplayNodeWidget::segmentationDisplayNode ( ) const

Get current segmentation display node.

◆ segmentationDisplayNodeID()

Q_INVOKABLE QString qMRMLSegmentationDisplayNodeWidget::segmentationDisplayNodeID ( )

Get current segmentation display node's ID.

◆ setCurrentSegmentID

Q_INVOKABLE void qMRMLSegmentationDisplayNodeWidget::setCurrentSegmentID ( QString  segmentID)
slot

Get segment ID of selected segment.

◆ setSegmentationDisplayNode

Q_INVOKABLE void qMRMLSegmentationDisplayNodeWidget::setSegmentationDisplayNode ( vtkMRMLSegmentationDisplayNode node)
slot

Set segmentation display MRML node.

◆ setSegmentationNode

Q_INVOKABLE void qMRMLSegmentationDisplayNodeWidget::setSegmentationNode ( vtkMRMLSegmentationNode node)
slot

Utility function to set segmentation display node by segmentation node.

◆ updateSelectedSegmentSection()

void qMRMLSegmentationDisplayNodeWidget::updateSelectedSegmentSection ( )
protected

Update visibility and opacity section for selected segment.

◆ updateWidgetFromMRML

void qMRMLSegmentationDisplayNodeWidget::updateWidgetFromMRML ( )
slot

Update widget from MRML.

Member Data Documentation

◆ d_ptr

QScopedPointer<qMRMLSegmentationDisplayNodeWidgetPrivate> qMRMLSegmentationDisplayNodeWidget::d_ptr
protected

Definition at line 106 of file qMRMLSegmentationDisplayNodeWidget.h.


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