OTB
9.0.0
Orfeo Toolbox
|
#include <otbWrapperParameter.h>
Public Types | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::SmartPointer< Self > | Pointer |
typedef Parameter | Self |
typedef itk::Object | Superclass |
Public Member Functions | |
virtual const char * | GetNameOfClass () const |
std::string | m_Name |
std::string | m_Description |
std::string | m_Key |
bool | m_Mandatory |
bool | m_Active |
bool | m_UserValue |
UserLevel | m_UserLevel |
Role | m_Role |
itk::WeakPointer< Parameter > | m_Root |
std::vector< Parameter::Pointer > | m_ChildrenList |
virtual void | SetName (const std::string &) |
virtual const char * | GetName () const |
virtual void | SetDescription (const std::string &) |
virtual const std::string & | GetDescription () const |
virtual void | SetKey (const std::string &) |
virtual const char * | GetKey () const |
virtual void | SetActive (bool flag) |
bool | GetActive (bool recurseParents=false) const |
virtual void | SetMandatory (bool flag) |
virtual bool | GetMandatory () const |
virtual void | MandatoryOn () |
virtual void | MandatoryOff () |
virtual void | SetAutomaticValue (bool flag) |
virtual bool | GetAutomaticValue () const |
void | AutomaticValueOn () |
void | AutomaticValueOff () |
virtual void | SetUserLevel (const UserLevel level) |
virtual UserLevel | GetUserLevel () const |
virtual void | SetRole (const Role role) |
virtual Role | GetRole () const |
virtual void | Reset () |
virtual bool | HasValue () const =0 |
virtual bool | HasUserValue () const |
virtual void | SetUserValue (bool isUserValue) |
virtual void | ClearValue () |
virtual void | SetRoot (const Parameter::Pointer root) |
virtual const Parameter::Pointer | GetRoot () const |
virtual bool | IsRoot () const |
virtual void | AddChild (Parameter::Pointer child) |
virtual std::vector< Parameter::Pointer > | GetChildrenList () |
virtual ParameterType | GetType () const =0 |
void | TypeError (const std::string &target_type) const |
virtual int | ToInt () const |
virtual float | ToFloat () const |
virtual double | ToDouble () const |
virtual std::string | ToString () const |
virtual std::vector< std::string > | ToStringList () const |
virtual void | FromInt (int) |
virtual void | FromFloat (float) |
virtual void | FromDouble (double) |
virtual void | FromString (const std::string &) |
virtual void | FromStringList (const std::vector< std::string > &) |
Parameter () | |
Parameter (const Parameter &)=delete | |
void | operator= (const Parameter &)=delete |
This class represent a parameter for the wrapper framework This class is a high level class representing a parameter for the wrapper framework. It should be subclassed to represent different kinds of parameters.
Definition at line 49 of file otbWrapperParameter.h.
typedef itk::SmartPointer<const Self> otb::Wrapper::Parameter::ConstPointer |
Definition at line 56 of file otbWrapperParameter.h.
typedef itk::SmartPointer<Self> otb::Wrapper::Parameter::Pointer |
Definition at line 55 of file otbWrapperParameter.h.
Standard class typedef
Definition at line 53 of file otbWrapperParameter.h.
typedef itk::Object otb::Wrapper::Parameter::Superclass |
Definition at line 54 of file otbWrapperParameter.h.
|
protected |
Constructor
|
privatedelete |
Name of the parameter
|
virtual |
Add a child of this parameter when the param is a Group or a choice
void otb::Wrapper::Parameter::AutomaticValueOff | ( | ) |
Toggle OFF the parameter AutomaticValue flag
void otb::Wrapper::Parameter::AutomaticValueOn | ( | ) |
Toggle ON the parameter AutomaticValue flag
|
virtual |
Name of the parameter
Reimplemented in otb::Wrapper::InputImageParameter, otb::Wrapper::ListViewParameter, otb::Wrapper::ChoiceParameter, otb::Wrapper::NumericalParameter< T >, otb::Wrapper::NumericalParameter< double >, otb::Wrapper::NumericalParameter< float >, otb::Wrapper::NumericalParameter< int >, otb::Wrapper::NumericalParameter< unsigned int >, otb::Wrapper::InputImageListParameter, otb::Wrapper::InputVectorDataListParameter, otb::Wrapper::InputFilenameParameter, otb::Wrapper::OutputFilenameParameter, otb::Wrapper::StringParameter, otb::Wrapper::ParameterList< T >, otb::Wrapper::ParameterList< InputImageParameter >, otb::Wrapper::ParameterList< StringParameter >, otb::Wrapper::ParameterList< InputVectorDataParameter >, otb::Wrapper::InputVectorDataParameter, and otb::Wrapper::DirectoryParameter.
|
virtual |
Name of the parameter
Reimplemented in otb::Wrapper::DoubleParameter.
|
virtual |
Name of the parameter
Reimplemented in otb::Wrapper::FloatParameter.
|
virtual |
Name of the parameter
Reimplemented in otb::Wrapper::NumericalParameter< T >, otb::Wrapper::NumericalParameter< double >, otb::Wrapper::NumericalParameter< float >, otb::Wrapper::NumericalParameter< int >, otb::Wrapper::NumericalParameter< unsigned int >, otb::Wrapper::ChoiceParameter, and otb::Wrapper::BoolParameter.
|
virtual |
Name of the parameter
Reimplemented in otb::Wrapper::ListViewParameter, otb::Wrapper::NumericalParameter< T >, otb::Wrapper::NumericalParameter< double >, otb::Wrapper::NumericalParameter< float >, otb::Wrapper::NumericalParameter< int >, otb::Wrapper::NumericalParameter< unsigned int >, otb::Wrapper::InputImageParameter, otb::Wrapper::OutputImageParameter, otb::Wrapper::ChoiceParameter, otb::Wrapper::OutputVectorDataParameter, otb::Wrapper::DirectoryParameter, otb::Wrapper::InputFilenameParameter, otb::Wrapper::OutputFilenameParameter, otb::Wrapper::StringParameter, otb::Wrapper::InputVectorDataParameter, and otb::Wrapper::BoolParameter.
|
virtual |
bool otb::Wrapper::Parameter::GetActive | ( | bool | recurseParents = false | ) | const |
Name of the parameter
|
virtual |
Get the parameter AutomaticValue flag
|
virtual |
Get the children pointer list : not const cause we need to alterate the m_Active status and the m_IsCheckbox
|
virtual |
Name of the parameter
|
virtual |
Name of the parameter
|
virtual |
Name of the parameter
|
virtual |
Name of the parameter
|
virtual |
RTTI support
Reimplemented in otb::Wrapper::RadiusParameter, otb::Wrapper::RAMParameter, otb::Wrapper::IntParameter, otb::Wrapper::DoubleParameter, otb::Wrapper::FloatParameter, otb::Wrapper::ParameterList< T >, otb::Wrapper::InputFilenameListParameter, otb::Wrapper::StringListParameter, otb::Wrapper::InputImageParameter, otb::Wrapper::AbstractParameterList, otb::Wrapper::InputImageListParameter, otb::Wrapper::InputVectorDataListParameter, otb::Wrapper::ListViewParameter, otb::Wrapper::OutputImageParameter, otb::Wrapper::ChoiceParameter, otb::Wrapper::OutputVectorDataParameter, otb::Wrapper::ProxyParameter, otb::Wrapper::DirectoryParameter, otb::Wrapper::BandParameter, otb::Wrapper::BoolParameter, otb::Wrapper::FieldParameter, otb::Wrapper::InputVectorDataParameter, otb::Wrapper::InputFilenameParameter, otb::Wrapper::OutputFilenameParameter, otb::Wrapper::StringParameter, and otb::Wrapper::ParameterGroup.
|
virtual |
Get the user access level
|
virtual |
Name of the parameter
|
pure virtual |
Get the dynamic type as declared in WrapperTypes.h
Implemented in otb::Wrapper::RadiusParameter, otb::Wrapper::RAMParameter, otb::Wrapper::IntParameter, otb::Wrapper::DoubleParameter, otb::Wrapper::FloatParameter, otb::Wrapper::ListViewParameter, otb::Wrapper::InputImageParameter, otb::Wrapper::OutputImageParameter, otb::Wrapper::ParameterGroup, otb::Wrapper::ChoiceParameter, otb::Wrapper::InputImageListParameter, otb::Wrapper::InputVectorDataListParameter, otb::Wrapper::StringListParameter, otb::Wrapper::OutputVectorDataParameter, otb::Wrapper::DirectoryParameter, otb::Wrapper::ProxyParameter, otb::Wrapper::InputFilenameParameter, otb::Wrapper::OutputFilenameParameter, otb::Wrapper::StringParameter, otb::Wrapper::InputFilenameListParameter, otb::Wrapper::InputVectorDataParameter, otb::Wrapper::BoolParameter, otb::Wrapper::FieldParameter, and otb::Wrapper::BandParameter.
|
virtual |
Get the user access level
|
virtual |
Name of the parameter
|
pure virtual |
Name of the parameter
Implemented in otb::Wrapper::RadiusParameter, otb::Wrapper::InputImageParameter, otb::Wrapper::OutputImageParameter, otb::Wrapper::ParameterGroup, otb::Wrapper::ChoiceParameter, otb::Wrapper::ListViewParameter, otb::Wrapper::NumericalParameter< T >, otb::Wrapper::ParameterList< T >, otb::Wrapper::ProxyParameter, otb::Wrapper::InputVectorDataParameter, otb::Wrapper::StringParameter, otb::Wrapper::OutputVectorDataParameter, otb::Wrapper::BoolParameter, otb::Wrapper::DirectoryParameter, otb::Wrapper::InputFilenameParameter, and otb::Wrapper::OutputFilenameParameter.
|
virtual |
Is the parameter a root or a child of another param
|
virtual |
Name of the parameter
|
virtual |
Name of the parameter
|
privatedelete |
Name of the parameter
|
virtual |
Reset to the the default value. Default implementation does nothing
Reimplemented in otb::Wrapper::OutputImageParameter, otb::Wrapper::NumericalParameter< T >, otb::Wrapper::NumericalParameter< double >, otb::Wrapper::NumericalParameter< float >, otb::Wrapper::NumericalParameter< int >, and otb::Wrapper::NumericalParameter< unsigned int >.
|
virtual |
Set the parameter Active flag
Reimplemented in otb::Wrapper::DirectoryParameter.
|
virtual |
Set the parameter AutomaticValue flag (which is the opposite of UserValue)
|
virtual |
Set/get the parameter description
|
virtual |
Set/get the parameter key
|
virtual |
Set the parameter Mandatory flag
|
virtual |
Set/get the parameter name
|
virtual |
Set the parameter io type
|
virtual |
Set/Get the root of the current parameter (direct parent)
|
virtual |
Set the user access level
|
virtual |
Name of the parameter
|
virtual |
Name of the parameter
Reimplemented in otb::Wrapper::NumericalParameter< T >.
|
virtual |
Name of the parameter
Reimplemented in otb::Wrapper::NumericalParameter< T >.
|
virtual |
Parameter conversion functions. They are used by WrapperApplication to provide functions like SetParameterInt, GetParameterString, etc.
Reimplemented in otb::Wrapper::NumericalParameter< T >, otb::Wrapper::ChoiceParameter, and otb::Wrapper::BoolParameter.
|
virtual |
Name of the parameter
Reimplemented in otb::Wrapper::ListViewParameter, otb::Wrapper::NumericalParameter< T >, otb::Wrapper::InputImageParameter, otb::Wrapper::ParameterList< T >, otb::Wrapper::OutputImageParameter, otb::Wrapper::ChoiceParameter, otb::Wrapper::OutputVectorDataParameter, otb::Wrapper::DirectoryParameter, otb::Wrapper::InputFilenameParameter, otb::Wrapper::OutputFilenameParameter, otb::Wrapper::StringParameter, otb::Wrapper::InputVectorDataParameter, and otb::Wrapper::BoolParameter.
|
virtual |
Name of the parameter
Reimplemented in otb::Wrapper::ListViewParameter, and otb::Wrapper::ParameterList< T >.
void otb::Wrapper::Parameter::TypeError | ( | const std::string & | target_type | ) | const |
Error raising function to indicate a type conversion error
|
protected |
True if activated (a mandatory parameter is always active)
Definition at line 183 of file otbWrapperParameter.h.
|
protected |
List of children parameters
Definition at line 197 of file otbWrapperParameter.h.
|
protected |
Description of the parameter
Definition at line 174 of file otbWrapperParameter.h.
|
protected |
Key of the parameter
Definition at line 177 of file otbWrapperParameter.h.
|
protected |
True if the parameter is mandatory
Definition at line 180 of file otbWrapperParameter.h.
|
protected |
Name of the parameter
Definition at line 171 of file otbWrapperParameter.h.
|
protected |
Default iotype mode
Definition at line 191 of file otbWrapperParameter.h.
|
protected |
List of parents Parameters
Definition at line 194 of file otbWrapperParameter.h.
|
protected |
Name of the parameter
Definition at line 188 of file otbWrapperParameter.h.
|
protected |
True if the value is set in user mode (otherwise, it is an automatic value)
Definition at line 186 of file otbWrapperParameter.h.