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
Markups
Widgets
qSlicerMarkupsModuleWidgetsPythonQtDecorators.h
Go to the documentation of this file.
1
/*=auto=========================================================================
2
3
Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH)
4
All Rights Reserved.
5
6
See COPYRIGHT.txt
7
or http://www.slicer.org/copyright/copyright.txt for details.
8
9
Program: 3D Slicer
10
11
=========================================================================auto=*/
12
13
#ifndef __qSlicerMarkupsModuleWidgetsPythonQtDecorators_h
14
#define __qSlicerMarkupsModuleWidgetsPythonQtDecorators_h
15
16
// PythonQt includes
17
#include <PythonQt.h>
18
19
// Slicer includes
20
#include "
qMRMLMarkupsOptionsWidgetsFactory.h
"
21
22
#include "qSlicerMarkupsModuleWidgetsExport.h"
23
24
// NOTE:
25
//
26
// For decorators it is assumed that the methods will never be called
27
// with the self argument as nullptr. The self argument is the first argument
28
// for non-static methods.
29
//
30
31
class
qSlicerMarkupsModuleWidgetsPythonQtDecorators
:
public
QObject
32
{
33
Q_OBJECT
34
public
:
35
36
qSlicerMarkupsModuleWidgetsPythonQtDecorators
()
37
{
38
//PythonQt::self()->registerClass(&qMRMLMarkupsOptionsWidgetsFactory::staticMetaObject);
39
// Note: Use registerCPPClassForPythonQt to register pure Cpp classes
40
}
36
qSlicerMarkupsModuleWidgetsPythonQtDecorators
() {
…
}
41
42
public
slots:
43
44
//----------------------------------------------------------------------------
45
// qMRMLMarkupsOptionsWidgetsFactory
46
47
//----------------------------------------------------------------------------
48
// static methods
49
50
//----------------------------------------------------------------------------
51
qMRMLMarkupsOptionsWidgetsFactory
*
static_qMRMLMarkupsOptionsWidgetsFactory_instance
()
52
{
53
return
qMRMLMarkupsOptionsWidgetsFactory::instance
();
54
}
51
qMRMLMarkupsOptionsWidgetsFactory
*
static_qMRMLMarkupsOptionsWidgetsFactory_instance
() {
…
}
55
56
//----------------------------------------------------------------------------
57
// instance methods
58
59
//----------------------------------------------------------------------------
60
bool
registerOptionsWidget
(
qMRMLMarkupsOptionsWidgetsFactory
* factory,
61
PythonQtPassOwnershipToCPP<qMRMLMarkupsAbstractOptionsWidget*> plugin)
62
{
63
return
factory->
registerOptionsWidget
(plugin);
64
}
60
bool
registerOptionsWidget
(
qMRMLMarkupsOptionsWidgetsFactory
* factory, {
…
}
65
};
31
class
qSlicerMarkupsModuleWidgetsPythonQtDecorators
:
public
QObject {
…
};
66
67
//-----------------------------------------------------------------------------
68
void
initqSlicerMarkupsModuleWidgetsPythonQtDecorators
()
69
{
70
PythonQt::self()->addDecorators(
new
qSlicerMarkupsModuleWidgetsPythonQtDecorators
);
71
}
68
void
initqSlicerMarkupsModuleWidgetsPythonQtDecorators
() {
…
}
72
73
#endif
qMRMLMarkupsOptionsWidgetsFactory
Singleton class managing segment editor effect plugins.
Definition
qMRMLMarkupsOptionsWidgetsFactory.h:42
qMRMLMarkupsOptionsWidgetsFactory::instance
static Q_INVOKABLE qMRMLMarkupsOptionsWidgetsFactory * instance()
qMRMLMarkupsOptionsWidgetsFactory::registerOptionsWidget
Q_INVOKABLE bool registerOptionsWidget(qMRMLMarkupsAbstractOptionsWidget *widget)
qSlicerMarkupsModuleWidgetsPythonQtDecorators
Definition
qSlicerMarkupsModuleWidgetsPythonQtDecorators.h:32
qSlicerMarkupsModuleWidgetsPythonQtDecorators::qSlicerMarkupsModuleWidgetsPythonQtDecorators
qSlicerMarkupsModuleWidgetsPythonQtDecorators()
Definition
qSlicerMarkupsModuleWidgetsPythonQtDecorators.h:36
qSlicerMarkupsModuleWidgetsPythonQtDecorators::static_qMRMLMarkupsOptionsWidgetsFactory_instance
qMRMLMarkupsOptionsWidgetsFactory * static_qMRMLMarkupsOptionsWidgetsFactory_instance()
Definition
qSlicerMarkupsModuleWidgetsPythonQtDecorators.h:51
qSlicerMarkupsModuleWidgetsPythonQtDecorators::registerOptionsWidget
bool registerOptionsWidget(qMRMLMarkupsOptionsWidgetsFactory *factory, PythonQtPassOwnershipToCPP< qMRMLMarkupsAbstractOptionsWidget * > plugin)
Definition
qSlicerMarkupsModuleWidgetsPythonQtDecorators.h:60
qMRMLMarkupsOptionsWidgetsFactory.h
initqSlicerMarkupsModuleWidgetsPythonQtDecorators
void initqSlicerMarkupsModuleWidgetsPythonQtDecorators()
Definition
qSlicerMarkupsModuleWidgetsPythonQtDecorators.h:68
Generated on Sun Mar 16 2025 03:15:11 for Slicer by
1.13.0