Slicer 5.13
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
qMRMLSegmentationShow3DButton Class Reference

Button that shows/hide segmentation in 3D It creates or removes the representation that is shown in 3D views (closed surface or binary labelmap, chosen in the Representation submenu,. More...

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

Inheritance diagram for qMRMLSegmentationShow3DButton:
Collaboration diagram for qMRMLSegmentationShow3DButton:

Properties

QVTK_OBJECTbool locked
 

Public Slots

void setLocked (bool)
 
Q_INVOKABLE void setSegmentationNode (vtkMRMLSegmentationNode *node)
 Set current segmentation node.
 

Public Member Functions

bool locked () const
 
 qMRMLSegmentationShow3DButton (QWidget *parent=nullptr)
 
Q_INVOKABLE vtkMRMLSegmentationNode * segmentationNode () const
 Get current segmentation node.
 
 ~qMRMLSegmentationShow3DButton () override
 

Protected Slots

void onEnableSurfaceNetsSmoothingToggled (bool surfaceNetsSmoothingEnabled)
 
void onEnableSurfaceNetsToggled (bool surfaceNetsEnabled)
 
void onEnableSurfaceSmoothingToggled (bool smoothingEnabled)
 
void onRepresentationActionTriggered (QAction *action)
 
void onSurfaceSmoothingFactorChanged (double newSmoothingFactor)
 
void onToggled (bool toggled=true)
 
void updateWidgetFromMRML ()
 

Protected Attributes

QScopedPointer< qMRMLSegmentationShow3DButtonPrivate > d_ptr
 

Detailed Description

Button that shows/hide segmentation in 3D It creates or removes the representation that is shown in 3D views (closed surface or binary labelmap, chosen in the Representation submenu,.

See also
vtkMRMLSegmentationDisplayNode::SetPreferredDisplayRepresentationName3D). When the representation is switched, the other one is removed (unless it is the source representation), so that it is not kept up to date for nothing.

Definition at line 32 of file qMRMLSegmentationShow3DButton.h.

Property Documentation

◆ locked

QVTK_OBJECTbool qMRMLSegmentationShow3DButton::locked
readwrite

Disables the button. It is useful for preventing segmentation from editing. Using QWidget::setEnabled would only temporarily disable the button.

Definition at line 39 of file qMRMLSegmentationShow3DButton.h.

Constructor & Destructor Documentation

◆ qMRMLSegmentationShow3DButton()

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

◆ ~qMRMLSegmentationShow3DButton()

qMRMLSegmentationShow3DButton::~qMRMLSegmentationShow3DButton ( )
override

Member Function Documentation

◆ locked()

bool qMRMLSegmentationShow3DButton::locked ( ) const

◆ onEnableSurfaceNetsSmoothingToggled

void qMRMLSegmentationShow3DButton::onEnableSurfaceNetsSmoothingToggled ( bool surfaceNetsSmoothingEnabled)
protectedslot

◆ onEnableSurfaceNetsToggled

void qMRMLSegmentationShow3DButton::onEnableSurfaceNetsToggled ( bool surfaceNetsEnabled)
protectedslot

◆ onEnableSurfaceSmoothingToggled

void qMRMLSegmentationShow3DButton::onEnableSurfaceSmoothingToggled ( bool smoothingEnabled)
protectedslot

◆ onRepresentationActionTriggered

void qMRMLSegmentationShow3DButton::onRepresentationActionTriggered ( QAction * action)
protectedslot

◆ onSurfaceSmoothingFactorChanged

void qMRMLSegmentationShow3DButton::onSurfaceSmoothingFactorChanged ( double newSmoothingFactor)
protectedslot

◆ onToggled

void qMRMLSegmentationShow3DButton::onToggled ( bool toggled = true)
protectedslot

◆ segmentationNode()

Q_INVOKABLE vtkMRMLSegmentationNode * qMRMLSegmentationShow3DButton::segmentationNode ( ) const

Get current segmentation node.

◆ setLocked

void qMRMLSegmentationShow3DButton::setLocked ( bool )
slot

◆ setSegmentationNode

Q_INVOKABLE void qMRMLSegmentationShow3DButton::setSegmentationNode ( vtkMRMLSegmentationNode * node)
slot

Set current segmentation node.

◆ updateWidgetFromMRML

void qMRMLSegmentationShow3DButton::updateWidgetFromMRML ( )
protectedslot

Member Data Documentation

◆ d_ptr

QScopedPointer<qMRMLSegmentationShow3DButtonPrivate> qMRMLSegmentationShow3DButton::d_ptr
protected

Definition at line 66 of file qMRMLSegmentationShow3DButton.h.


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