Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
qMRMLVolumeInfoWidget.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 __qMRMLVolumeInfoWidget_h
22#define __qMRMLVolumeInfoWidget_h
23
24// Qt includes
25#include <QListWidget>
26
27// CTK includes
28#include <ctkVTKObject.h>
29
30// qMRML includes
31#include "qMRMLWidget.h"
32#include "qMRMLWidgetsExport.h"
33
34class qMRMLVolumeInfoWidgetPrivate;
35class vtkMRMLNode;
37
38class QMRML_WIDGETS_EXPORT qMRMLVolumeInfoWidget : public qMRMLWidget
39{
40 Q_OBJECT
41 QVTK_OBJECT
43public:
45
46 qMRMLVolumeInfoWidget(QWidget* parent = nullptr);
48
50 // Depends on the dimension, spacing and origin of the volume
51 bool isCentered() const;
52
53 // Disabled by default
54 bool isDataTypeEditable() const;
55
56public slots:
61 void setDataTypeEditable(bool enable);
62
63 void setImageSpacing(double*);
64 void setImageOrigin(double*);
65 void center();
66 void setScanOrder(int);
68 void setScalarType(int);
69 void setWindowLevelFromPreset(QListWidgetItem*);
70
71protected slots:
74
75protected:
76 QScopedPointer<qMRMLVolumeInfoWidgetPrivate> d_ptr;
77
78private:
79 Q_DECLARE_PRIVATE(qMRMLVolumeInfoWidget);
80 Q_DISABLE_COPY(qMRMLVolumeInfoWidget);
81};
82
83#endif
bool isCentered() const
void setVolumeNode(vtkMRMLVolumeNode *node)
Set the volume node to display.
void setDataTypeEditable(bool enable)
void setNumberOfScalars(int)
bool isDataTypeEditable() const
qMRMLVolumeInfoWidget(QWidget *parent=nullptr)
void setImageOrigin(double *)
~qMRMLVolumeInfoWidget() override
void setImageSpacing(double *)
void setWindowLevelFromPreset(QListWidgetItem *)
vtkMRMLVolumeNode * volumeNode() const
void setVolumeNode(vtkMRMLNode *node)
Utility function to be connected with generic signals.
QScopedPointer< qMRMLVolumeInfoWidgetPrivate > d_ptr
void updateWidgetFromMRMLDisplayNode()
qMRMLWidget(QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
Abstract Superclass for all specific types of MRML nodes.
MRML node for representing a volume (image stack).