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.

◆ getParametersStr()

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

get parameters as string

Definition at line 749 of file GNEVehicleTypeDialog.cpp.

◆ 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 GNEVehicleTypeDialog::VTypeAttributes::myParameters.

◆ openColorDialog()

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

open color dialog

Definition at line 671 of file GNEVehicleTypeDialog.cpp.

References GNEDialog::ACCEPT, RGBColor::BLACK, GUIDesignTextColorBlack, and toString().

◆ 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 GNEVehicleTypeDialog::VTypeAttributes::myParameters.

◆ setVariable() [1/2]

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

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

Definition at line 498 of file GNEVehicleTypeDialog.cpp.

References GUIDesignTextColorBlack, GUIDesignTextColorRed, and SUMO_ATTR_COLOR.

◆ 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.

◆ 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(), GNEVehicleTypeDialog::VTypeAttributes::myParameters, and StringTokenizer::next().

Referenced by GNEVehicleTypeDialog::VTypeAttributes::VClassRow::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.

Field Documentation

◆ myAttr

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

edited attribute

Definition at line 160 of file GNEVehicleTypeDialog.h.

◆ myButton

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

button

Definition at line 166 of file GNEVehicleTypeDialog.h.

Referenced by VTypeAttributeRow().

◆ myComboBox

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

ComboBox for attributes with limited values.

Definition at line 172 of file GNEVehicleTypeDialog.h.

Referenced by VTypeAttributeRow().

◆ myParameters

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

pointer to current parameter map

Definition at line 175 of file GNEVehicleTypeDialog.h.

◆ myRowAttrType

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

RowAttrType.

Definition at line 163 of file GNEVehicleTypeDialog.h.

◆ myTextField

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

text field

Definition at line 169 of file GNEVehicleTypeDialog.h.

Referenced by VTypeAttributeRow().

◆ myVTypeAttributesParent

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

pointer to VTypeAttributeParameters parent

Definition at line 157 of file GNEVehicleTypeDialog.h.

Referenced by VTypeAttributeRow().


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