![]() |
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 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 > > ¶meters) |
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... | |
MFXComboBoxIcon * | myComboBox |
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... | |
VTypeAttributes * | myVTypeAttributesParent |
pointer to VTypeAttributeParameters parent More... | |
class used for represent rows with Vehicle Type parameters
Definition at line 114 of file GNEVehicleTypeDialog.h.
Attribute type.
Enumerator | |
---|---|
ROWTYPE_STRING | |
ROWTYPE_COLOR | |
ROWTYPE_FILENAME | |
ROWTYPE_COMBOBOX | |
ROWTYPE_PARAMETERS |
Definition at line 118 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 463 of file GNEVehicleTypeDialog.cpp.
References MFXComboBoxIcon::appendIconItem(), GUIDesigns::buildFXButton(), GUIDesigns::buildFXLabel(), COLORWHEEL, filterAttributeName(), GUIIconSubSys::getIcon(), GUIDesignButtonFixed, GUIDesignComboBoxNCol, GUIDesignComboBoxVisibleItemsMedium, GUIDesignComboBoxWidth180, GUIDesignLabelThickedFixed, GUIDesignTextFieldFixed, GUIDesignTextFieldNCol, MID_GNE_OPEN_PARAMETERS_DIALOG, MID_GNE_SET_ATTRIBUTE, MID_GNE_SET_ATTRIBUTE_DIALOG, myButton, myComboBox, myTextField, ROWTYPE_COLOR, ROWTYPE_COMBOBOX, ROWTYPE_FILENAME, ROWTYPE_PARAMETERS, ROWTYPE_STRING, and TL.
|
private |
filter attribute name
Definition at line 791 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 |
get button
Definition at line 666 of file GNEVehicleTypeDialog.cpp.
std::string GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::getParametersStr | ( | ) | const |
get parameters as string
Definition at line 752 of file GNEVehicleTypeDialog.cpp.
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().
void GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::openColorDialog | ( | ) |
open color dialog
Definition at line 672 of file GNEVehicleTypeDialog.cpp.
References RGBColor::BLACK, COLORWHEEL, MFXUtils::getFXColor(), GUIIconSubSys::getIcon(), MFXUtils::getRGBColor(), TL, and toString().
void GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::openImageFileDialog | ( | ) |
open image file dialog
Definition at line 698 of file GNEVehicleTypeDialog.cpp.
References gCurrentFolder, GUIIconSubSys::getIcon(), TL, and VTYPE.
void GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::openOSGFileDialog | ( | ) |
open OSG file dialog
Definition at line 725 of file GNEVehicleTypeDialog.cpp.
References gCurrentFolder, GUIIconSubSys::getIcon(), TL, and VTYPE.
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().
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.
void GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::setVariable | ( | const std::string & | defaultValue | ) |
set Variable in VehicleType (Specifying default value)
Definition at line 546 of file GNEVehicleTypeDialog.cpp.
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().
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.
|
private |
edited attribute
Definition at line 167 of file GNEVehicleTypeDialog.h.
|
private |
|
private |
ComboBox for attributes with limited values.
Definition at line 179 of file GNEVehicleTypeDialog.h.
Referenced by VTypeAttributeRow().
|
private |
pointer to current parameter map
Definition at line 182 of file GNEVehicleTypeDialog.h.
|
private |
RowAttrType.
Definition at line 170 of file GNEVehicleTypeDialog.h.
|
private |
text field
Definition at line 176 of file GNEVehicleTypeDialog.h.
Referenced by VTypeAttributeRow().
|
private |
pointer to VTypeAttributeParameters parent
Definition at line 164 of file GNEVehicleTypeDialog.h.