Import 2017-06-07 23:51:09: master 1f0a534f

Author Committer Branch Timestamp Parent
naucoin naucoin master 2015-11-16 17:46:35 master edb68b8d
Affected Issues 0004047: Add semantic color information to color selector in editor
Changeset

ENH: Add terminology information to color picker in Editor

Added terminology files, read them on start up, associate
with the generic anatomy colors node.
Add accessors to the color logic as well as basic methods to
allow creating new terminologies (used by the Reporting extension).
Created Python callable utility methods to allow scripted access[1].
Add read only widgets to the Editor, shown if the selected
color node has terminology associated with it (using
node attributes).
Added testing for the terminology functionality to vtkSlicerColorLogicTest (rather than
in vtkMRMLColorLogicTest1 since the Colors module logic adds the terminology files).
Pass the color logic to the color model so that it can look up
terminology information to set the tool tips on the color table
entries.
Minor changes to respond to feedback on the pull request (CMake,
references, default terminology).
[1] Utility accessor functions:

  • GetTerminologyFromLabel takes in the strings defining the color label
    categorization and the standard term elements and returns the specific term.
  • Get the colon concatenated full standard term values via
    GetSegmentedPropertyCategory, GetSegmentedPropertyType, GetSegmentedPropertyTypeModifier,
    GetAnatomicRegion, GetAnatomicRegionModifier

Issue 0004047

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

mod - Base/Logic/Resources/CMakeLists.txt Diff File
add - Base/Logic/Resources/ColorFiles/Terminology/AnatomicRegionAndModifier.xml Diff File
add - Base/Logic/Resources/ColorFiles/Terminology/GenericAnatomyColors-SNOMED.csv Diff File
add - Base/Logic/Resources/ColorFiles/Terminology/SegmentationCategoryTypeModifier.xml Diff File
mod - Libs/MRML/Logic/Testing/Cxx/CMakeLists.txt Diff File
add - Libs/MRML/Logic/Testing/Cxx/vtkMRMLColorLogicTest2.cxx Diff File
mod - Libs/MRML/Logic/vtkMRMLColorLogic.cxx Diff File
mod - Libs/MRML/Logic/vtkMRMLColorLogic.h Diff File
mod - Libs/MRML/Widgets/qMRMLColorModel.cxx Diff File
mod - Libs/MRML/Widgets/qMRMLColorModel.h Diff File
mod - Libs/MRML/Widgets/qMRMLColorModel_p.h Diff File
mod - Modules/Loadable/Colors/Logic/Testing/Cxx/vtkSlicerColorLogicTest1.cxx Diff File
mod - Modules/Loadable/Colors/Logic/vtkSlicerColorLogic.cxx Diff File
mod - Modules/Loadable/Colors/Logic/vtkSlicerColorLogic.h Diff File
mod - Modules/Loadable/Colors/qSlicerColorsModuleWidget.cxx Diff File
mod - Modules/Scripted/EditorLib/EditColor.py Diff File