Slicer  5.2
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
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 __qSlicerCurveSettingsWidget_h_
22 #define __qSlicerCurveSettingsWidget_h_
23 
24 // Markups widgets includes
26 #include "qSlicerMarkupsModuleWidgetsExport.h"
27 
28 // ------------------------------------------------------------------------------
29 class qMRMLMarkupsCurveSettingsWidgetPrivate;
30 class vtkMRMLMarkupsNode;
31 
32 // ------------------------------------------------------------------------------
33 class Q_SLICER_MODULE_MARKUPS_WIDGETS_EXPORT qMRMLMarkupsCurveSettingsWidget
35 {
36  Q_OBJECT
37 
38 public:
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 
53  void setMRMLMarkupsNode(vtkMRMLMarkupsNode* node) override;
54 
57  { return new qMRMLMarkupsCurveSettingsWidget(); }
58 
59 public slots:
60  void onCurveTypeParameterChanged();
61  void onProjectCurveMaximumSearchRadiusChanged();
62  void onApplyCurveResamplingPushButtonClicked();
63  void setMRMLScene(vtkMRMLScene* scene) override;
64 
65 protected:
66  qMRMLMarkupsCurveSettingsWidget(QWidget* parent, qMRMLMarkupsCurveSettingsWidgetPrivate &d);
67 
68 protected:
69  void setup();
70 
71 protected:
72  QScopedPointer<qMRMLMarkupsCurveSettingsWidgetPrivate> d_ptr;
73 
74 private:
75  Q_DECLARE_PRIVATE(qMRMLMarkupsCurveSettingsWidget);
76  Q_DISABLE_COPY(qMRMLMarkupsCurveSettingsWidget);
77 };
78 
79 #endif // __qSlicerCurveSettingsWidget_h_
const QString className() const override
Gets the name of the additional options widget type.
virtual void updateWidgetFromMRML()=0
Updates the widget based on information from MRML.
virtual bool canManageMRMLMarkupsNode(vtkMRMLMarkupsNode *markupsNode) const =0
qMRMLMarkupsAbstractOptionsWidget * createInstance() const override
Returns an instance of the widget.
QScopedPointer< qMRMLMarkupsCurveSettingsWidgetPrivate > d_ptr
void setMRMLMarkupsNode(vtkMRMLNode *markupsNode)
Sets the vtkMRMLNode to operate on.
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:57
qMRMLMarkupsAbstractOptionsWidget Superclass
virtual void setMRMLScene(vtkMRMLScene *mrmlScene)
Sets the vtkMRMLNode to operate on.