Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qSlicerSegmentationsSettingsPanel.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Program: 3D Slicer
4 
5  Copyright (c) Laboratory for Percutaneous Surgery (PerkLab)
6  Queen's University, Kingston, ON, Canada. All Rights Reserved.
7 
8  See COPYRIGHT.txt
9  or http://www.slicer.org/copyright/copyright.txt for details.
10 
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  See the License for the specific language governing permissions and
15  limitations under the License.
16 
17  This file was originally developed by Csaba Pinter, PerkLab, Queen's University
18  and was supported through the Applied Cancer Research Unit program of Cancer Care
19  Ontario with funds provided by the Ontario Ministry of Health and Long-Term Care
20 
21 ==============================================================================*/
22 
23 #ifndef __qSlicerSegmentationsSettingsPanel_h
24 #define __qSlicerSegmentationsSettingsPanel_h
25 
26 // Qt includes
27 #include <QWidget>
28 
29 // CTK includes
30 #include <ctkSettingsPanel.h>
31 
32 #include "qSlicerSegmentationsModuleExport.h"
33 
34 class QSettings;
35 class qSlicerSegmentationsSettingsPanelPrivate;
37 
38 class Q_SLICER_QTMODULES_SEGMENTATIONS_EXPORT qSlicerSegmentationsSettingsPanel
39  : public ctkSettingsPanel
40 {
41  Q_OBJECT
42 
43  Q_PROPERTY(QString defaultTerminologyEntry READ defaultTerminologyEntry WRITE setDefaultTerminologyEntry)
44 public:
45  typedef ctkSettingsPanel Superclass;
46 
47  explicit qSlicerSegmentationsSettingsPanel(QWidget* parent = nullptr);
49 
51  void setSegmentationsLogic(vtkSlicerSegmentationsModuleLogic* logic);
52  vtkSlicerSegmentationsModuleLogic* segmentationsLogic()const;
53 
54  QString defaultTerminologyEntry();
55 
56 public slots:
57 
58 protected slots:
59  void setAutoOpacities(bool on);
60  void setDefaultSurfaceSmoothing(bool on);
61  void onEditDefaultTerminologyEntry();
62  void setDefaultTerminologyEntry(QString);
63  void updateDefaultSegmentationNodeFromWidget();
64 
65 signals:
66  void defaultTerminologyEntryChanged(QString terminologyStr);
67 
68 protected:
69  QScopedPointer<qSlicerSegmentationsSettingsPanelPrivate> d_ptr;
70 
71 private:
72  Q_DECLARE_PRIVATE(qSlicerSegmentationsSettingsPanel);
73  Q_DISABLE_COPY(qSlicerSegmentationsSettingsPanel);
74 };
75 
76 #endif
QScopedPointer< qSlicerSegmentationsSettingsPanelPrivate > d_ptr