Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qSlicerDTISliceDisplayWidget.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 __qSlicerDTISliceDisplayWidget_h
22 #define __qSlicerDTISliceDisplayWidget_h
23 
24 // Qt includes
25 
26 // CTK includes
27 #include <ctkVTKObject.h>
28 
29 // Slicer includes
30 #include <qSlicerWidget.h>
31 #include "qSlicerVolumesModuleWidgetsExport.h"
32 
33 class vtkMRMLNode;
36 class qSlicerDTISliceDisplayWidgetPrivate;
37 
38 class Q_SLICER_QTMODULES_VOLUMES_WIDGETS_EXPORT qSlicerDTISliceDisplayWidget
39  : public qSlicerWidget
40 {
41  Q_OBJECT
42  QVTK_OBJECT
43  Q_PROPERTY(bool visibilityHidden READ isVisibilityHidden WRITE setVisibilityHidden )
44 
45 public:
48  explicit qSlicerDTISliceDisplayWidget(QWidget* parent=nullptr);
49  ~qSlicerDTISliceDisplayWidget() override;
50 
52  vtkMRMLDiffusionTensorDisplayPropertiesNode* displayPropertiesNode()const;
53 
55  bool isVisibilityHidden()const;
56  void setVisibilityHidden(bool hide);
57 
58 public slots:
60  void setMRMLDTISliceDisplayNode(vtkMRMLDiffusionTensorVolumeSliceDisplayNode* displayNode);
62  void setMRMLDTISliceDisplayNode(vtkMRMLNode* displayNode);
63 
64  void setColorGlyphBy(int);
65  void setColorMap(vtkMRMLNode* colorNode);
66  void setOpacity(double);
67  void setVisibility(bool);
68  void setManualScalarRange(bool);
69  void setScalarRange(double, double);
70  void setGlyphGeometry(int);
71  void setGlyphScaleFactor(double);
72  void setGlyphSpacing(double);
73  void setGlyphEigenVector(int);
74 
75 protected slots:
76  void updateWidgetFromMRML();
77 
78 protected:
79  QScopedPointer<qSlicerDTISliceDisplayWidgetPrivate> d_ptr;
80 
81 private:
82  Q_DECLARE_PRIVATE(qSlicerDTISliceDisplayWidget);
83  Q_DISABLE_COPY(qSlicerDTISliceDisplayWidget);
84 };
85 
86 #endif
MRML node to represent display properties for tractography.
qSlicerWidget Superclass
Constructors.
QScopedPointer< qSlicerDTISliceDisplayWidgetPrivate > d_ptr
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167