Difference between revisions of "AHM2012-Slicer-Architecture"

From NAMIC Wiki
Jump to: navigation, search
Line 54: Line 54:
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_Swig.cmake Swig]
 
*** [https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_Swig.cmake Swig]
  
* Libraries living in Slicer repository - [https://github.com/Slicer/Slicer/tree/master/Libs Slicer/Libs]
+
* Libraries living in Slicer repository - Look inside [https://github.com/Slicer/Slicer/tree/master/Libs Slicer/Libs] directory
 
** [https://github.com/Slicer/Slicer/tree/master/Libs/FreeSurfer FreeSurfer]
 
** [https://github.com/Slicer/Slicer/tree/master/Libs/FreeSurfer FreeSurfer]
 
** [https://github.com/Slicer/Slicer/tree/master/Libs/IGT IGT]
 
** [https://github.com/Slicer/Slicer/tree/master/Libs/IGT IGT]
 
** [https://github.com/Slicer/Slicer/tree/master/Libs/MGHImageIO MGHImageIO]
 
** [https://github.com/Slicer/Slicer/tree/master/Libs/MGHImageIO MGHImageIO]
** [https://github.com/Slicer/Slicer/tree/master/Libs/MRML MRML]
+
** [https://github.com/Slicer/Slicer/tree/master/Libs/MRML MRML] - Contains MRML/'''CLI''', MRML/'''Core''', MRML/'''DisplayableManager''', MRML/'''IDImageIO''', MRML/'''Logic''', MRML/'''Widgets'''
 
** [https://github.com/Slicer/Slicer/tree/master/Libs/RemoteIO RemoteIO]
 
** [https://github.com/Slicer/Slicer/tree/master/Libs/RemoteIO RemoteIO]
 
** [https://github.com/Slicer/Slicer/tree/master/Libs/vtkITK vtkITK]
 
** [https://github.com/Slicer/Slicer/tree/master/Libs/vtkITK vtkITK]
 
** [https://github.com/Slicer/Slicer/tree/master/Libs/vtkTeem vtkTeem]
 
** [https://github.com/Slicer/Slicer/tree/master/Libs/vtkTeem vtkTeem]
  
 +
* The Slicer base classes - Look inside [https://github.com/Slicer/Slicer/tree/master/Base Slicer/Base] directory
 +
** [https://github.com/Slicer/Slicer/tree/master/Base/CLI CLI]
 +
** [https://github.com/Slicer/Slicer/tree/master/Base/Logic Logic]
 +
** [https://github.com/Slicer/Slicer/tree/master/Base/Python Python]
 +
** [https://github.com/Slicer/Slicer/tree/master/Base/QTCLI QTCLI]
 +
** [https://github.com/Slicer/Slicer/tree/master/Base/QTCore QTCore]
 +
** [https://github.com/Slicer/Slicer/tree/master/Base/QTGUI QTGUI]
 +
 +
*  The Slicer application - Look inside [https://github.com/Slicer/Slicer/tree/master/Applications Slicer/Applications] directory
 +
** [https://github.com/Slicer/Slicer/tree/master/Applications/SlicerQT SlicerQT]
  
 
[[File:AHM2012_SlicerArch.png]]
 
[[File:AHM2012_SlicerArch.png]]

Revision as of 14:36, 10 January 2012

Home < AHM2012-Slicer-Architecture

Modularization Object Specialization

  • Slicer is build on top libraries/toolkits/tools supported by the community.
  • The new build system allows to optionally disable/enable most of them.

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.