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

Button that shows/hide segmentation in 3D It creates or removes closed surface representation. More...

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

Inheritance diagram for qMRMLSegmentationShow3DButton:
Inheritance graph
Collaboration diagram for qMRMLSegmentationShow3DButton:
Collaboration graph


bool locked

Public Slots

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

Public Member Functions

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

Protected Slots

void onEnableSurfaceSmoothingToggled (bool smoothingEnabled)
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 closed surface representation.

Definition at line 29 of file qMRMLSegmentationShow3DButton.h.

Property Documentation

◆ locked

bool qMRMLSegmentationShow3DButton::locked

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

Definition at line 36 of file qMRMLSegmentationShow3DButton.h.

Constructor & Destructor Documentation

◆ qMRMLSegmentationShow3DButton()

qMRMLSegmentationShow3DButton::qMRMLSegmentationShow3DButton ( QWidget *  parent = nullptr)

◆ ~qMRMLSegmentationShow3DButton()

qMRMLSegmentationShow3DButton::~qMRMLSegmentationShow3DButton ( )

Member Function Documentation

◆ locked()

bool qMRMLSegmentationShow3DButton::locked ( ) const

◆ onEnableSurfaceSmoothingToggled

void qMRMLSegmentationShow3DButton::onEnableSurfaceSmoothingToggled ( bool  smoothingEnabled)

◆ onSurfaceSmoothingFactorChanged

void qMRMLSegmentationShow3DButton::onSurfaceSmoothingFactorChanged ( double  newSmoothingFactor)

◆ onToggled

void qMRMLSegmentationShow3DButton::onToggled ( bool  toggled = true)

◆ segmentationNode()

Q_INVOKABLE vtkMRMLSegmentationNode* qMRMLSegmentationShow3DButton::segmentationNode ( ) const

Get current segmentation node.

◆ setLocked

void qMRMLSegmentationShow3DButton::setLocked ( bool  )

◆ setSegmentationNode

Q_INVOKABLE void qMRMLSegmentationShow3DButton::setSegmentationNode ( vtkMRMLSegmentationNode node)

Set current segmentation node.

◆ updateWidgetFromMRML

void qMRMLSegmentationShow3DButton::updateWidgetFromMRML ( )

Member Data Documentation

◆ d_ptr

QScopedPointer<qMRMLSegmentationShow3DButtonPrivate> qMRMLSegmentationShow3DButton::d_ptr

Definition at line 60 of file qMRMLSegmentationShow3DButton.h.

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