Import 2017-06-07 23:51:09: master 87e7e567

Author Committer Branch Timestamp Parent
agirault agirault master 2017-01-24 17:23:02 master 0f0bc8cf
Changeset

ENH: Add volumetric mesh support in vtkMRMLModelNode

See: https://www.na-mic.org/Wiki/index.php/2017_Winter_Project_Week/Support_for_volumetric_meshes

Update vtkMRMLModelNode to store a vtkPointSet instead of a
vtkPolyData. vtkPointSet can be a base class for vtkPolyData
(surface mesh) as well as vtkUnstructuredGrid (volumetric mesh).

The safest way to know if the mesh is unstructuredGrid is to
check if vtkMRMLModelNode::GetUnstructuredGrid() is not NULL,
but since it requires to update the pipeline, vtkMRMLModelNode
also has a member variable called MeshTypeHint.

For backward compatibility, keep the public polydata-based API
and wrap around the mesh-based API in vtkMRMLModelNode and
vtkMRMLModelDisplayNode.

Update vtkMRMLModelDisplayNode, vtkMRMLModelDisplayableManager,
vtkMRMLModelSliceDisplayableManager, and qMRMLModelDisplayNodeWidget
to use the mesh-based API by default.

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

mod - Libs/MRML/Core/vtkMRMLModelDisplayNode.cxx Diff File
mod - Libs/MRML/Core/vtkMRMLModelDisplayNode.h Diff File
mod - Libs/MRML/Core/vtkMRMLModelNode.cxx Diff File
mod - Libs/MRML/Core/vtkMRMLModelNode.h Diff File
mod - Libs/MRML/Core/vtkMRMLModelStorageNode.cxx Diff File
mod - Libs/MRML/Core/vtkMRMLModelStorageNode.h Diff File
mod - Libs/MRML/DisplayableManager/vtkMRMLModelDisplayableManager.cxx Diff File
mod - Libs/MRML/DisplayableManager/vtkMRMLModelDisplayableManager.h Diff File
mod - Libs/MRML/DisplayableManager/vtkMRMLModelSliceDisplayableManager.cxx Diff File
mod - Libs/MRML/Widgets/Resources/UI/qMRMLModelInfoWidget.ui Diff File
mod - Libs/MRML/Widgets/qMRMLModelInfoWidget.cxx Diff File
mod - Modules/Loadable/Models/Widgets/qMRMLModelDisplayNodeWidget.cxx Diff File
mod - Modules/Loadable/Models/qSlicerModelsReader.cxx Diff File