OTB
9.0.0
Orfeo Toolbox
|
#include <otbWrapperParameterGroup.h>
Public Types | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::SmartPointer< Self > | Pointer |
typedef ParameterGroup | 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 paramKey, std::string paramName) |
void | AddParameter (Parameter::Pointer p) |
void | AddParameter (ParameterType type, std::string paramKey, std::string paramName) |
void | Clear () |
void | ClearChoices (std::string paramKey) |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetNameOfClass () const |
unsigned int | GetNumberOfParameters () |
Parameter::Pointer | GetParameterByIndex (unsigned int i, bool follow=true) |
Parameter::Pointer | GetParameterByKey (std::string name, bool follow=true) |
std::vector< std::string > | GetParametersKeys (bool recursive=true) |
std::string | GetParameterTypeAsString (ParameterType paramType) |
ParameterType | GetParameterTypeFromString (const std::string ¶mType) |
std::vector< int > | GetSelectedItems (std::string paramKey) |
ParameterType | GetType () const override |
bool | HasValue () const override |
bool | ReplaceParameter (std::string &key, Parameter::Pointer p) |
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 | 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 () |
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 > &) |
Static Public Member Functions | |
static Pointer | New () |
static Parameter * | ResolveParameter (Parameter *param) |
Protected Types | |
typedef std::vector< Parameter::Pointer > | ParameterListType |
Protected Member Functions | |
ParameterGroup () | |
~ParameterGroup () override | |
Protected Member Functions inherited from otb::Wrapper::Parameter | |
Parameter () | |
Protected Attributes | |
ParameterListType | m_ParameterList |
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 | |
void | operator= (const ParameterGroup &)=delete |
ParameterGroup (const ParameterGroup &)=delete | |
Definition at line 39 of file otbWrapperParameterGroup.h.
typedef itk::SmartPointer<const Self> otb::Wrapper::ParameterGroup::ConstPointer |
Definition at line 45 of file otbWrapperParameterGroup.h.
|
protected |
Definition at line 111 of file otbWrapperParameterGroup.h.
typedef itk::SmartPointer<Self> otb::Wrapper::ParameterGroup::Pointer |
Definition at line 44 of file otbWrapperParameterGroup.h.
Definition at line 42 of file otbWrapperParameterGroup.h.
Definition at line 43 of file otbWrapperParameterGroup.h.
|
protected |
|
overrideprotected |
|
privatedelete |
void otb::Wrapper::ParameterGroup::AddChoice | ( | std::string | paramKey, |
std::string | paramName | ||
) |
Add a new choice value to an existing choice parameter
void otb::Wrapper::ParameterGroup::AddParameter | ( | Parameter::Pointer | p | ) |
void otb::Wrapper::ParameterGroup::AddParameter | ( | ParameterType | type, |
std::string | paramKey, | ||
std::string | paramName | ||
) |
Add a new parameter to the parameter group the parent key of paramKey can be the path to a parameter group or the path to a choice value
|
inline |
Definition at line 75 of file otbWrapperParameterGroup.h.
void otb::Wrapper::ParameterGroup::ClearChoices | ( | std::string | paramKey | ) |
Remove choices made in ListViewParameter widget
virtual::itk::LightObject::Pointer otb::Wrapper::ParameterGroup::CreateAnother | ( | void | ) | const |
|
virtual |
RTTI support
Reimplemented from otb::Wrapper::Parameter.
unsigned int otb::Wrapper::ParameterGroup::GetNumberOfParameters | ( | ) |
Parameter::Pointer otb::Wrapper::ParameterGroup::GetParameterByIndex | ( | unsigned int | i, |
bool | follow = true |
||
) |
Parameter::Pointer otb::Wrapper::ParameterGroup::GetParameterByKey | ( | std::string | name, |
bool | follow = true |
||
) |
std::vector<std::string> otb::Wrapper::ParameterGroup::GetParametersKeys | ( | bool | recursive = true | ) |
std::string otb::Wrapper::ParameterGroup::GetParameterTypeAsString | ( | ParameterType | paramType | ) |
Get the parameter type as string from its ParameterType enum For example if type of parameter is ParameterType_InputImage this function return the string InputImage
ParameterType otb::Wrapper::ParameterGroup::GetParameterTypeFromString | ( | const std::string & | paramType | ) |
std::vector<int> otb::Wrapper::ParameterGroup::GetSelectedItems | ( | std::string | paramKey | ) |
Get the choices made in a ListView Parameter widget
|
inlineoverridevirtual |
Get the dynamic type as declared in WrapperTypes.h
Implements otb::Wrapper::Parameter.
Definition at line 102 of file otbWrapperParameterGroup.h.
References otb::Wrapper::ParameterType_Group.
|
inlineoverridevirtual |
Name of the parameter
Implements otb::Wrapper::Parameter.
Definition at line 93 of file otbWrapperParameterGroup.h.
|
static |
|
privatedelete |
bool otb::Wrapper::ParameterGroup::ReplaceParameter | ( | std::string & | key, |
Parameter::Pointer | p | ||
) |
Method to substitute a parameter in a group. The function returns true on success, false on failure
Resolve potential proxy parameters by following their targets until a non-proxy parameter. It will detect cycles and report an error
|
protected |
Definition at line 112 of file otbWrapperParameterGroup.h.