Difference between revisions of "Documentation/Nightly/Developers/DirectoryStructure"

From Slicer Wiki
Jump to: navigation, search
(4.1 -> Nightly)
 
Tag: 2017 source edit
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
<noinclude>{{documentation/versioncheck}}</noinclude>
 
Back to [[Documentation/{{documentation/version}}/Developers/Build_system|Build System]]&larr;
 
Back to [[Documentation/{{documentation/version}}/Developers/Build_system|Build System]]&larr;
  
Line 51: Line 52:
 
       |  |
 
       |  |
 
       |  + QtScriptedModuleNameN
 
       |  + QtScriptedModuleNameN
      |
 
      + Tcl
 
 
       |
 
       |
 
       + ParameterSets
 
       + ParameterSets
Line 67: Line 66:
 
  |
 
  |
 
  + bin
 
  + bin
 +
|  |
 +
|  + Python
 +
|
 +
+ (bin|lib)/Python/(lib/python3.Y|Lib)/site-packages/
 
  |
 
  |
 
  + lib
 
  + lib
Line 89: Line 92:
 
  |
 
  |
 
  + share
 
  + share
  |
+
|
  + Slicer-X.Y
+
+ Slicer-X.Y
      |
+
|    |
      + cli-modules
+
|    + qt-loadable-modules
      |   |
+
|   |
      |   + CLIModuleName1
+
|   + ColorFiles
      |   |
+
|   |
      .  .
+
|    + ParameterSets
      |   |
+
|   |
      |   + CLIModuleNameN
+
|   + OrientationMarkers
      |
+
|   |
      + qt-loadable-modules
+
|   + Slicer.crt
      |  |
+
|
      |   + QtLoadableModuleName1
+
+ slicer.org
      |  |
+
    |
      .  .
+
    + Extensions-NNNNN
      |  |
+
    |  |
      |  + QtLoadableModuleNameN
+
    .  + ExtensionsMetadataFromServer.json
      |
+
    | |
      + qt-scripted-modules
+
    | + InstalledExtension1
      |   |
+
    | |
      |   + QtScriptedModuleName1
+
    . .
      |   |
+
    | |
      .   .
+
    | + InstalledExtensionN
      |   |
+
    |
      |   + QtScriptedModuleNameN
+
    |
      |
+
    + Slicer-NNNNN.ini
      + Tcl
 
      |
 
      + ParameterSets
 
      |
 
      + ColorFiles
 
   
 
 
 
</pre>
 
</pre>
  
Line 128: Line 124:
  
 
= Extension install and build tree =
 
= Extension install and build tree =
 +
 +
Extensions installation path can be specified in the Extension settings. See [[Documentation/{{documentation/version}}/SlicerApplication/ExtensionsManager#Extensions_Manager_Settings|here]] for more details.
  
 
<pre>
 
<pre>
Line 147: Line 145:
 
       |
 
       |
 
       + cli-modules
 
       + cli-modules
      |  |
 
      |  + CLIModuleName1
 
      |  |
 
      .  .
 
      |  |
 
      |  + CLIModuleNameN
 
 
       |
 
       |
 
       + qt-loadable-modules
 
       + qt-loadable-modules
      |  |
 
      |  + QtLoadableModuleName1
 
      |  |
 
      .  .
 
      |  |
 
      |  + QtLoadableModuleNameN
 
 
       |
 
       |
 
       + qt-scripted-modules
 
       + qt-scripted-modules
        |
+
      |
        + QtScriptedModuleName1
+
      + ExtensionName.s4ext  # Only found in install tree
        |
 
        .
 
        |
 
        + QtScriptedModuleNameN
 
 
        
 
        
 
</pre>
 
</pre>
Line 179: Line 161:
  
 
* Application settings (including the search path for modules/extensions) are stored in a ''.ini'' file. The location of the file depends on the OS:
 
* Application settings (including the search path for modules/extensions) are stored in a ''.ini'' file. The location of the file depends on the OS:
** Linux + Mac OS X: ''~/.config/www.na-mic.org/Slicer.ini''
+
** Linux + macOS: ''~/.config/www.na-mic.org/Slicer.ini''
 
** Windows: ''C:\Users\USERNAME\AppData\Roaming\NA-MIC\Slicer.ini''
 
** Windows: ''C:\Users\USERNAME\AppData\Roaming\NA-MIC\Slicer.ini''

Latest revision as of 14:55, 21 September 2023

Home < Documentation < Nightly < Developers < DirectoryStructure


For the latest Slicer documentation, visit the read-the-docs.


Back to Build System

Slicer

Build tree

Slicer_HOME
 |
 + bin
 |  |
 |  + designer
 |  |
 |  + iconengines
 |
 + lib
 |  |
 |  + Slicer-X.Y
 |      |
 |      + cli-modules
 |      |
 |      + qt-loadable-modules
 |      |
 |      + qt-scripted-modules
 |
 + share
   |
   + Slicer-X.Y
      |
      + cli-modules
      |   |
      |   + CLIModuleName1
      |   |
      .   .
      |   |
      |   + CLIModuleNameN
      |
      + qt-loadable-modules
      |   |
      |   + QtLoadableModuleName1
      |   |
      .   .
      |   |
      |   + QtLoadableModuleNameN
      |
      + qt-scripted-modules
      |   |
      |   + QtScriptedModuleName1
      |   |
      .   .
      |   |
      |   + QtScriptedModuleNameN
      |
      + ParameterSets
      |
      + ColorFiles
    
 

Install tree

Slicer_HOME
 |
 + bin
 |  |
 |  + Python
 |
 + (bin|lib)/Python/(lib/python3.Y|Lib)/site-packages/
 |
 + lib
 |  |
 |  + QtPlugins 
 |  |   |
 |  |   + designer
 |  |   |
 |  |   + imageformats
 |  |   |
 |  |   + iconengines
 |  |   |
 |  |   + sqldrivers
 |  |
 |  + Slicer-X.Y
 |      |
 |      + cli-modules
 |      |
 |      + qt-loadable-modules
 |      |
 |      + qt-scripted-modules
 |
 + share
 |  |
 |  + Slicer-X.Y
 |    |
 |    + qt-loadable-modules
 |    |
 |    + ColorFiles
 |    |
 |    + ParameterSets
 |    |
 |    + OrientationMarkers
 |    |
 |    + Slicer.crt
 |
 + slicer.org
    |
    + Extensions-NNNNN
    |  |
    .  + ExtensionsMetadataFromServer.json
    |  |
    |  + InstalledExtension1
    |  |
    .  .
    |  |
    |  + InstalledExtensionN
    |
    |
    + Slicer-NNNNN.ini

Note The X and Y in Slicer-X.Y respectively stand for Slicer_MAJOR_VERSION and Slicer_MINOR_VERSION

Extension install and build tree

Extensions installation path can be specified in the Extension settings. See here for more details.

INSTALL_LOCATION
 |
 + lib
 |  |
 |  + Slicer-X.Y
 |      |
 |      + cli-modules
 |      |
 |      + qt-loadable-modules
 |      |
 |      + qt-scripted-modules
 |
 + share
   |
   + Slicer-X.Y
      |
      + cli-modules
      |
      + qt-loadable-modules
      |
      + qt-scripted-modules
      |
      + ExtensionName.s4ext  # Only found in install tree
      

API

  • vtkSlicerApplicationLogic provides some convenient functions allowing to obtain the share directory associated with a given module filepath.
  • Note also that if vtkSlicerConfigure is included the macros Slicer_CLIMODULES_SUBDIR, Slicer_QTLOADABLEMODULES_SUBDIR and Slicer_QTSCRIPTEDMODULES_SUBDIR will be available.
  • Application settings (including the search path for modules/extensions) are stored in a .ini file. The location of the file depends on the OS:
    • Linux + macOS: ~/.config/www.na-mic.org/Slicer.ini
    • Windows: C:\Users\USERNAME\AppData\Roaming\NA-MIC\Slicer.ini