Difference between revisions of "Modules:ExecutionModelTour-Documentation-3.6"

From Slicer Wiki
Jump to: navigation, search
Line 53: Line 53:
 
Usage:
 
Usage:
 
<pre>
 
<pre>
./ExecutionModelTour  [--processinformationaddress <std::string>]
+
USAGE:
                      [--xml] [--echo] [--region
+
 
                      <std::vector<std::vector<float> >>] ...  
+
  lib/Slicer3/Plugins/ExecutionModelTour  [--returnparameterfile
                      [--transform2 <std::string>] [--transform1
+
                                        <std::string>]
                      <std::string>] [--image2 <std::string>] [--image1
+
                                        [--processinformationaddress
                      <std::string>] [--directory1 <std::string>]
+
                                        <std::string>] [--xml] [--echo]
                      [--file1 <std::string>] [--boolean3] [--boolean1]
+
                                        [--outputFA <std::string>]
                      [-e <Ron|Eric|Bill|Ross|Steve|Will>]
+
                                        [--inputFA <std::string>] [--region
                      [--string_vector <std::vector<std::string>>] [-f
+
                                        <std::vector<std::vector<float> >>]
                      <std::vector<float>>] [-d <double>] [-i <int>]
+
                                        ... [--seed
                      [--] [--version] [-h] <std::string> <std::string>
+
                                        <std::vector<std::vector<float> >>]
 +
                                        ...  [--transform2 <std::string>]
 +
                                        [--transform1 <std::string>]
 +
                                        [--image2 <std::string>] [--image1
 +
                                        <std::string>] [--directory1
 +
                                        <std::string>] [--files
 +
                                        <std::vector<std::string>>] ...
 +
                                        [--file1 <std::string>]
 +
                                        [--boolean3] [--boolean2]
 +
                                        [--boolean1] [-e <Ron|Eric|Bill
 +
                                        |Ross|Steve|Will>] [--string_vector
 +
                                        <std::vector<std::string>>] [-f
 +
                                        <std::vector<float>>] [-d <double>]
 +
                                        [-i <int>] [--] [--version] [-h]
 +
                                        <std::string> <std::string>
  
  
 
Where:  
 
Where:  
  
--processinformationaddress <std::string>
+
  --returnparameterfile <std::string>
  Address of a structure to store process information (progress, abort,
+
    Filename in which to write simple return parameters (int, float,
  etc.). (default: 0)
+
    int-vector, etc.) as opposed to bulk return parameters (image,
 +
    geometry, transform, measurement, table).
 +
 
 +
  --processinformationaddress <std::string>
 +
    Address of a structure to store process information (progress, abort,
 +
    etc.). (default: 0)
 +
 
 +
  --xml
 +
    Produce xml description of command line arguments (default: 0)
 +
 
 +
  --echo
 +
    Echo the command line arguments (default: 0)
 +
 
 +
  --outputFA <std::string>
 +
    Array of processed (output) FA values
 +
 
 +
  --inputFA <std::string>
 +
    Array of FA values to process
 +
 
 +
  --region <std::vector<std::vector<float> >>  (accepted multiple times)
 +
    List of regions to process
  
--xml
+
  --seed <std::vector<std::vector<float> >>  (accepted multiple times)
  Produce xml description of command line arguments (default: 0)
+
    Lists of points in the CLI correspond to slicer fiducial lists
 +
    (default: None)
  
--echo
+
  --transform2 <std::string>
  Echo the command line arguments (default: 0)
+
    An output transform
  
--region <std::vector<std::vector<float> >> (accepted multiple times)
+
  --transform1 <std::string>
  List of regions to process
+
    An input transform
  
--transform2 <std::string>
+
  --image2 <std::string>
  An output transform
+
    An output image
  
--transform1 <std::string>
+
  --image1 <std::string>
  An input transform
+
    An input image
  
--image2 <std::string>
+
  --directory1 <std::string>
  An output image
+
    An input directory. If no default is specified, the current directory
 +
    is used,
  
--image1 <std::string>
+
  --files <std::vector<std::string>>  (accepted multiple times)
  An input image
+
    Multiple input files
  
--directory1 <std::string>
+
  --file1 <std::string>
  An input directory. If no default is specified, the current directory
+
    An input file
  is used,
 
  
--file1 <std::string>
+
  --boolean3
  An input file
+
    A boolean with no default, should be defaulting to false
  
--boolean3
+
  --boolean2
  A boolean default false (default: 0)
+
    A boolean default false (default: 0)
  
--boolean1
+
  --boolean1
  A boolean default true (default: 0)
+
    A boolean default true (default: 0)
  
-e <Ron|Eric|Bill|Ross|Steve|Will>,  --enumeration <Ron|Eric|Bill|Ross
+
  -e <Ron|Eric|Bill|Ross|Steve|Will>,  --enumeration <Ron|Eric|Bill|Ross
  |Steve|Will>
+
      |Steve|Will>
  An enumeration of strings (default: Bill)
+
    An enumeration of strings (default: Bill)
  
--string_vector <std::vector<std::string>>
+
  --string_vector <std::vector<std::string>>
  A vector of strings (default: foo,bar,foobar)
+
    A vector of strings (default: foo,bar,foobar)
  
-f <std::vector<float>>,  -- <std::vector<float>>
+
  -f <std::vector<float>>,  -- <std::vector<float>>
  A vector of floats (default: 1.3,2,-14)
+
    A vector of floats (default: 1.3,2,-14)
  
-d <double>,  --double <double>
+
  -d <double>,  --double <double>
  A double with constraints (default: 30)
+
    A double with constraints (default: 30)
  
-i <int>,  --integer <int>
+
  -i <int>,  --integer <int>
  An integer without constraints (default: 30)
+
    An integer without constraints (default: 30)
  
--,  --ignore_rest
+
  --,  --ignore_rest
  Ignores the rest of the labeled arguments following this flag.
+
    Ignores the rest of the labeled arguments following this flag.
  
--version
+
  --version
  Displays version information and exits.
+
    Displays version information and exits.
  
-h,  --help
+
  -h,  --help
  Displays usage information and exits.
+
    Displays usage information and exits.
  
<std::string>
+
  <std::string>
  (required)  First index argument is an image
+
    (required)  First index argument is an image
  
<std::string>
+
  <std::string>
  (required)  Second index argument is an image
+
    (required)  Second index argument is an image
  
  
Description: Shows one of each type of parameter.
+
  Description: Shows one of each type of parameter.
  
Author(s): Daniel Blezek, Bill Lorensen
+
  Author(s): Daniel Blezek, Bill Lorensen
  
Acknowledgements: This work is part of the National Alliance for Medical
+
  Acknowledgements: This work is part of the National Alliance for Medical
Image Computing (NAMIC), funded by the National Institutes of Health
+
  Image Computing (NAMIC), funded by the National Institutes of Health
through the NIH Roadmap for Medical Research, Grant U54 EB005149.
+
  through the NIH Roadmap for Medical Research, Grant U54 EB005149.
  
 
</pre>
 
</pre>

Revision as of 19:37, 29 April 2010

Home < Modules:ExecutionModelTour-Documentation-3.6

Return to Slicer 3.6 Documentation


Module Name

Execution Model Tour

Example user interface generated by a Command Line Module

General Information

Module Type & Category

Type: CLI

Category: Demonstration

Authors, Collaborators & Contact

  • Author1: Bill Lorensen
  • Author2: Dan Blezek
  • Contact: bill.lorensen at gmail.com

Module Description

This module simply illustrates each type of parameter available through a Slicer Command Line Module. The parameters are described in an XML document and the user interface is constructed on the fly within Slicer.

Usage

This module is only intended to be used to demonstrate the types of parameters available and the user interface that will be generated for each parameter type.

Examples, Use Cases & Tutorials

  • The Slicer Execution Model is documented here

Development

As new parameters are added to the Execution Model, we typically add a demonstration of that parameter type in this module.

Known bugs

Follow this link to the Slicer3 bug tracker.


Usability issues

Follow this link to the Slicer3 bug tracker. Please select the usability issue category when browsing or contributing.

Source code & documentation

Source Code: ExecutionModelTour.cxx

XML Description: ExecutionModelTour.xml

Usage:

USAGE: 

   lib/Slicer3/Plugins/ExecutionModelTour  [--returnparameterfile
                                        <std::string>]
                                        [--processinformationaddress
                                        <std::string>] [--xml] [--echo]
                                        [--outputFA <std::string>]
                                        [--inputFA <std::string>] [--region
                                        <std::vector<std::vector<float> >>]
                                        ...  [--seed
                                        <std::vector<std::vector<float> >>]
                                        ...  [--transform2 <std::string>]
                                        [--transform1 <std::string>]
                                        [--image2 <std::string>] [--image1
                                        <std::string>] [--directory1
                                        <std::string>] [--files
                                        <std::vector<std::string>>] ... 
                                        [--file1 <std::string>]
                                        [--boolean3] [--boolean2]
                                        [--boolean1] [-e <Ron|Eric|Bill
                                        |Ross|Steve|Will>] [--string_vector
                                        <std::vector<std::string>>] [-f
                                        <std::vector<float>>] [-d <double>]
                                        [-i <int>] [--] [--version] [-h]
                                        <std::string> <std::string>


Where: 

   --returnparameterfile <std::string>
     Filename in which to write simple return parameters (int, float,
     int-vector, etc.) as opposed to bulk return parameters (image,
     geometry, transform, measurement, table).

   --processinformationaddress <std::string>
     Address of a structure to store process information (progress, abort,
     etc.). (default: 0)

   --xml
     Produce xml description of command line arguments (default: 0)

   --echo
     Echo the command line arguments (default: 0)

   --outputFA <std::string>
     Array of processed (output) FA values

   --inputFA <std::string>
     Array of FA values to process

   --region <std::vector<std::vector<float> >>  (accepted multiple times)
     List of regions to process

   --seed <std::vector<std::vector<float> >>  (accepted multiple times)
     Lists of points in the CLI correspond to slicer fiducial lists
     (default: None)

   --transform2 <std::string>
     An output transform

   --transform1 <std::string>
     An input transform

   --image2 <std::string>
     An output image

   --image1 <std::string>
     An input image

   --directory1 <std::string>
     An input directory. If no default is specified, the current directory
     is used,

   --files <std::vector<std::string>>  (accepted multiple times)
     Multiple input files

   --file1 <std::string>
     An input file

   --boolean3
     A boolean with no default, should be defaulting to false

   --boolean2
     A boolean default false (default: 0)

   --boolean1
     A boolean default true (default: 0)

   -e <Ron|Eric|Bill|Ross|Steve|Will>,  --enumeration <Ron|Eric|Bill|Ross
      |Steve|Will>
     An enumeration of strings (default: Bill)

   --string_vector <std::vector<std::string>>
     A vector of strings (default: foo,bar,foobar)

   -f <std::vector<float>>,  -- <std::vector<float>>
     A vector of floats (default: 1.3,2,-14)

   -d <double>,  --double <double>
     A double with constraints (default: 30)

   -i <int>,  --integer <int>
     An integer without constraints (default: 30)

   --,  --ignore_rest
     Ignores the rest of the labeled arguments following this flag.

   --version
     Displays version information and exits.

   -h,  --help
     Displays usage information and exits.

   <std::string>
     (required)  First index argument is an image

   <std::string>
     (required)  Second index argument is an image


   Description: Shows one of each type of parameter.

   Author(s): Daniel Blezek, Bill Lorensen

   Acknowledgements: This work is part of the National Alliance for Medical
   Image Computing (NAMIC), funded by the National Institutes of Health
   through the NIH Roadmap for Medical Research, Grant U54 EB005149.

More Information

Acknowledgment

This work is part of the National Alliance for Medical Image Computing (NAMIC), funded by the National Institutes of Health through the NIH Roadmap for Medical Research, Grant U54 EB005149. Information on the National Centers for Biomedical Computing can be obtained from National Centers for Biomedical Computing.

References