Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qMRMLAnnotationROIWidget.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 Julien Finet, Kitware Inc.
17  and was partially funded by NIH grant 3P41RR013218-12S1
18 
19 ==============================================================================*/
20 
21 #ifndef __qMRMLAnnotationROIWidget_h
22 #define __qMRMLAnnotationROIWidget_h
23 
24 // Qt includes
25 #include <QWidget>
26 
27 // AnnotationWidgets includes
28 #include "qSlicerAnnotationsModuleWidgetsExport.h"
29 
30 // CTK includes
31 #include <ctkPimpl.h>
32 #include <ctkVTKObject.h>
33 
34 class vtkMRMLNode;
36 class qMRMLAnnotationROIWidgetPrivate;
37 
38 class Q_SLICER_MODULE_ANNOTATIONS_WIDGETS_EXPORT qMRMLAnnotationROIWidget : public QWidget
39 {
40  Q_OBJECT
41  QVTK_OBJECT
42 
43 public:
45  explicit qMRMLAnnotationROIWidget(QWidget* parent = 0);
46  virtual ~qMRMLAnnotationROIWidget();
47 
49  vtkMRMLAnnotationROINode* mrmlROINode()const;
50 
51  void setExtent(double min, double max);
52  void setExtent(double minLR, double maxLR,
53  double minPA, double maxPA,
54  double minIS, double maxIS);
55 public slots:
57  void setMRMLAnnotationROINode(vtkMRMLAnnotationROINode* node);
58 
62  void setMRMLAnnotationROINode(vtkMRMLNode* node);
63 
65  void setDisplayClippingBox(bool visible);
66 
69  void setInteractiveMode(bool interactive);
70 signals:
71  void displayClippingBoxChanged(bool);
72 
73 protected slots:
75  void onMRMLNodeModified();
77  void updateROI();
79  void onMRMLDisplayNodeModified();
80 
81 protected:
82  QScopedPointer<qMRMLAnnotationROIWidgetPrivate> d_ptr;
83 
84 private:
85  Q_DECLARE_PRIVATE(qMRMLAnnotationROIWidget);
86  Q_DISABLE_COPY(qMRMLAnnotationROIWidget);
87 };
88 
89 #endif
QScopedPointer< qMRMLAnnotationROIWidgetPrivate > d_ptr
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:135