Slicer: 1999-expose-dcmtk-dir-to-built-in-module 6ba60266

Author Committer Branch Timestamp Parent
finetjul finetjul 1999-expose-dcmtk-dir-to-built-in-module 2012-05-02 11:43:21 1999-expose-dcmtk-dir-to-built-in-module 443c35b5
Changeset

BUG: Fix bugs in vtkMRMLDisplayableNode

Previous version of vtkMRMLDisplayableNode didn't handle correctly:

  • DisplayNodes list synchronization with DisplayNodeIDs list
    • sometimes the ID could removed from the DisplayNodeIDs list but not in DisplayNodes list
  • DisplayModifiedEvent was not fired every time a display node was set
  • Some methods where clearing the display node list for no good reason (e.g. UpdateScene)
  • Too many ModifiedEvent could be fired when processing each node ID in a loop (solution is to use Start/EndModify())
  • Code was not factorized (AddReferencedNodeID was called at multiple locations, clear() and erase() were done at different locations)
  • ...

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

mod - Libs/MRML/Core/Testing/vtkMRMLDisplayableNodeTest1.cxx Diff File
mod - Libs/MRML/Core/Testing/vtkMRMLLinearTransformNodeEventsTest.cxx Diff File
mod - Libs/MRML/Core/vtkMRMLCoreTestingMacros.cxx Diff File
mod - Libs/MRML/Core/vtkMRMLCoreTestingMacros.h Diff File
mod - Libs/MRML/Core/vtkMRMLDisplayableNode.cxx Diff File
mod - Libs/MRML/Core/vtkMRMLDisplayableNode.h Diff File
mod - Libs/MRML/Core/vtkMRMLModelNode.cxx Diff File