Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 2 KB

File metadata and controls

53 lines (33 loc) · 2 KB

Back to Projects List

Parameter Node Wrapper

Key Investigators

  • Connor Bowley (Kitware, USA)
  • Sam Horvath (Kitware, USA)
  • David Allemang (Kitware, USA)

Project Description

Best practice when writing new ScriptedLoadableModules is to use a "parameter node" to store state (most commonly the state of the GUI). However, the existing parameter node system was in essence a string to string map (which some exceptions regarding storing MRML node references), while many times the state should not logically be a string.

A wrapper system was created, the parameterNodeWrapper, to allow better typed access to parameter nodes. This system allows using many Python built-ins by default, and is extensible for custom classes.

Because the parameterNodeWrapper uses type annotations, automatic connections can also be made to GUI components.

Objective

  1. Work on automatic GUI creation from a parameterNodeWrapper.
  2. Create examples/templates/documentation on how to use the parameterNodeWrapper functionality.
  3. Determine new features.
  4. Implement new features as able.

Approach and Plan

  1. Describe specific steps of what you plan to do to achieve the above described objectives.
  2. ...
  3. ...

Progress and Next Steps

  1. Describe specific steps you have actually done.
  2. ...
  3. ...

Illustrations

Background and References