Slicer: 2145-support-for-installing-extension-from-file 5dc01e11

Author Committer Branch Timestamp Parent
jcfr jcfr 2145-support-for-installing-extension-from-file 2013-03-12 07:20:16 2145-support-for-installing-extension-from-file 8bf7c8ee
Changeset

ENH: Add saveNode and saveScene to python API

Example:

n = slicer.util.GetNode('MRHead')
slicer.util.saveNode(n, '/tmp/foo.nrrd') # Save node data

slicer.util.saveScene('/tmp/currentscene.mrml') # Save scene as MRML file

slicer.util.saveScene('/tmp/currentscene.mrb') # Save scene as MRB file

slicer.util.saveScene('/tmp/currentscene') # Save scene as directory

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

mod - Base/Python/slicer/util.py Diff File
mod - Base/QTCore/qSlicerCoreIOManager.h Diff File