Import 2017-06-07 23:51:09: master 7b76f67c

Author Committer Branch Timestamp Parent
jcfr jcfr master 2014-05-18 23:28:41 master 02b6a5d6
Changeset

ENH: Simplify MRMLReferences using smart pointers

  • Use of smart pointer in vtkMRMLReference allows us to remove
    the complicated code manually managing the calls to Register/UnRegister

  • function "SetNthNodeReferenceID" and "SetAndObserveNthNodeReferenceID"
    have been updated to have similar code (at the exception of the
    code setting the observation events). The second will consist in factoring
    code common code to avoid code duplication.

  • SetNthNodeReferenceID/SetAndObserveNthNodeReferenceID have also
    been fixed to work properly in case the reference doesn't exist
    and referencedNodeID is null.

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

mod - Libs/MRML/Core/vtkMRMLNode.cxx Diff File
mod - Libs/MRML/Core/vtkMRMLNode.h Diff File