OTB
9.0.0
Orfeo Toolbox
|
#include <otbWrapperListViewParameter.h>
Classes | |
struct | ListViewChoice |
Public Types | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::SmartPointer< Self > | Pointer |
typedef ListViewParameter | 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 | ClearChoices () |
void | ClearValue () override |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
void | FromString (const std::string &value) override |
void | FromStringList (const std::vector< std::string > &values) override |
std::string | GetChoiceKey (int i) const |
std::vector< std::string > | GetChoiceKeys () |
std::string | GetChoiceName (int i) |
std::vector< std::string > | GetChoiceNames () |
virtual const char * | GetNameOfClass () const |
unsigned int | GetNbChoices (void) |
std::vector< int > | GetSelectedItems () |
std::vector< std::string > | GetSelectedKeys () |
std::vector< std::string > | GetSelectedNames () const |
virtual bool | GetSingleSelection () |
ParameterType | GetType () const override |
virtual unsigned int | GetValue () const |
bool | HasValue () const override |
void | SetSelectedItems (std::vector< int > selectedItems) |
void | SetSelectedItems (std::vector< std::string > selectedItems) |
void | SetSelectedItemsByKeys () |
void | SetSelectedItemsByNames () |
void | SetSelectedKeys (std::vector< std::string > selectedKeys) |
void | SetSelectedNames (std::vector< std::string > selectedNames) |
virtual void | SetSingleSelection (bool _arg) |
virtual void | SetValue (std::string choiceKey) |
virtual void | SetValue (unsigned int v) |
virtual void | SingleSelectionOff () |
virtual void | SingleSelectionOn () |
std::string | ToString () const override |
std::vector< std::string > | ToStringList () 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 int | ToInt () const |
virtual float | ToFloat () const |
virtual double | ToDouble () const |
virtual void | FromInt (int) |
virtual void | FromFloat (float) |
virtual void | FromDouble (double) |
Static Public Member Functions | |
static Pointer | New () |
Protected Types | |
typedef std::vector< ListViewChoice > | ChoiceList |
Protected Member Functions | |
ListViewParameter () | |
~ListViewParameter () override | |
Protected Member Functions inherited from otb::Wrapper::Parameter | |
Parameter () | |
Protected Attributes | |
ChoiceList | m_ChoiceList |
unsigned int | m_CurrentChoice |
std::vector< int > | m_SelectedItems |
std::vector< std::string > | m_SelectedKeys |
std::vector< std::string > | m_SelectedNames |
bool | m_SingleSelection |
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 | |
ListViewParameter (const ListViewParameter &)=delete | |
void | operator= (const ListViewParameter &)=delete |
This class represent a ListWidget parameter for the wrapper framework.
The row selected in the ListWidget are stored in a std::vector. The method GetSelectedItems() allow the user to access to this method.
Definition at line 41 of file otbWrapperListViewParameter.h.
|
protected |
Definition at line 206 of file otbWrapperListViewParameter.h.
typedef itk::SmartPointer<const Self> otb::Wrapper::ListViewParameter::ConstPointer |
Definition at line 48 of file otbWrapperListViewParameter.h.
typedef itk::SmartPointer<Self> otb::Wrapper::ListViewParameter::Pointer |
Definition at line 47 of file otbWrapperListViewParameter.h.
Standard class typedef
Definition at line 45 of file otbWrapperListViewParameter.h.
Definition at line 46 of file otbWrapperListViewParameter.h.
|
protected |
Constructor
|
overrideprotected |
Destructor
|
privatedelete |
void otb::Wrapper::ListViewParameter::AddChoice | ( | std::string | choicekey, |
std::string | choiceName | ||
) |
Add a value to the choice
void otb::Wrapper::ListViewParameter::ClearChoices | ( | ) |
|
inlineoverridevirtual |
Name of the parameter
Reimplemented from otb::Wrapper::Parameter.
Definition at line 93 of file otbWrapperListViewParameter.h.
virtual::itk::LightObject::Pointer otb::Wrapper::ListViewParameter::CreateAnother | ( | void | ) | const |
|
inlineoverridevirtual |
Name of the parameter
Reimplemented from otb::Wrapper::Parameter.
Definition at line 174 of file otbWrapperListViewParameter.h.
|
inlineoverridevirtual |
Name of the parameter
Reimplemented from otb::Wrapper::Parameter.
Definition at line 184 of file otbWrapperListViewParameter.h.
std::string otb::Wrapper::ListViewParameter::GetChoiceKey | ( | int | i | ) | const |
Get the key of a specific choice value
std::vector<std::string> otb::Wrapper::ListViewParameter::GetChoiceKeys | ( | ) |
Get the list of the different choice keys
std::string otb::Wrapper::ListViewParameter::GetChoiceName | ( | int | i | ) |
Get the long name of a specific choice value
std::vector<std::string> otb::Wrapper::ListViewParameter::GetChoiceNames | ( | ) |
Get the list of the different choice keys
|
virtual |
RTTI support
Reimplemented from otb::Wrapper::Parameter.
Reimplemented in otb::Wrapper::BandParameter, and otb::Wrapper::FieldParameter.
unsigned int otb::Wrapper::ListViewParameter::GetNbChoices | ( | void | ) |
Get the number of available choice
|
inline |
Definition at line 100 of file otbWrapperListViewParameter.h.
|
inline |
Definition at line 115 of file otbWrapperListViewParameter.h.
|
inline |
Definition at line 107 of file otbWrapperListViewParameter.h.
|
virtual |
|
inlineoverridevirtual |
Get the dynamic type as declared in WrapperTypes.h
Implements otb::Wrapper::Parameter.
Definition at line 157 of file otbWrapperListViewParameter.h.
References otb::Wrapper::ParameterType_ListView.
|
virtual |
Return any value
|
inlineoverridevirtual |
Name of the parameter
Implements otb::Wrapper::Parameter.
Definition at line 87 of file otbWrapperListViewParameter.h.
|
static |
Defining ::New() static method
|
privatedelete |
|
inline |
Definition at line 142 of file otbWrapperListViewParameter.h.
|
inline |
Definition at line 132 of file otbWrapperListViewParameter.h.
|
inline |
Set selected items using a lit of selected keys. OBSOLETE : this method is not needed anymore and does nothing.
Definition at line 122 of file otbWrapperListViewParameter.h.
|
inline |
Set selected items using a lit of selected names. OBSOLETE : this method is not needed anymore and does nothing.
Definition at line 128 of file otbWrapperListViewParameter.h.
void otb::Wrapper::ListViewParameter::SetSelectedKeys | ( | std::vector< std::string > | selectedKeys | ) |
void otb::Wrapper::ListViewParameter::SetSelectedNames | ( | std::vector< std::string > | selectedNames | ) |
|
virtual |
|
virtual |
Set choice value by its key
|
virtual |
Set choice value
|
virtual |
|
virtual |
|
inlineoverridevirtual |
Name of the parameter
Reimplemented from otb::Wrapper::Parameter.
Definition at line 162 of file otbWrapperListViewParameter.h.
|
inlineoverridevirtual |
Name of the parameter
Reimplemented from otb::Wrapper::Parameter.
Definition at line 179 of file otbWrapperListViewParameter.h.
|
protected |
Definition at line 207 of file otbWrapperListViewParameter.h.
|
protected |
Definition at line 208 of file otbWrapperListViewParameter.h.
|
protected |
Definition at line 209 of file otbWrapperListViewParameter.h.
|
protected |
Definition at line 210 of file otbWrapperListViewParameter.h.
|
protected |
Definition at line 211 of file otbWrapperListViewParameter.h.
|
protected |
Definition at line 212 of file otbWrapperListViewParameter.h.