Slicer: 2145-support-for-installing-extension-from-file 5862d5c3
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
alexy | alexy | 2145-support-for-installing-extension-from-file | 2013-03-15 10:22:50 | 2145-support-for-installing-extension-from-file 62f06595 |
Changeset | ENH: 2727. Implemented new generic MRML node reference API in the vtkMRMLNode class. Implemented vtkMRMLDisplayableNode, vtkMRMLStorableNode, vtkMRMLTransformNode node using new API. Added tests to Libs/MRML/Core/Testing/vtkMRMLNodeTest1.cxx. See below for more details on the API. == Goal == == History == When creating a new node with the reference to another node the following
== New API == The only other call that is needed is either: vtkMRMLNode also provides virtual callbacks that can be extended in the
By default those methods generate the following events:
In the derived classes those methods could be extended using vtkMRMLNode
For full API see: http://viewvc.slicer.org/viewvc.cgi/Slicer4/trunk/Libs/MRML/Core/vtkMRMLNode.h?view=log Currently the following MRML nodes are implemented using new API:
Other references to MRML nodes such as to vtkMRMLColorTableNode, vtkMRMLDiffusionTensorDisplayPropertiesNode are currently not using new API. Module parameter nodes that contain references to input/output Volume/Model, etc. nodes may or may not require a new API since not all of them contain logic to deal with reference changes. == Examples ==
git-svn-id: http://svn.slicer.org/Slicer4/trunk@21810 3bd1e089-480b-0410-8dfb-8563597acbee |
|||
mod - Libs/MRML/Core/CMakeLists.txt | Diff File | |||
mod - Libs/MRML/Core/Testing/vtkMRMLDisplayableNodeTest1.cxx | Diff File | |||
mod - Libs/MRML/Core/Testing/vtkMRMLNodeTest1.cxx | Diff File | |||
mod - Libs/MRML/Core/vtkMRMLDisplayableNode.cxx | Diff File | |||
mod - Libs/MRML/Core/vtkMRMLDisplayableNode.h | Diff File | |||
mod - Libs/MRML/Core/vtkMRMLModelDisplayNode.cxx | Diff File | |||
mod - Libs/MRML/Core/vtkMRMLModelNode.cxx | Diff File | |||
mod - Libs/MRML/Core/vtkMRMLModelNode.h | Diff File | |||
mod - Libs/MRML/Core/vtkMRMLNode.cxx | Diff File | |||
mod - Libs/MRML/Core/vtkMRMLNode.h | Diff File | |||
add - Libs/MRML/Core/vtkMRMLNodeReference.cxx | Diff File | |||
add - Libs/MRML/Core/vtkMRMLNodeReference.h | Diff File | |||
mod - Libs/MRML/Core/vtkMRMLScene.cxx | Diff File | |||
mod - Libs/MRML/Core/vtkMRMLStorableNode.cxx | Diff File | |||
mod - Libs/MRML/Core/vtkMRMLStorableNode.h | Diff File | |||
mod - Libs/MRML/Core/vtkMRMLTransformNode.cxx | Diff File | |||
mod - Libs/MRML/Core/vtkMRMLTransformableNode.cxx | Diff File | |||
mod - Libs/MRML/Core/vtkMRMLTransformableNode.h | Diff File | |||
mod - Libs/MRML/Core/vtkMRMLVolumeNode.cxx | Diff File | |||
mod - Libs/MRML/Core/vtkMRMLVolumeNode.h | Diff File |