Slicer 5.7
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
qMRMLSliceInformationWidget.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 Jean-Christophe Fillion-Robin, Kitware Inc.
17 and was partially funded by NIH grant 3P41RR013218-12S1
18
19==============================================================================*/
20
21#ifndef __qMRMLSliceInformationWidget_h
22#define __qMRMLSliceInformationWidget_h
23
24// Qt includes
25#include <QWidget>
26
27// CTK includes
28#include <ctkPimpl.h>
29
30// qMRMLWidget includes
31#include "qMRMLWidget.h"
32
33#include "qMRMLWidgetsExport.h"
34
35class qMRMLSliceInformationWidgetPrivate;
36class vtkMRMLNode;
38
40
41class QMRML_WIDGETS_EXPORT qMRMLSliceInformationWidget : public qMRMLWidget
42{
43 Q_OBJECT
44public:
47
49 explicit qMRMLSliceInformationWidget(QWidget* parent = nullptr);
51
55
56public slots:
57
60
63
66 void setSliceOrientation(const QString& orientation);
67
69 void setSliceVisible(bool visible);
70
72 void setWidgetVisible(bool visible);
73
75 void setViewGroup(int viewGroup);
76
78 void setLightboxLayoutRows(int rowCount);
79
81 void setLightboxLayoutColumns(int columnCount);
82
85 void setSliceSpacingMode(int spacingMode);
86
88 void setPrescribedSliceSpacing(double spacing);
89
90protected:
91 QScopedPointer<qMRMLSliceInformationWidgetPrivate> d_ptr;
92
93private:
94 Q_DECLARE_PRIVATE(qMRMLSliceInformationWidget);
95 Q_DISABLE_COPY(qMRMLSliceInformationWidget);
96};
97
98#endif
~qMRMLSliceInformationWidget() override
void setSliceOrientation(const QString &orientation)
void setSliceSpacingMode(int spacingMode)
void setViewGroup(int viewGroup)
Set view group.
void setMRMLSliceNode(vtkMRMLNode *newNode)
Set a new SliceNode.
qMRMLSliceInformationWidget(QWidget *parent=nullptr)
Constructors.
void setLightboxLayoutColumns(int columnCount)
Set lightbox layout column count.
void setWidgetVisible(bool visible)
Set widget visible.
void setSliceVisible(bool visible)
Set slice visible.
qMRMLWidget Superclass
Superclass typedef.
vtkMRMLSliceNode * mrmlSliceNode() const
QScopedPointer< qMRMLSliceInformationWidgetPrivate > d_ptr
void setMRMLSliceNode(vtkMRMLSliceNode *newSliceNode)
Set a new SliceNode.
void setPrescribedSliceSpacing(double spacing)
Set prescribed spacing.
void setLightboxLayoutRows(int rowCount)
Set lightbox layout row count.
Base class for any widget that requires a MRML Scene.
Definition qMRMLWidget.h:36
Abstract Superclass for all specific types of MRML nodes.
Slicer logic class for slice manipulation.
MRML node for storing a slice through RAS space.