Eclipse SUMO - Simulation of Urban MObility
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow Class Reference

class used for represent rows with Vehicle Type parameters More...

#include <GNEVehicleTypeDialog.h>

Inheritance diagram for GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow:
[legend]
Collaboration diagram for GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow:
[legend]

Public Types

enum  RowAttrType {
  ROWTYPE_STRING , ROWTYPE_COLOR , ROWTYPE_FILENAME , ROWTYPE_COMBOBOX ,
  ROWTYPE_PARAMETERS
}
 Attribute type. More...
 

Public Member Functions

const FXButton * getButton () const
 get button More...
 
std::string getParametersStr () const
 get parameters as string More...
 
std::vector< std::pair< std::string, std::string > > getParametersVectorStr () const
 get parameters as vector of strings More...
 
void openColorDialog ()
 open color dialog More...
 
void openImageFileDialog ()
 open image file dialog More...
 
void openOSGFileDialog ()
 open OSG file dialog More...
 
void setParameters (const std::vector< std::pair< std::string, std::string > > &parameters)
 set parameters More...
 
void setVariable ()
 set Variablen in VehicleType (using default value obtained from GNEAttributeCarrier) More...
 
void setVariable (const std::string &defaultValue)
 set Variablen in VehicleType (Specifying default value) More...
 
void updateValue ()
 update value of Vehicle Type (using default value obtained from GNEAttributeCarrier) More...
 
void updateValue (const std::string &defaultValue)
 update value of Vehicle Type (Specifying default value) More...
 
 VTypeAttributeRow (VTypeAtributes *VTypeAtributesParent, FXVerticalFrame *verticalFrame, const SumoXMLAttr attr, const RowAttrType rowAttrType, const std::vector< std::string > &values={})
 constructor More...
 

Private Member Functions

FXString filterAttributeName (const SumoXMLAttr attr) const
 filter attribute name More...
 

Private Attributes

const SumoXMLAttr myAttr
 edited attribute More...
 
FXButton * myButton
 button More...
 
FXComboBox * myComboBox
 ComboBox for attributes with limited values. More...
 
std::map< std::string, std::string > myParameters
 pointer to current parameter map More...
 
const RowAttrType myRowAttrType
 RowAttrType. More...
 
FXTextField * myTextField
 text field More...
 
VTypeAtributesmyVTypeAtributesParent
 pointer to VTypeAttributeParameters parent More...
 

Detailed Description

class used for represent rows with Vehicle Type parameters

Definition at line 107 of file GNEVehicleTypeDialog.h.

Member Enumeration Documentation

◆ RowAttrType

Attribute type.

Enumerator
ROWTYPE_STRING 
ROWTYPE_COLOR 
ROWTYPE_FILENAME 
ROWTYPE_COMBOBOX 
ROWTYPE_PARAMETERS 

Definition at line 111 of file GNEVehicleTypeDialog.h.

Constructor & Destructor Documentation

◆ VTypeAttributeRow()

GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::VTypeAttributeRow ( VTypeAtributes VTypeAtributesParent,
FXVerticalFrame *  verticalFrame,
const SumoXMLAttr  attr,
const RowAttrType  rowAttrType,
const std::vector< std::string > &  values = {} 
)

Member Function Documentation

◆ filterAttributeName()

◆ getButton()

const FXButton * GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::getButton ( ) const

get button

Definition at line 592 of file GNEVehicleTypeDialog.cpp.

◆ getParametersStr()

std::string GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::getParametersStr ( ) const

get parameters as string

Definition at line 677 of file GNEVehicleTypeDialog.cpp.

◆ getParametersVectorStr()

std::vector< std::pair< std::string, std::string > > GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::getParametersVectorStr ( ) const

get parameters as vector of strings

Definition at line 683 of file GNEVehicleTypeDialog.cpp.

References GNEVehicleTypeDialog::VTypeAtributes::myParameters.

Referenced by GNESingleParametersDialog::GNESingleParametersDialog(), and GNESingleParametersDialog::onCmdReset().

Here is the caller graph for this function:

◆ openColorDialog()

void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::openColorDialog ( )

◆ openImageFileDialog()

void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::openImageFileDialog ( )

open image file dialog

Definition at line 623 of file GNEVehicleTypeDialog.cpp.

References gCurrentFolder, GUIIconSubSys::getIcon(), and VTYPE.

◆ openOSGFileDialog()

void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::openOSGFileDialog ( )

open OSG file dialog

Definition at line 650 of file GNEVehicleTypeDialog.cpp.

References gCurrentFolder, GUIIconSubSys::getIcon(), and VTYPE.

◆ setParameters()

void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::setParameters ( const std::vector< std::pair< std::string, std::string > > &  parameters)

set parameters

Definition at line 694 of file GNEVehicleTypeDialog.cpp.

References GNEVehicleTypeDialog::VTypeAtributes::myParameters.

Referenced by GNESingleParametersDialog::onCmdAccept().

Here is the caller graph for this function:

◆ setVariable() [1/2]

void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::setVariable ( )

set Variablen in VehicleType (using default value obtained from GNEAttributeCarrier)

Definition at line 437 of file GNEVehicleTypeDialog.cpp.

References SUMO_ATTR_COLOR.

◆ setVariable() [2/2]

void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::setVariable ( const std::string &  defaultValue)

set Variablen in VehicleType (Specifying default value)

Definition at line 484 of file GNEVehicleTypeDialog.cpp.

◆ updateValue() [1/2]

void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::updateValue ( )

update value of Vehicle Type (using default value obtained from GNEAttributeCarrier)

Definition at line 516 of file GNEVehicleTypeDialog.cpp.

References StringTokenizer::getVector(), GNE_ATTR_PARAMETERS, StringTokenizer::hasNext(), GNEVehicleTypeDialog::VTypeAtributes::myParameters, and StringTokenizer::next().

Referenced by GNEVehicleTypeDialog::VTypeAtributes::VClassRow::setVariable().

Here is the caller graph for this function:

◆ updateValue() [2/2]

void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::updateValue ( const std::string &  defaultValue)

update value of Vehicle Type (Specifying default value)

Definition at line 568 of file GNEVehicleTypeDialog.cpp.

Field Documentation

◆ myAttr

const SumoXMLAttr GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::myAttr
private

edited attribute

Definition at line 160 of file GNEVehicleTypeDialog.h.

◆ myButton

FXButton* GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::myButton
private

button

Definition at line 166 of file GNEVehicleTypeDialog.h.

Referenced by VTypeAttributeRow().

◆ myComboBox

FXComboBox* GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::myComboBox
private

ComboBox for attributes with limited values.

Definition at line 172 of file GNEVehicleTypeDialog.h.

Referenced by VTypeAttributeRow().

◆ myParameters

std::map<std::string, std::string> GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::myParameters
private

pointer to current parameter map

Definition at line 175 of file GNEVehicleTypeDialog.h.

◆ myRowAttrType

const RowAttrType GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::myRowAttrType
private

RowAttrType.

Definition at line 163 of file GNEVehicleTypeDialog.h.

◆ myTextField

FXTextField* GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::myTextField
private

text field

Definition at line 169 of file GNEVehicleTypeDialog.h.

Referenced by VTypeAttributeRow().

◆ myVTypeAtributesParent

VTypeAtributes* GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::myVTypeAtributesParent
private

pointer to VTypeAttributeParameters parent

Definition at line 157 of file GNEVehicleTypeDialog.h.


The documentation for this class was generated from the following files: