Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qMRMLMarkupsROIWidget.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 __qMRMLMarkupsROIWidget_h
23 #define __qMRMLMarkupsROIWidget_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 
36 class vtkMRMLNode;
38 class qMRMLMarkupsROIWidgetPrivate;
39 
40 class Q_SLICER_MODULE_MARKUPS_WIDGETS_EXPORT qMRMLMarkupsROIWidget : public QWidget
41 {
42  Q_OBJECT
43  QVTK_OBJECT
44 
45 public:
47  explicit qMRMLMarkupsROIWidget(QWidget* parent = nullptr);
48  ~qMRMLMarkupsROIWidget() override;
49 
51  vtkMRMLMarkupsROINode* mrmlROINode()const;
52 
53  void setExtent(double min, double max);
54  void setExtent(double minLR, double maxLR,
55  double minPA, double maxPA,
56  double minIS, double maxIS);
57 public slots:
58 
60  void setMRMLMarkupsROINode(vtkMRMLMarkupsROINode* node);
61 
65  void setMRMLMarkupsROINode(vtkMRMLNode* node);
66 
68  void setDisplayClippingBox(bool visible);
69 
72  void setInteractiveMode(bool interactive);
73 signals:
74  void displayClippingBoxChanged(bool);
75 
76 protected slots:
78  void onMRMLNodeModified();
80  void updateROI();
82  void onMRMLDisplayNodeModified();
83 
84 protected:
85  QScopedPointer<qMRMLMarkupsROIWidgetPrivate> d_ptr;
86 
87 private:
88  Q_DECLARE_PRIVATE(qMRMLMarkupsROIWidget);
89  Q_DISABLE_COPY(qMRMLMarkupsROIWidget);
90 };
91 
92 #endif
MRML node to represent an ROI markup.
QScopedPointer< qMRMLMarkupsROIWidgetPrivate > d_ptr
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167