Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qMRMLMarkupsInteractionHandleWidget.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 Kyle Sunderland, PerkLab, Queen's University
17  and was supported through CANARIE's Research Software Program, Cancer
18  Care Ontario, OpenAnatomy, and Brigham and Women's Hospital through NIH grant R01MH112748.
19 
20 ==============================================================================*/
21 
22 #ifndef __qMRMLMarkupsInteractionHandleWidget_h
23 #define __qMRMLMarkupsInteractionHandleWidget_h
24 
25 // Qt includes
26 #include <QWidget>
27 
28 // AnnotationWidgets includes
29 #include "qSlicerMarkupsModuleWidgetsExport.h"
30 
31 // CTK includes
32 #include <ctkPimpl.h>
33 #include <ctkVTKObject.h>
34 
35 #include <qMRMLWidget.h>
36 
37 class vtkMRMLNode;
39 class qMRMLMarkupsInteractionHandleWidgetPrivate;
40 
41 class Q_SLICER_MODULE_MARKUPS_WIDGETS_EXPORT qMRMLMarkupsInteractionHandleWidget : public qMRMLWidget
42 {
43  Q_OBJECT
44  QVTK_OBJECT
45 
46 public:
48  explicit qMRMLMarkupsInteractionHandleWidget(QWidget* parent = nullptr);
50 
52  vtkMRMLMarkupsDisplayNode* mrmlDisplayNode() const;
53 
54 public slots:
56  void setMRMLDisplayNode(vtkMRMLNode* node);
57  void setMRMLDisplayNode(vtkMRMLMarkupsDisplayNode* node);
58 
59 protected slots:
61  void updateWidgetFromMRML();
62 
64  void updateMRMLFromWidget();
65 
66 protected:
67  QScopedPointer<qMRMLMarkupsInteractionHandleWidgetPrivate> d_ptr;
68 
69 private:
70  Q_DECLARE_PRIVATE(qMRMLMarkupsInteractionHandleWidget);
72 };
73 
74 #endif
QScopedPointer< qMRMLMarkupsInteractionHandleWidgetPrivate > d_ptr
Base class for any widget that requires a MRML Scene.
Definition: qMRMLWidget.h:35
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167