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.h
Go to the documentation of this file.
1/*=auto=========================================================================
2
3 Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH)
4 All Rights Reserved.
5
6 See COPYRIGHT.txt
7 or http://www.slicer.org/copyright/copyright.txt for details.
8
9 Program: 3D Slicer
10
11=========================================================================auto=*/
12
13#ifndef __qMRMLSegmentationShow3DButton_h
14#define __qMRMLSegmentationShow3DButton_h
15
16// CTK includes
17#include <ctkMenuButton.h>
18#include <ctkPimpl.h>
19#include <ctkVTKObject.h>
20
21// Segmentations includes
22#include "qSlicerSegmentationsModuleWidgetsExport.h"
23
24class qMRMLSegmentationShow3DButtonPrivate;
26
32class Q_SLICER_MODULE_SEGMENTATIONS_WIDGETS_EXPORT qMRMLSegmentationShow3DButton : public ctkMenuButton
33{
34 Q_OBJECT
35 QVTK_OBJECT
36
39 Q_PROPERTY(bool locked READ locked WRITE setLocked)
40
41public:
42 explicit qMRMLSegmentationShow3DButton(QWidget* parent = nullptr);
44
47
48 bool locked() const;
49
50public slots:
53
54 void setLocked(bool);
55
56protected slots:
57 void onToggled(bool toggled = true);
58 void onEnableSurfaceSmoothingToggled(bool smoothingEnabled);
59 void onEnableSurfaceNetsToggled(bool surfaceNetsEnabled);
60 void onEnableSurfaceNetsSmoothingToggled(bool surfaceNetsSmoothingEnabled);
61 void onSurfaceSmoothingFactorChanged(double newSmoothingFactor);
62 void onRepresentationActionTriggered(QAction* action);
64
65protected:
66 QScopedPointer<qMRMLSegmentationShow3DButtonPrivate> d_ptr;
67
68private:
69 Q_DECLARE_PRIVATE(qMRMLSegmentationShow3DButton);
70 Q_DISABLE_COPY(qMRMLSegmentationShow3DButton);
71};
72
73#endif
~qMRMLSegmentationShow3DButton() override
void onToggled(bool toggled=true)
Q_INVOKABLE vtkMRMLSegmentationNode * segmentationNode() const
Get current segmentation node.
void onRepresentationActionTriggered(QAction *action)
void onSurfaceSmoothingFactorChanged(double newSmoothingFactor)
Q_INVOKABLE void setSegmentationNode(vtkMRMLSegmentationNode *node)
Set current segmentation node.
void onEnableSurfaceNetsSmoothingToggled(bool surfaceNetsSmoothingEnabled)
void onEnableSurfaceSmoothingToggled(bool smoothingEnabled)
QScopedPointer< qMRMLSegmentationShow3DButtonPrivate > d_ptr
qMRMLSegmentationShow3DButton(QWidget *parent=nullptr)
void onEnableSurfaceNetsToggled(bool surfaceNetsEnabled)
MRML node containing segmentations.