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.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
29class Q_SLICER_MODULE_SEGMENTATIONS_WIDGETS_EXPORT qMRMLSegmentationShow3DButton : public ctkMenuButton
30{
31 Q_OBJECT
32 QVTK_OBJECT
33
36 Q_PROPERTY(bool locked READ locked WRITE setLocked)
37
38public:
39 explicit qMRMLSegmentationShow3DButton(QWidget* parent = nullptr);
41
44
45 bool locked() const;
46
47public slots:
50
51 void setLocked(bool);
52
53protected slots:
54 void onToggled(bool toggled = true);
55 void onEnableSurfaceSmoothingToggled(bool smoothingEnabled);
56 void onEnableSurfaceNetsToggled(bool surfaceNetsEnabled);
57 void onEnableSurfaceNetsSmoothingToggled(bool surfaceNetsSmoothingEnabled);
58 void onSurfaceSmoothingFactorChanged(double newSmoothingFactor);
60
61protected:
62 QScopedPointer<qMRMLSegmentationShow3DButtonPrivate> d_ptr;
63
64private:
65 Q_DECLARE_PRIVATE(qMRMLSegmentationShow3DButton);
66 Q_DISABLE_COPY(qMRMLSegmentationShow3DButton);
67};
68
69#endif
~qMRMLSegmentationShow3DButton() override
void onToggled(bool toggled=true)
Q_INVOKABLE vtkMRMLSegmentationNode * segmentationNode() const
Get current segmentation node.
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.