Slicer
5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Toggle main menu visibility
Main Page
Related Pages
Classes
Class Index
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
Enumerations
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Related Symbols
a
e
f
i
m
o
p
r
s
w
Namespaces
Namespace List
Namespace Members
All
_
a
c
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
v
Functions
Variables
a
c
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
v
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Functions
a
c
e
i
l
n
p
q
r
s
t
v
Variables
Typedefs
a
d
g
i
l
m
n
p
q
r
s
t
v
Enumerations
Enumerator
Macros
b
c
d
e
f
g
i
m
o
p
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
Modules
Loadable
SceneViews
GUI
qMRMLSceneViewMenu.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 __qMRMLSceneViewMenu_h
22
#define __qMRMLSceneViewMenu_h
23
24
// Slicer includes
25
#include "qSlicerSceneViewsModuleExport.h"
26
27
// Qt includes
28
#include <QMenu>
29
30
// CTK includes
31
#include <ctkVTKObject.h>
32
33
class
qMRMLSceneViewMenuPrivate;
34
class
vtkMRMLScene
;
35
class
vtkMRMLNode
;
36
class
vtkSlicerSceneViewsModuleLogic
;
37
38
class
Q_SLICER_QTMODULES_SCENEVIEWS_EXPORT
qMRMLSceneViewMenu
:
public
QMenu
39
{
40
Q_OBJECT
41
QVTK_OBJECT
42
Q_PROPERTY(QString
NoSceneViewText
READ
noSceneViewText
WRITE
setNoSceneViewText
)
43
public
:
45
typedef
QMenu
Superclass
;
46
48
explicit
qMRMLSceneViewMenu
(QWidget* newParent =
nullptr
);
49
~qMRMLSceneViewMenu
()
override
;
50
52
vtkMRMLScene
*
mrmlScene
()
const
;
53
55
QString
noSceneViewText
()
const
;
56
void
setNoSceneViewText
(
const
QString& newText);
57
58
void
setSceneViewsLogic
(
vtkSlicerSceneViewsModuleLogic
* logic);
59
60
public
slots:
61
63
virtual
void
setMRMLScene
(
vtkMRMLScene
* scene);
64
65
signals:
66
void
mrmlSceneChanged
(
vtkMRMLScene
*);
67
68
protected
:
69
QScopedPointer<qMRMLSceneViewMenuPrivate>
d_ptr
;
70
71
private
:
72
Q_DECLARE_PRIVATE(
qMRMLSceneViewMenu
);
73
Q_DISABLE_COPY(
qMRMLSceneViewMenu
);
74
75
};
38
class
Q_SLICER_QTMODULES_SCENEVIEWS_EXPORT
qMRMLSceneViewMenu
:
public
QMenu {
…
};
76
77
#endif
qMRMLSceneViewMenu::~qMRMLSceneViewMenu
~qMRMLSceneViewMenu() override
qMRMLSceneViewMenu::setMRMLScene
virtual void setMRMLScene(vtkMRMLScene *scene)
Set the MRML scene associated with the widget.
qMRMLSceneViewMenu::mrmlScene
vtkMRMLScene * mrmlScene() const
Return a pointer on the current MRML scene.
qMRMLSceneViewMenu::setNoSceneViewText
void setNoSceneViewText(const QString &newText)
qMRMLSceneViewMenu::Superclass
QMenu Superclass
Superclass typedef.
Definition
qMRMLSceneViewMenu.h:45
qMRMLSceneViewMenu::setSceneViewsLogic
void setSceneViewsLogic(vtkSlicerSceneViewsModuleLogic *logic)
qMRMLSceneViewMenu::mrmlSceneChanged
void mrmlSceneChanged(vtkMRMLScene *)
qMRMLSceneViewMenu::qMRMLSceneViewMenu
qMRMLSceneViewMenu(QWidget *newParent=nullptr)
Constructors.
qMRMLSceneViewMenu::d_ptr
QScopedPointer< qMRMLSceneViewMenuPrivate > d_ptr
Definition
qMRMLSceneViewMenu.h:69
qMRMLSceneViewMenu::NoSceneViewText
QVTK_OBJECTQString NoSceneViewText
Definition
qMRMLSceneViewMenu.h:42
qMRMLSceneViewMenu::noSceneViewText
QString noSceneViewText() const
This property holds the menu's text displayed when there are no scene views.
vtkMRMLNode
Abstract Superclass for all specific types of MRML nodes.
Definition
vtkMRMLNode.h:176
vtkMRMLScene
A set of MRML Nodes that supports serialization and undo/redo.
Definition
vtkMRMLScene.h:56
vtkSlicerSceneViewsModuleLogic
Definition
vtkSlicerSceneViewsModuleLogic.h:49
Generated on Tue Apr 8 2025 04:46:47 for Slicer by
1.13.0