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
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// MarkupsWidgets includes
29#include "qSlicerMarkupsModuleWidgetsExport.h"
30
31// CTK includes
32#include <ctkPimpl.h>
33#include <ctkVTKObject.h>
34
35#include <qMRMLWidget.h>
36
37class vtkMRMLNode;
39class qMRMLMarkupsInteractionHandleWidgetPrivate;
40
41class Q_SLICER_MODULE_MARKUPS_WIDGETS_EXPORT qMRMLMarkupsInteractionHandleWidget : public qMRMLWidget
42{
43 Q_OBJECT
44 QVTK_OBJECT
45
46public:
48 explicit qMRMLMarkupsInteractionHandleWidget(QWidget* parent = nullptr);
50
53
54public slots:
57
58protected slots:
61
64
65protected:
66 QScopedPointer<qMRMLMarkupsInteractionHandleWidgetPrivate> d_ptr;
67
68private:
69 Q_DECLARE_PRIVATE(qMRMLMarkupsInteractionHandleWidget);
71};
72
73#endif
void updateMRMLFromWidget()
Internal function to update the node based on the widget.
qMRMLMarkupsInteractionHandleWidget(QWidget *parent=nullptr)
Constructors.
QScopedPointer< qMRMLMarkupsInteractionHandleWidgetPrivate > d_ptr
void updateWidgetFromMRML()
Internal function to update the widgets based on the node/display node.
void setMRMLDisplayNode(vtkMRMLMarkupsDisplayNode *node)
Set the MRML display node.
vtkMRMLMarkupsDisplayNode * mrmlDisplayNode() const
Returns the current MRML display node.
qMRMLWidget(QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
Abstract Superclass for all specific types of MRML nodes.