Slicer: 2145-support-for-installing-extension-from-file fd9e609c

Author Committer Branch Timestamp Parent
naucoin naucoin 2145-support-for-installing-extension-from-file 2013-08-22 20:32:58 2145-support-for-installing-extension-from-file 6bfdcd2a
Changeset

ENH: Expose module displayable managers to Python

Before this change, you could get at module displayable managers but not
call any of their specific methods in python. This change follows the
pattern of the module logic init file.

To get at the module displayable managers for the first 3D window:
lm = slicer.app.layoutManager()
td = lm.threeDWidget(0)
dms = td.getDisplayableManagers()

The markups fiducial displayable manager was at index 7 in my test:
mfdm = dms.GetItemAsObject(7)
h = mfdm.GetHelper()
from there you can debug the seed widgets

Annotation, Volume Rendering and Tractography displayable managers
are now also accessible from python.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22316 3bd1e089-480b-0410-8dfb-8563597acbee

mod - Base/Python/CMakeLists.txt Diff File
add - Base/Python/slicer/moduledm/__init__.py Diff File