Difference between revisions of "AHM2012-Slicer-Architecture"

From NAMIC Wiki
Jump to: navigation, search
Line 10: Line 10:
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_teem.cmake teem]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_teem.cmake teem]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_VTK.cmake VTK]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_VTK.cmake VTK]
** '''Core <- CLI Support''' [Slicer_BUILD_CLI_SUPPORT = TRUE]
+
** '''Core <- CLI Support''' [Option Slicer_BUILD_CLI_SUPPORT - Enabled by default]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_SlicerExecutionModel.cmake SlicerExecutionModel]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_SlicerExecutionModel.cmake SlicerExecutionModel]
** ''' Core <- Python''' [Slicer_USE_PYTHONQT = TRUE]
+
** ''' Core <- Python''' [Option Slicer_USE_PYTHONQT - Enabled by default]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_python.cmake python]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_python.cmake python]
** ''' Core <- Python <- NUMPY''' [Slicer_USE_NUMPY = TRUE]
+
** ''' Core <- Python <- NUMPY''' [Option Slicer_USE_NUMPY - Enabled by default]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_NUMPY.cmake NUMPY]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_NUMPY.cmake NUMPY]
** ''' Core <- ExtensionManager ''' [Slicer_BUILD_EXTENSIONMANAGER_SUPPORT = TRUE]
+
** ''' Core <- ExtensionManager ''' [Option Slicer_BUILD_EXTENSIONMANAGER_SUPPORT - Enabled by default]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_LibArchive.cmake LibArchive]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_LibArchive.cmake LibArchive]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_qMidasAPI.cmake qMidasAPI]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_qMidasAPI.cmake qMidasAPI]
** ''' Core <- Python <- Tcl Compatibility layer''' [Slicer_USE_PYTHONQT_WITH_TCL = TRUE]
+
** ''' Core <- Python <- Tcl Compatibility layer''' [Option Slicer_USE_PYTHONQT_WITH_TCL - Enabled by default]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_tcl.cmake tcl]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_tcl.cmake tcl]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_incrTcl.cmake incrTcl]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_incrTcl.cmake incrTcl]
Line 25: Line 25:
 
** '''Core <- BatchMake '''
 
** '''Core <- BatchMake '''
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_BatchMake.cmake BatchMake]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_BatchMake.cmake BatchMake]
** ''' Core <- OpenIGTLink''' [Slicer_USE_OpenIGTLink = TRUE]
+
** ''' Core <- OpenIGTLink''' [Option Slicer_USE_OpenIGTLink]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_OpenIGTLink.cmake OpenIGTLink]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_OpenIGTLink.cmake OpenIGTLink]
** ''' Core <- OpenIGTLink <- OpenIGTLinkIF''' [Slicer_USE_OpenIGTLinkIF = TRUE]
+
** ''' Core <- OpenIGTLink <- OpenIGTLinkIF''' [Option Slicer_USE_OpenIGTLinkIF]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_OpenIGTLinkIF.cmake OpenIGTLinkIF]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_OpenIGTLinkIF.cmake OpenIGTLinkIF]
 
** ''' Core <- Built-in ''Extension'''''
 
** ''' Core <- Built-in ''Extension'''''
Line 34: Line 34:
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_ChangeTrackerPy.cmake ChangeTrackerPy]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_ChangeTrackerPy.cmake ChangeTrackerPy]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_EMSegment.cmake EMSegment]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_EMSegment.cmake EMSegment]
** ''' Core <- ITKv4 ''' [Experimental - ITK_VERSION_MAJOR = 4]
+
** ''' Core <- ITKv4 ''' [Experimental - Option ITK_VERSION_MAJOR = 4]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_ITKv4.cmake ITKv4]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_ITKv4.cmake ITKv4]
** ''' Core <- ITKv4 <- SimpleITK ''' [Experimental - Slicer_USE_SimpleITK = TRUE]
+
** ''' Core <- ITKv4 <- SimpleITK ''' [Experimental - Option Slicer_USE_SimpleITK]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_PCRE.cmake PCRE]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_PCRE.cmake PCRE]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_SimpleITK.cmake SimpleITK]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_SimpleITK.cmake SimpleITK]

Revision as of 14:24, 10 January 2012

Home < AHM2012-Slicer-Architecture

Modularization Object Specialization

  • Slicer is build on top libraries/toolkits/tools supported by the community:

AHM2012 SlicerArch.png

Displayable Managers

  • Displayable manager: Specialized logic handling both RenderWindow <-> MRML and RenderWindow <-> Logic interactions.
  • Motivation: Have a well-designed mechanism to ...
    • ...represent MRML node within a Renderer/RenderWindow.
    • ... handle mouse/keyboard interaction.
    • ... synchronize widget across different views.
  • Overview:
    • Each time a viewer is instantiated, it asks a factory to provide him with a DisplayableManagerGroup.
    • DisplayableManagerGroup contain a list of DisplayableManager
    • Each DisplayableManager is associated with Renderer + InteractorStyle

Views and Layouts

  • Implemented layouts
    • conventionalView
    • fourUpView
    • oneUp3DView
    • oneUpRedView
    • oneUpYellowView
    • oneUpGreenView
    • tabbed3DView
    • tabbedSliceView
    • dual3DView
    • triple3DView
    • conventionalWidescreenView
    • threeOverThreeView
    • fourOverFourView
    • compareView
  • Concept
    • Management of Layout and their associated View have been revisited.
    • Layout are now described using a simple XML description. See vtkMRMLLayoutLogic
const char* triple3DEndoscopyView =
  "<layout type=\"vertical\" split=\"true\" >"
  " <item>"
  "  <view class=\"vtkMRMLViewNode\">"
  "   <property name=\"viewlabel\" action=\"default\">1</property>"
  "  </view>"
  " </item>"
  " <item>"
  "  <layout type=\"horizontal\">"
  "   <item>"
  "    <view class=\"vtkMRMLViewNode\" type=\"secondary\">"
  "     <property name=\"viewlabel\" action=\"default\">2</property>"
  "    </view>"
  "   </item>"
  "   <item>"
  "    <view class=\"vtkMRMLViewNode\" type=\"endoscopy\">"
  "     <property name=\"viewlabel\" action=\"default\">3</property>"
  "    </view>"
  "   </item>"
  "  </layout>"
  " </item>"
  "</layout>";
  • MRMLLayoutManager
    • Bridge between MRML nodes, Layout description and corresponding Widgets layout.
    • Aggregates a MRMLLayoutLogic
    • Based on ctkLayoutManager
  • vtkMRMLLayoutLogic
    • Observes LayoutNode and ViewNodes
    • Ensures that at least one 3D view and three slice views are always in the MRML scene (after a scene is closed or imported).
    • Keeps an up-to-date list of the different MRML view nodes (3D, slice ...) that are mapped into a given layout.
  • What's next ?
    • API to ...
      • ... dynamically update a given layout description
      • ... register new layout.