Slicer
4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Main Page
Modules
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
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
i
l
m
n
o
p
q
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 Functions
a
e
f
i
m
o
r
s
t
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
c
e
f
g
i
j
k
l
m
n
r
s
t
w
+
Functions
a
c
e
f
g
r
t
w
Variables
+
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
z
+
Functions
a
c
e
i
l
n
p
q
r
s
t
u
v
z
Variables
+
Typedefs
a
d
g
i
l
m
p
q
r
s
t
v
Enumerations
Enumerator
+
Macros
b
c
d
e
f
g
h
i
m
n
o
p
s
t
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Modules
Loadable
SubjectHierarchy
Widgets
Python
AbstractScriptedSubjectHierarchyPlugin.py
Go to the documentation of this file.
1
import
os
2
import
vtk, qt, ctk, slicer, logging
3
4
#
5
# Abstract class of python scripted subject hierarchy plugins
6
#
7
8
class
AbstractScriptedSubjectHierarchyPlugin
():
9
""" Abstract scripted subject hierarchy plugin for python scripted plugins
10
11
USAGE: Instantiate scripted subject hierarchy plugin adaptor class from
12
module (e.g. from setup function), and set python source:
13
14
from SubjectHierarchyPlugins import *
15
...
16
class [Module]Widget(ScriptedLoadableModuleWidget):
17
...
18
def setup(self):
19
...
20
scriptedPlugin = slicer.qSlicerSubjectHierarchyScriptedPlugin(None)
21
scriptedPlugin.setPythonSource(VolumeClipSubjectHierarchyPlugin.filePath)
22
...
23
24
Example can be found here: https://subversion.assembla.com/svn/slicerrt/trunk/VolumeClip/src
25
"""
26
27
def
__init__
(self, scriptedPlugin):
28
self.
scriptedPlugin
= scriptedPlugin
29
30
# Register plugin on initialization
31
self.
register
()
32
33
def
register
(self):
34
pluginHandlerSingleton = slicer.qSlicerSubjectHierarchyPluginHandler.instance()
35
pluginHandlerSingleton.registerPlugin(self.
scriptedPlugin
)
36
logging.debug(
'Scripted subject hierarchy plugin registered: '
+ self.
scriptedPlugin
.name)
Python.AbstractScriptedSubjectHierarchyPlugin.AbstractScriptedSubjectHierarchyPlugin
Definition:
AbstractScriptedSubjectHierarchyPlugin.py:8
Python.AbstractScriptedSubjectHierarchyPlugin.AbstractScriptedSubjectHierarchyPlugin.__init__
def __init__(self, scriptedPlugin)
Definition:
AbstractScriptedSubjectHierarchyPlugin.py:27
Python.AbstractScriptedSubjectHierarchyPlugin.AbstractScriptedSubjectHierarchyPlugin.scriptedPlugin
scriptedPlugin
Definition:
AbstractScriptedSubjectHierarchyPlugin.py:28
Python.AbstractScriptedSubjectHierarchyPlugin.AbstractScriptedSubjectHierarchyPlugin.register
def register(self)
Definition:
AbstractScriptedSubjectHierarchyPlugin.py:33
Generated on Wed Dec 20 2017 04:49:09 for Slicer by
1.8.13