Slicer  5.2
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qMRMLMarkupsFiducialProjectionPropertyWidget.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  It was then updated for the Markups module by Nicole Aucoin, BWH.
21 
22 ==============================================================================*/
23 
24 #ifndef __qMRMLMarkupsFiducialProjectionPropertyWidget_h
25 #define __qMRMLMarkupsFiducialProjectionPropertyWidget_h
26 
27 // CTK includes
28 #include <ctkPimpl.h>
29 #include <ctkVTKObject.h>
30 
31 // Slicer includes
32 #include "qMRMLWidget.h"
33 
34 #include "qSlicerMarkupsModuleWidgetsExport.h"
35 
36 class qMRMLMarkupsFiducialProjectionPropertyWidgetPrivate;
38 class vtkMRMLMarkupsNode;
39 
41 class Q_SLICER_MODULE_MARKUPS_WIDGETS_EXPORT
43  : public qMRMLWidget
44 {
45  Q_OBJECT
46  QVTK_OBJECT
47 
48 public:
50  qMRMLMarkupsFiducialProjectionPropertyWidget(QWidget *newParent = nullptr);
52 
53 public slots:
54  void setMRMLMarkupsNode(vtkMRMLMarkupsNode* markupsNode);
55  void setMRMLMarkupsDisplayNode(vtkMRMLMarkupsDisplayNode* markupsDisplayNode);
56  void setProjectionVisibility(bool showProjection);
57  void setProjectionColor(QColor newColor);
58  void setUseFiducialColor(bool useFiducialColor);
59  void setOutlinedBehindSlicePlane(bool outlinedBehind);
60  void setProjectionOpacity(double opacity);
61 
62 protected slots:
63  void updateWidgetFromDisplayNode();
64 
65 protected:
66  QScopedPointer<qMRMLMarkupsFiducialProjectionPropertyWidgetPrivate> 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< qMRMLMarkupsFiducialProjectionPropertyWidgetPrivate > d_ptr