Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qMRMLAnnotationRulerProjectionPropertyWidget.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Program: 3D Slicer
4 
5  Copyright (c) Brigham and Women's Hospital
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 Laurent Chauvin, Brigham and Women's
17  Hospital. The project was supported by grants 5P01CA067165,
18  5R01CA124377, 5R01CA138586, 2R44DE019322, 7R01CA124377,
19  5R42CA137886, 5R42CA137886
20 
21 ==============================================================================*/
22 
23 #ifndef __qMRMLAnnotationRulerProjectionPropertyWidget_h
24 #define __qMRMLAnnotationRulerProjectionPropertyWidget_h
25 
26 // CTK includes
27 #include <ctkPimpl.h>
28 #include <ctkVTKObject.h>
29 
30 // Slicer includes
31 #include "qMRMLWidget.h"
32 
33 #include "qSlicerAnnotationsModuleWidgetsExport.h"
34 
35 class qMRMLAnnotationRulerProjectionPropertyWidgetPrivate;
37 
39 class Q_SLICER_MODULE_ANNOTATIONS_WIDGETS_EXPORT
41  : public qMRMLWidget
42 {
43  Q_OBJECT
44  QVTK_OBJECT
45 
46 public:
48  qMRMLAnnotationRulerProjectionPropertyWidget(QWidget *newParent = nullptr);
50 
51 public slots:
52  void setMRMLRulerNode(vtkMRMLAnnotationRulerNode* rulerNode);
53  void setProjectionVisibility(bool showProjection);
54  void setUseRulerColor(bool useRulerColor);
55  void setProjectionColor(QColor newColor);
56  void setOverlineThickness(int thickness);
57  void setUnderlineThickness(int thickness);
58  void setColoredWhenParallel(bool coloredWhenParallel);
59  void setThickerOnTop(bool thickerOnTop);
60  void setDashed(bool dashed);
61 
62 protected slots:
63  void updateWidgetFromDisplayNode();
64 
65 protected:
66  QScopedPointer<qMRMLAnnotationRulerProjectionPropertyWidgetPrivate> d_ptr;
67 
68 private:
71 
72 };
73 
74 #endif
Base class for any widget that requires a MRML Scene.
Definition: qMRMLWidget.h:35
QScopedPointer< qMRMLAnnotationRulerProjectionPropertyWidgetPrivate > d_ptr