![]() |
Eclipse SUMO - Simulation of Urban MObility
|
class used for represent rows with Vehicle Type parameters More...
#include <GNEVehicleTypeDialog.h>
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 > > ¶meters) |
| 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 | |
| MFXComboBoxIcon * | myComboBox |
| ComboBox for attributes with limited values. | |
| Parameterised::Map | myParameters |
| pointer to current parameter map | |
| const RowAttrType | myRowAttrType |
| RowAttrType. | |
| FXTextField * | myTextField |
| text field | |
| VTypeAttributes * | myVTypeAttributesParent |
| pointer to VTypeAttributeParameters parent | |
class used for represent rows with Vehicle Type parameters
Definition at line 107 of file GNEVehicleTypeDialog.h.
Attribute type.
| Enumerator | |
|---|---|
| ROWTYPE_STRING | |
| ROWTYPE_COLOR | |
| ROWTYPE_FILENAME | |
| ROWTYPE_COMBOBOX | |
| ROWTYPE_PARAMETERS | |
Definition at line 111 of file GNEVehicleTypeDialog.h.
| GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::VTypeAttributeRow | ( | VTypeAttributes * | VTypeAttributesParent, |
| FXVerticalFrame * | verticalFrame, | ||
| const SumoXMLAttr | attr, | ||
| const RowAttrType | rowAttrType, | ||
| const std::vector< std::string > & | values = {} ) |
constructor
Definition at line 462 of file GNEVehicleTypeDialog.cpp.
References GUIDesigns::buildFXButton(), GUIDesigns::buildFXLabel(), COLORWHEEL, filterAttributeName(), GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonFixed, GUIDesignComboBoxFixed, GUIDesignComboBoxVisibleItems, GUIDesignLabelThickedFixed, GUIDesignTextFieldFixed, GUIDesignTextFieldNCol, invalid_return< std::string >::value, MID_GNE_ATTRIBUTESEDITOR_PARAMETERS, MID_GNE_SET_ATTRIBUTE, MID_GNE_SET_ATTRIBUTE_DIALOG, myAttr, myButton, myComboBox, myRowAttrType, myTextField, myVTypeAttributesParent, ROWTYPE_COLOR, ROWTYPE_COMBOBOX, ROWTYPE_FILENAME, ROWTYPE_PARAMETERS, ROWTYPE_STRING, TL, and GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributes().
|
private |
filter attribute name
Definition at line 788 of file GNEVehicleTypeDialog.cpp.
References SUMO_ATTR_JM_CROSSING_GAP, SUMO_ATTR_JM_DRIVE_AFTER_RED_TIME, SUMO_ATTR_JM_DRIVE_AFTER_YELLOW_TIME, SUMO_ATTR_JM_DRIVE_RED_SPEED, SUMO_ATTR_JM_IGNORE_FOE_PROB, SUMO_ATTR_JM_IGNORE_FOE_SPEED, SUMO_ATTR_JM_IGNORE_KEEPCLEAR_TIME, SUMO_ATTR_JM_SIGMA_MINOR, SUMO_ATTR_JM_TIMEGAP_MINOR, SUMO_ATTR_LCA_ACCEL_LAT, SUMO_ATTR_LCA_ASSERTIVE, SUMO_ATTR_LCA_COOPERATIVE_PARAM, SUMO_ATTR_LCA_IMPATIENCE, SUMO_ATTR_LCA_KEEPRIGHT_ACCEPTANCE_TIME, SUMO_ATTR_LCA_KEEPRIGHT_PARAM, SUMO_ATTR_LCA_LOOKAHEADLEFT, SUMO_ATTR_LCA_MAXSPEEDLATFACTOR, SUMO_ATTR_LCA_MAXSPEEDLATSTANDING, SUMO_ATTR_LCA_OPPOSITE_PARAM, SUMO_ATTR_LCA_OVERTAKE_DELTASPEED_FACTOR, SUMO_ATTR_LCA_OVERTAKE_RIGHT, SUMO_ATTR_LCA_PUSHY, SUMO_ATTR_LCA_PUSHYGAP, SUMO_ATTR_LCA_SPEEDGAIN_PARAM, SUMO_ATTR_LCA_SPEEDGAINRIGHT, SUMO_ATTR_LCA_STRATEGIC_PARAM, SUMO_ATTR_LCA_SUBLANE_PARAM, SUMO_ATTR_LCA_TIME_TO_IMPATIENCE, SUMO_ATTR_LCA_TURN_ALIGNMENT_DISTANCE, and toString().
Referenced by VTypeAttributeRow().
| const FXButton * GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::getButton | ( | ) | const |
| std::string GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::getParametersStr | ( | ) | const |
get parameters as string
Definition at line 749 of file GNEVehicleTypeDialog.cpp.
References myTextField.
| 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.
| void GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::openColorDialog | ( | ) |
open color dialog
Definition at line 671 of file GNEVehicleTypeDialog.cpp.
References GNEDialog::ACCEPT, RGBColor::BLACK, GNEAttributeCarrier::canParse(), GUIDesignTextColorBlack, myAttr, myTextField, myVTypeAttributesParent, GNEAttributeCarrier::parse(), and toString().
| void GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::openImageFileDialog | ( | ) |
open image file dialog
Definition at line 695 of file GNEVehicleTypeDialog.cpp.
References gCurrentFolder, GUIIconSubSys::getIcon(), GUIDesignTextColorBlack, SUMOXMLDefinitions::ImageFileExtensions, myAttr, myTextField, myVTypeAttributesParent, TL, and VTYPE.
| void GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::openOSGFileDialog | ( | ) |
open OSG file dialog
Definition at line 722 of file GNEVehicleTypeDialog.cpp.
References gCurrentFolder, GUIIconSubSys::getIcon(), GUIDesignTextColorBlack, myAttr, myTextField, myVTypeAttributesParent, SUMOXMLDefinitions::OSGFileExtensions, TL, and VTYPE.
| 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.
| 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, myAttr, myComboBox, myRowAttrType, myTextField, myVTypeAttributesParent, ROWTYPE_COLOR, ROWTYPE_COMBOBOX, SUMO_ATTR_COLOR, and updateValue().
| 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().
| 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().
| 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.
|
private |
edited attribute
Definition at line 160 of file GNEVehicleTypeDialog.h.
Referenced by openColorDialog(), openImageFileDialog(), openOSGFileDialog(), setVariable(), setVariable(), updateValue(), updateValue(), and VTypeAttributeRow().
|
private |
button
Definition at line 166 of file GNEVehicleTypeDialog.h.
Referenced by getButton(), and VTypeAttributeRow().
|
private |
ComboBox for attributes with limited values.
Definition at line 172 of file GNEVehicleTypeDialog.h.
Referenced by setVariable(), setVariable(), updateValue(), updateValue(), and VTypeAttributeRow().
|
private |
pointer to current parameter map
Definition at line 175 of file GNEVehicleTypeDialog.h.
Referenced by getParametersVectorStr(), setParameters(), and updateValue().
|
private |
Definition at line 163 of file GNEVehicleTypeDialog.h.
Referenced by setVariable(), updateValue(), and VTypeAttributeRow().
|
private |
text field
Definition at line 169 of file GNEVehicleTypeDialog.h.
Referenced by getParametersStr(), openColorDialog(), openImageFileDialog(), openOSGFileDialog(), setParameters(), setVariable(), setVariable(), updateValue(), updateValue(), and VTypeAttributeRow().
|
private |
pointer to VTypeAttributeParameters parent
Definition at line 157 of file GNEVehicleTypeDialog.h.
Referenced by openColorDialog(), openImageFileDialog(), openOSGFileDialog(), setVariable(), setVariable(), updateValue(), updateValue(), and VTypeAttributeRow().