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
qMRMLMarkupsCurveSettingsWidget.h
Go to the documentation of this file.
1/*==============================================================================
2
3 Copyright (c) The Intervention Centre
4 Oslo University Hospital, Oslo, Norway. All Rights Reserved.
5
6 See COPYRIGHT.txt
7 or http://www.slicer.org/copyright/copyright.txt for details.
8
9 Unless required by applicable law or agreed to in writing, software
10 distributed under the License is distributed on an "AS IS" BASIS,
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 See the License for the specific language governing permissions and
13 limitations under the License.
14
15 This file was originally developed by Rafael Palomar (The Intervention Centre,
16 Oslo University Hospital) and was supported by The Research Council of Norway
17 through the ALive project (grant nr. 311393).
18
19==============================================================================*/
20
21#ifndef qMRMLMarkupsCurveSettingsWidget_h
22#define qMRMLMarkupsCurveSettingsWidget_h
23
24// Markups widgets includes
26#include "qSlicerMarkupsModuleWidgetsExport.h"
27
28// ------------------------------------------------------------------------------
29class qMRMLMarkupsCurveSettingsWidgetPrivate;
31
32// ------------------------------------------------------------------------------
33class Q_SLICER_MODULE_MARKUPS_WIDGETS_EXPORT qMRMLMarkupsCurveSettingsWidget
35{
36 Q_OBJECT
37
38public:
40 qMRMLMarkupsCurveSettingsWidget(QWidget* parent=nullptr);
42
44 const QString className() const override {return "qMRMLMarkupsCurveSettingsWidget";}
45
47 bool canManageMRMLMarkupsNode(vtkMRMLMarkupsNode *markupsNode) const override;
48
50 void updateWidgetFromMRML() override;
51
54
58
59public slots:
63 void setMRMLScene(vtkMRMLScene* scene) override;
64
65protected:
66 qMRMLMarkupsCurveSettingsWidget(QWidget* parent, qMRMLMarkupsCurveSettingsWidgetPrivate &d);
67
68protected:
69 void setup();
70
71protected:
72 QScopedPointer<qMRMLMarkupsCurveSettingsWidgetPrivate> d_ptr;
73
74private:
75 Q_DECLARE_PRIVATE(qMRMLMarkupsCurveSettingsWidget);
76 Q_DISABLE_COPY(qMRMLMarkupsCurveSettingsWidget);
77};
78
79#endif
qMRMLMarkupsAbstractOptionsWidget(QWidget *parent=nullptr)
qMRMLMarkupsCurveSettingsWidget(QWidget *parent=nullptr)
void updateWidgetFromMRML() override
Updates the widget on MRML changes.
bool canManageMRMLMarkupsNode(vtkMRMLMarkupsNode *markupsNode) const override
Checks whether a given node can be handled by the widget.
qMRMLMarkupsAbstractOptionsWidget Superclass
const QString className() const override
Gets the name of the additional options widget type.
qMRMLMarkupsCurveSettingsWidget(QWidget *parent, qMRMLMarkupsCurveSettingsWidgetPrivate &d)
void setMRMLMarkupsNode(vtkMRMLMarkupsNode *node) override
Set the MRML node of interest.
void setMRMLScene(vtkMRMLScene *scene) override
QScopedPointer< qMRMLMarkupsCurveSettingsWidgetPrivate > d_ptr
qMRMLMarkupsAbstractOptionsWidget * createInstance() const override
Returns an instance of the widget.
A set of MRML Nodes that supports serialization and undo/redo.