Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
qSlicerModelsModuleWidget.h
Go to the documentation of this file.
1/*==============================================================================
2
3 Program: 3D Slicer
4
5 Copyright (c) Kitware Inc.
6
7 See COPYRIGHT.txt
8 or http://www.slicer.org/copyright/copyright.txt for details.
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 This file was originally developed by Julien Finet, Kitware Inc.
17 and was partially funded by NIH grant 3P41RR013218-12S1
18
19==============================================================================*/
20
21#ifndef __qSlicerModelsModuleWidget_h
22#define __qSlicerModelsModuleWidget_h
23
24// CTK includes
25#include "ctkVTKObject.h"
26
27// Slicer includes
29
30#include "qSlicerModelsModuleExport.h"
31
32class qSlicerModelsModuleWidgetPrivate;
33class vtkMRMLNode;
35
36class Q_SLICER_QTMODULES_MODELS_EXPORT qSlicerModelsModuleWidget : public qSlicerAbstractModuleWidget
37{
38 Q_OBJECT
39 QVTK_OBJECT
40
41public:
43 qSlicerModelsModuleWidget(QWidget *parent=nullptr);
45
46 void enter() override;
47 void exit() override;
48 bool setEditedNode(vtkMRMLNode* node, QString role = QString(), QString context = QString()) override;
49
50public slots:
51 void setMRMLScene(vtkMRMLScene* scene) override;
52
58
66
69
70 static void onMRMLSceneEvent(vtkObject* vtk_obj, unsigned long event,
71 void* client_data, void* call_data);
72
76
77protected slots:
80 void onSubjectHierarchyItemModified(vtkObject* caller, void* callData);
81
84
85protected:
86 void setup() override;
87
88protected:
89 QScopedPointer<qSlicerModelsModuleWidgetPrivate> d_ptr;
90
91private:
92 Q_DECLARE_PRIVATE(qSlicerModelsModuleWidget);
93 Q_DISABLE_COPY(qSlicerModelsModuleWidget);
94};
95
96#endif
qSlicerAbstractModuleWidget(QWidget *parent=nullptr)
static void onMRMLSceneEvent(vtkObject *vtk_obj, unsigned long event, void *client_data, void *call_data)
void onClippingCapOpacityChanged(double)
void onClippingConfigurationButtonClicked()
void onClipSelectedModelToggled(bool)
void onInformationSectionCollapsed(bool)
Called when the information collapsible button collapsed state is changed.
void hideAllModels()
hide/show all the models in the scene
qSlicerAbstractModuleWidget Superclass
void setDisplaySelectionFromSubjectHierarchyItems(QList< vtkIdType > itemIDs)
void onClipModelsNodeChanged(vtkMRMLNode *)
void onSubjectHierarchyItemModified(vtkObject *caller, void *callData)
qSlicerModelsModuleWidget(QWidget *parent=nullptr)
~qSlicerModelsModuleWidget() override
QScopedPointer< qSlicerModelsModuleWidgetPrivate > d_ptr
void onClippingOutlineVisibilityToggled(bool)
bool setEditedNode(vtkMRMLNode *node, QString role=QString(), QString context=QString()) override
Node editing.
void setMRMLScene(vtkMRMLScene *scene) override
void onColorLegendCollapsibleGroupBoxToggled(bool)
Create or get first color legend if group box is expanded.
void onClippingCapVisibilityToggled(bool)
Abstract Superclass for all specific types of MRML nodes.
A set of MRML Nodes that supports serialization and undo/redo.
MRML node for storing information about the active nodes in the scene.