Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow Class Reference

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

#include <GNEVehicleTypeDialog.h>

Inheritance diagram for GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow:
[legend]
Collaboration diagram for GNEVehicleTypeDialog::VTypeAttributes::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
std::string getParametersStr () const
 get parameters as string
std::vector< std::pair< std::string, std::string > > getParametersVectorStr () const
 get parameters as vector of strings
void openColorDialog ()
 open color dialog
void openImageFileDialog ()
 open image file dialog
void openOSGFileDialog ()
 open OSG file dialog
void setParameters (const std::vector< std::pair< std::string, std::string > > &parameters)
 set parameters
void setVariable ()
 set Variable in VehicleType (using default value obtained from GNEAttributeCarrier)
void setVariable (const std::string &defaultValue)
 set Variable in VehicleType (Specifying default value)
void updateValue ()
 update value of Vehicle Type (using default value obtained from GNEAttributeCarrier)
void updateValue (const std::string &defaultValue)
 update value of Vehicle Type (Specifying default value)
 VTypeAttributeRow (VTypeAttributes *VTypeAttributesParent, FXVerticalFrame *verticalFrame, const SumoXMLAttr attr, const RowAttrType rowAttrType, const std::vector< std::string > &values={})
 constructor

Private Member Functions

std::string filterAttributeName (const SumoXMLAttr attr) const
 filter attribute name

Private Attributes

const SumoXMLAttr myAttr
 edited attribute
FXButton * myButton
 button
MFXComboBoxIconmyComboBox
 ComboBox for attributes with limited values.
Parameterised::Map myParameters
 pointer to current parameter map
const RowAttrType myRowAttrType
 RowAttrType.
FXTextField * myTextField
 text field
VTypeAttributesmyVTypeAttributesParent
 pointer to VTypeAttributeParameters parent

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()

Member Function Documentation

◆ filterAttributeName()

◆ getButton()

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

get button

Definition at line 665 of file GNEVehicleTypeDialog.cpp.

References myButton.

◆ getParametersStr()

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

get parameters as string

Definition at line 749 of file GNEVehicleTypeDialog.cpp.

References myTextField.

◆ getParametersVectorStr()

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

get parameters as vector of strings

Definition at line 755 of file GNEVehicleTypeDialog.cpp.

References myParameters.

◆ openColorDialog()

void GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::openColorDialog ( )

◆ openImageFileDialog()

void GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::openImageFileDialog ( )

◆ openOSGFileDialog()

void GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::openOSGFileDialog ( )

◆ setParameters()

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

set parameters

Definition at line 766 of file GNEVehicleTypeDialog.cpp.

References myParameters, and myTextField.

◆ setVariable() [1/2]

void GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::setVariable ( )

◆ setVariable() [2/2]

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

set Variable in VehicleType (Specifying default value)

Definition at line 545 of file GNEVehicleTypeDialog.cpp.

References GUIDesignTextColorRed, myAttr, myComboBox, myTextField, myVTypeAttributesParent, and updateValue().

◆ updateValue() [1/2]

void GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::updateValue ( )

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

Definition at line 577 of file GNEVehicleTypeDialog.cpp.

References StringTokenizer::getVector(), GNE_ATTR_PARAMETERS, GUIDesignTextColorBlack, StringTokenizer::hasNext(), myAttr, myComboBox, myParameters, myRowAttrType, myTextField, myVTypeAttributesParent, StringTokenizer::next(), ROWTYPE_COLOR, and ROWTYPE_COMBOBOX.

Referenced by setVariable(), and setVariable().

Here is the caller graph for this function:

◆ updateValue() [2/2]

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

update value of Vehicle Type (Specifying default value)

Definition at line 635 of file GNEVehicleTypeDialog.cpp.

References GUIDesignTextColorBlack, myAttr, myComboBox, myTextField, and myVTypeAttributesParent.

Field Documentation

◆ myAttr

const SumoXMLAttr GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::myAttr
private

◆ myButton

FXButton* GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::myButton
private

button

Definition at line 166 of file GNEVehicleTypeDialog.h.

Referenced by getButton(), and VTypeAttributeRow().

◆ myComboBox

MFXComboBoxIcon* GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::myComboBox
private

ComboBox for attributes with limited values.

Definition at line 172 of file GNEVehicleTypeDialog.h.

Referenced by setVariable(), setVariable(), updateValue(), updateValue(), and VTypeAttributeRow().

◆ myParameters

Parameterised::Map GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::myParameters
private

pointer to current parameter map

Definition at line 175 of file GNEVehicleTypeDialog.h.

Referenced by getParametersVectorStr(), setParameters(), and updateValue().

◆ myRowAttrType

const RowAttrType GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::myRowAttrType
private

RowAttrType.

Definition at line 163 of file GNEVehicleTypeDialog.h.

Referenced by setVariable(), updateValue(), and VTypeAttributeRow().

◆ myTextField

FXTextField* GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::myTextField
private

◆ myVTypeAttributesParent

VTypeAttributes* GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::myVTypeAttributesParent
private

pointer to VTypeAttributeParameters parent

Definition at line 157 of file GNEVehicleTypeDialog.h.

Referenced by openColorDialog(), openImageFileDialog(), openOSGFileDialog(), setVariable(), setVariable(), updateValue(), updateValue(), and VTypeAttributeRow().


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