Slicer 5.9
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 closed surface representation. 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 vtkMRMLSegmentationNodesegmentationNode () const
 Get current segmentation node.
 
 ~qMRMLSegmentationShow3DButton () override
 

Protected Slots

void onEnableSurfaceNetsSmoothingToggled (bool surfaceNetsSmoothingEnabled)
 
void onEnableSurfaceNetsToggled (bool surfaceNetsEnabled)
 
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

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 36 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

◆ 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 62 of file qMRMLSegmentationShow3DButton.h.


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