Documentation/4.6/Modules/ExtensionWizard

From Slicer Wiki
Jump to: navigation, search
Home < Documentation < 4.6 < Modules < ExtensionWizard


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


See documentation here instead: http://www.slicer.org/wiki/Documentation/Nightly/Developers/ExtensionWizard


Introduction and Acknowledgements

This work is part of the National Alliance for Medical Image Computing (NA-MIC), funded by the National Institutes of Health through the NIH Roadmap for Medical Research, Grant U54 EB005149. Information on NA-MIC can be obtained from the NA-MIC website.
Author: Matthew Woehlke, Kitware
Contact: Matthew Woehlke, <email>matthew.woehlke@kitware.com</email>

Kitware, Inc.  
National Alliance for Medical Image Computing (NA-MIC)  

Module Description

The Extension Wizard modules provides a graphical interface within Slicer to aid in the creation of Slicer extensions.

Use Cases

N/A

Tutorials

N/A

Panels and their use

Extension Tools

  • Create Extension: Create a new extension from a specified template, given a name and destination.
  • Select Extension: Choose an existing extension to edit.

When creating a template, the newly created template is automatically selected for editing. When selecting an extension, if the extension provides scripted modules that are not already loaded, an option to load such modules is provided.

Extension Editor

  • Name: The name of the currently selected extension.
  • Location: The location (on disk) of the currently selected extension.
  • Repository: If available, the upstream URL of the repository hosting the extension.
  • Contents: A tree view showing the file contents of the currently selected extension.
  • Add Module to Extension: Create a new module from a specified template, given a name, and add it to the selected extension.
  • Edit Extension Metadata: Edit metadata associated with the extension (such as the name, contributors, etc.).

Settings

The Extension Wizard module provides a settings page, which is accessible via Slicer's Application Settings.

  • Built-in template path: If found, displays the location of the built-in templates.
  • Additional template paths: A list of additional locations containing categorized templates.
  • Additional template paths for <category>: A list of additional locations containing templates for a particular category (e.g. extensions, modules).

A "template" is a directory containing a collection of files which comprise that template. Additional paths should point to directories which contain such template directories, not the directory of the template itself. A categorized template directory should have directories for one or more categories, which in turn contain templates.

The built-in templates provide an example of the correct layout for a categorized template directory. (Each category directory is in turn an example of a template collection for that category.)

Similar Modules

N/A

References

N/A

Information for Developers


The Extension Wizard module makes extensive use of the SlicerWizard Python package, which is also used by the CLI Extension Wizard.