Single parameter to a module, like a threshold of a filter.
More...
#include <Libs/CommandLineModules/Core/ctkCmdLineModuleParameter.h>
Single parameter to a module, like a threshold of a filter.
ctkCmdLineModuleParameter describes a single parameter for a module. Information on the parameter type, name, flag, label, description, channel, index, default, and constraints can be retrieved.
Definition at line 44 of file ctkCmdLineModuleParameter.h.
ctkCmdLineModuleParameter::~ctkCmdLineModuleParameter |
( |
| ) |
|
QString ctkCmdLineModuleParameter::channel |
( |
| ) |
const |
- Returns
- The string "input" for input parameters and "output" for output parameters.
bool ctkCmdLineModuleParameter::constraints |
( |
| ) |
const |
- Returns
true
if this parameter imposes constraints on the set of allowed values.
QString ctkCmdLineModuleParameter::coordinateSystem |
( |
| ) |
const |
- Returns
- The coordinate system (either "lps", "ras", oder "ijk") for the "point" or "region" parameter tags.
QString ctkCmdLineModuleParameter::defaultValue |
( |
| ) |
const |
- Returns
- The default value.
QStringList ctkCmdLineModuleParameter::deprecatedFlagAliases |
( |
| ) |
const |
- Returns
- A (possibly empty) list of deprecated flag aliases.
QString ctkCmdLineModuleParameter::deprecatedFlagAliasesAsString |
( |
| ) |
const |
- Returns
- A (possibly empty) comma separated string of deprecated flag aliases.
QStringList ctkCmdLineModuleParameter::deprecatedLongFlagAliases |
( |
| ) |
const |
- Returns
- A (possibly empty) list of deprectated long flag aliases.
QString ctkCmdLineModuleParameter::deprecatedLongFlagAliasesAsString |
( |
| ) |
const |
- Returns
- A (possibly empty) comma separated string of deprecated long flag aliases.
QString ctkCmdLineModuleParameter::description |
( |
| ) |
const |
- Returns
- A longer description of this parameter.
QStringList ctkCmdLineModuleParameter::elements |
( |
| ) |
const |
- Returns
- The list of valid elements for enumeration parameters (e.g. "string-enumeration").
QStringList ctkCmdLineModuleParameter::fileExtensions |
( |
| ) |
const |
QString ctkCmdLineModuleParameter::fileExtensionsAsString |
( |
| ) |
const |
- Returns
- A (possibly empty) comma separated list of file extensions (e.g. "*.nrrd,*.mhd") for the "file", "image", or "geometry" parameter tags.
QString ctkCmdLineModuleParameter::flag |
( |
| ) |
const |
- Returns
- The (possibly empty) flag for this parameter.
- See also
- index()
QStringList ctkCmdLineModuleParameter::flagAliases |
( |
| ) |
const |
- Returns
- A (possibly empty) list of flag aliases.
QString ctkCmdLineModuleParameter::flagAliasesAsString |
( |
| ) |
const |
- Returns
- A (possibly empty) comma separated string of flag aliases.
bool ctkCmdLineModuleParameter::hidden |
( |
| ) |
const |
- Returns
true
if the parameter is declared hidden, false
otherwise.
int ctkCmdLineModuleParameter::index |
( |
| ) |
const |
- Returns
- The parameter index or
-1
if this is not an indexed parameter.
- See also
- flag()
-
longFlag()
bool ctkCmdLineModuleParameter::isFlagParameter |
( |
| ) |
const |
- Returns
true
if the parameter has a flag (long or short), false
otherwise.
bool ctkCmdLineModuleParameter::isIndexParameter |
( |
| ) |
const |
- Returns
true
if the parameter has an index, false
otherwise.
bool ctkCmdLineModuleParameter::isReturnParameter |
( |
| ) |
const |
Simple return types are parameters on the output channel with no flags and with a dummy index of 1000.
- Returns
true
if the parameter is a simple return type, false
otherwise.
QString ctkCmdLineModuleParameter::label |
( |
| ) |
const |
- Returns
- The human-readable name of this parameter.
QString ctkCmdLineModuleParameter::longFlag |
( |
| ) |
const |
- Returns
- The (possibly empty) long flag for this parameter.
QStringList ctkCmdLineModuleParameter::longFlagAliases |
( |
| ) |
const |
- Returns
- A (possibly empty) list of long flag aliases.
QString ctkCmdLineModuleParameter::longFlagAliasesAsString |
( |
| ) |
const |
- Returns
- A (possibly empty) comma separated string of aliases for the long flag.
QString ctkCmdLineModuleParameter::maximum |
( |
| ) |
const |
- Returns
- The maximum value constraint.
QString ctkCmdLineModuleParameter::minimum |
( |
| ) |
const |
- Returns
- The minimum value constraint.
bool ctkCmdLineModuleParameter::multiple |
( |
| ) |
const |
- Returns
true
if this parameter can appear multiple time in the argument list, false
otherwise.
QString ctkCmdLineModuleParameter::name |
( |
| ) |
const |
- Returns
- The parameter name.
QString ctkCmdLineModuleParameter::step |
( |
| ) |
const |
- Returns
- The value step size constraint.
QString ctkCmdLineModuleParameter::tag |
( |
| ) |
const |
- Returns
- The tag name, e.g. "integer" or "image".
QString ctkCmdLineModuleParameter::type |
( |
| ) |
const |
- Returns
- The type of the parameter, e.g. "scalar" or "vector" for image parameters.
friend struct ctkCmdLineModuleParameterParser |
|
friend |
friend class ctkCmdLineModuleXmlParser |
|
friend |
The documentation for this class was generated from the following file: