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

FXString 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 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 627 of file GNEVehicleTypeDialog.cpp.

◆ getParametersStr()

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

get parameters as string

Definition at line 712 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 718 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 ( )

open color dialog

Definition at line 633 of file GNEVehicleTypeDialog.cpp.

References RGBColor::BLACK, MFXUtils::getFXColor(), MFXUtils::getRGBColor(), TL, and toString().

◆ openImageFileDialog()

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

open image file dialog

Definition at line 658 of file GNEVehicleTypeDialog.cpp.

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

◆ openOSGFileDialog()

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

open OSG file dialog

Definition at line 685 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 729 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 472 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 519 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 551 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 603 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: