OTB
9.0.0
Orfeo Toolbox
|
#include <otbWrapperChoiceParameter.h>
Classes | |
struct | Choice |
Public Types | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::SmartPointer< Self > | Pointer |
typedef ChoiceParameter | Self |
typedef Parameter | Superclass |
Public Types inherited from otb::Wrapper::Parameter | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::SmartPointer< Self > | Pointer |
typedef Parameter | Self |
typedef itk::Object | Superclass |
Public Member Functions | |
void | AddChoice (std::string choicekey, std::string choiceName) |
void | ClearValue () override |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
void | FromInt (int value) override |
void | FromString (const std::string &value) override |
std::string | GetChoiceKey (int i) const |
std::vector< std::string > | GetChoiceKeys () |
std::string | GetChoiceName (int i) |
std::vector< std::string > | GetChoiceNames () |
ParameterGroup::Pointer | GetChoiceParameterGroupByIndex (int i) |
ParameterGroup::Pointer | GetChoiceParameterGroupByKey (std::string choiceKey) |
virtual const char * | GetNameOfClass () const |
unsigned int | GetNbChoices (void) |
std::vector< std::string > | GetParametersKeys () |
ParameterType | GetType () const override |
virtual unsigned int | GetValue () const |
bool | HasValue () const override |
virtual void | SetValue (std::string choiceKey) |
virtual void | SetValue (unsigned int v) |
int | ToInt () const override |
std::string | ToString () const override |
Public Member Functions inherited from otb::Wrapper::Parameter | |
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 | HasUserValue () const |
virtual void | SetUserValue (bool isUserValue) |
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 () |
void | TypeError (const std::string &target_type) const |
virtual float | ToFloat () const |
virtual double | ToDouble () const |
virtual std::vector< std::string > | ToStringList () const |
virtual void | FromFloat (float) |
virtual void | FromDouble (double) |
virtual void | FromStringList (const std::vector< std::string > &) |
Static Public Member Functions | |
static Pointer | New () |
Protected Types | |
typedef std::vector< Choice > | ChoiceList |
Protected Member Functions | |
ChoiceParameter () | |
~ChoiceParameter () override | |
Protected Member Functions inherited from otb::Wrapper::Parameter | |
Parameter () | |
Protected Attributes | |
ChoiceList | m_ChoiceList |
unsigned int | m_CurrentChoice |
Protected Attributes inherited from otb::Wrapper::Parameter | |
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 |
Private Member Functions | |
ChoiceParameter (const ChoiceParameter &)=delete | |
void | operator= (const ChoiceParameter &)=delete |
This class represent a multiple choice parameter for the wrapper framework.
Represents an enumerated parameter. The different values of the enumeration can be associated with a parameter
Definition at line 40 of file otbWrapperChoiceParameter.h.
|
protected |
Definition at line 120 of file otbWrapperChoiceParameter.h.
typedef itk::SmartPointer<const Self> otb::Wrapper::ChoiceParameter::ConstPointer |
Definition at line 47 of file otbWrapperChoiceParameter.h.
typedef itk::SmartPointer<Self> otb::Wrapper::ChoiceParameter::Pointer |
Definition at line 46 of file otbWrapperChoiceParameter.h.
Standard class typedef
Definition at line 44 of file otbWrapperChoiceParameter.h.
Definition at line 45 of file otbWrapperChoiceParameter.h.
|
protected |
Constructor
|
overrideprotected |
Destructor
|
privatedelete |
void otb::Wrapper::ChoiceParameter::AddChoice | ( | std::string | choicekey, |
std::string | choiceName | ||
) |
Add a value to the choice
|
overridevirtual |
Name of the parameter
Reimplemented from otb::Wrapper::Parameter.
virtual::itk::LightObject::Pointer otb::Wrapper::ChoiceParameter::CreateAnother | ( | void | ) | const |
|
overridevirtual |
Name of the parameter
Reimplemented from otb::Wrapper::Parameter.
|
overridevirtual |
Name of the parameter
Reimplemented from otb::Wrapper::Parameter.
std::string otb::Wrapper::ChoiceParameter::GetChoiceKey | ( | int | i | ) | const |
Get the key of a specific choice value
std::vector<std::string> otb::Wrapper::ChoiceParameter::GetChoiceKeys | ( | ) |
Get the list of the different choice keys
std::string otb::Wrapper::ChoiceParameter::GetChoiceName | ( | int | i | ) |
Get the long name of a specific choice value
std::vector<std::string> otb::Wrapper::ChoiceParameter::GetChoiceNames | ( | ) |
Get the list of the different choice keys
ParameterGroup::Pointer otb::Wrapper::ChoiceParameter::GetChoiceParameterGroupByIndex | ( | int | i | ) |
Get the ParameterGroup associated to a choice value
ParameterGroup::Pointer otb::Wrapper::ChoiceParameter::GetChoiceParameterGroupByKey | ( | std::string | choiceKey | ) |
Get the ParameterGroup associated to a choice value
|
virtual |
RTTI support
Reimplemented from otb::Wrapper::Parameter.
unsigned int otb::Wrapper::ChoiceParameter::GetNbChoices | ( | void | ) |
Get the number of available choice
std::vector<std::string> otb::Wrapper::ChoiceParameter::GetParametersKeys | ( | ) |
Get all parameters that are child of this choice parameter
|
overridevirtual |
Get the dynamic type as declared in WrapperTypes.h
Implements otb::Wrapper::Parameter.
|
virtual |
Return any value
|
overridevirtual |
Name of the parameter
Implements otb::Wrapper::Parameter.
|
static |
Defining ::New() static method
|
privatedelete |
|
virtual |
Set choice value by its key
|
virtual |
Set choice value
|
overridevirtual |
Parameter conversion functions. They are used by WrapperApplication to provide functions like SetParameterInt, GetParameterString, etc.
Reimplemented from otb::Wrapper::Parameter.
|
overridevirtual |
Name of the parameter
Reimplemented from otb::Wrapper::Parameter.
|
protected |
Definition at line 121 of file otbWrapperChoiceParameter.h.
|
protected |
Definition at line 123 of file otbWrapperChoiceParameter.h.