Eclipse SUMO - Simulation of Urban MObility
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 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 Variable in VehicleType (using default value obtained from GNEAttributeCarrier) More...
 
void setVariable (const std::string &defaultValue)
 set Variable 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 (VTypeAttributes *VTypeAttributesParent, FXVerticalFrame *verticalFrame, const SumoXMLAttr attr, const RowAttrType rowAttrType, const std::vector< std::string > &values={})
 constructor More...
 

Private Member Functions

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

Private Attributes

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

Detailed Description

class used for represent rows with Vehicle Type parameters

Definition at line 114 of file GNEVehicleTypeDialog.h.

Member Enumeration Documentation

◆ RowAttrType

Attribute type.

Enumerator
ROWTYPE_STRING 
ROWTYPE_COLOR 
ROWTYPE_FILENAME 
ROWTYPE_COMBOBOX 
ROWTYPE_PARAMETERS 

Definition at line 118 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 666 of file GNEVehicleTypeDialog.cpp.

◆ getParametersStr()

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

get parameters as string

Definition at line 752 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 758 of file GNEVehicleTypeDialog.cpp.

References GNEVehicleTypeDialog::VTypeAttributes::myParameters.

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

Here is the caller graph for this function:

◆ openColorDialog()

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

◆ openImageFileDialog()

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

open image file dialog

Definition at line 698 of file GNEVehicleTypeDialog.cpp.

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

◆ openOSGFileDialog()

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

open OSG file dialog

Definition at line 725 of file GNEVehicleTypeDialog.cpp.

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

◆ setParameters()

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

set parameters

Definition at line 769 of file GNEVehicleTypeDialog.cpp.

References GNEVehicleTypeDialog::VTypeAttributes::myParameters.

Referenced by GNESingleParametersDialog::onCmdAccept().

Here is the caller graph for this function:

◆ setVariable() [1/2]

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

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

Definition at line 499 of file GNEVehicleTypeDialog.cpp.

References 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 546 of file GNEVehicleTypeDialog.cpp.

◆ updateValue() [1/2]

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

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

Definition at line 578 of file GNEVehicleTypeDialog.cpp.

References StringTokenizer::getVector(), GNE_ATTR_PARAMETERS, 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 636 of file GNEVehicleTypeDialog.cpp.

Field Documentation

◆ myAttr

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

edited attribute

Definition at line 167 of file GNEVehicleTypeDialog.h.

◆ myButton

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

button

Definition at line 173 of file GNEVehicleTypeDialog.h.

Referenced by VTypeAttributeRow().

◆ myComboBox

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

ComboBox for attributes with limited values.

Definition at line 179 of file GNEVehicleTypeDialog.h.

Referenced by VTypeAttributeRow().

◆ myParameters

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

pointer to current parameter map

Definition at line 182 of file GNEVehicleTypeDialog.h.

◆ myRowAttrType

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

RowAttrType.

Definition at line 170 of file GNEVehicleTypeDialog.h.

◆ myTextField

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

text field

Definition at line 176 of file GNEVehicleTypeDialog.h.

Referenced by VTypeAttributeRow().

◆ myVTypeAttributesParent

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

pointer to VTypeAttributeParameters parent

Definition at line 164 of file GNEVehicleTypeDialog.h.


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