![]() |
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 Variablen in VehicleType (using default value obtained from GNEAttributeCarrier) More... | |
void | setVariable (const std::string &defaultValue) |
set Variablen 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 (VTypeAtributes *VTypeAtributesParent, FXVerticalFrame *verticalFrame, const SumoXMLAttr attr, const RowAttrType rowAttrType, const std::vector< std::string > &values={}) | |
constructor More... | |
Private Member Functions | |
FXString | filterAttributeName (const SumoXMLAttr attr) const |
filter attribute name More... | |
Private Attributes | |
const SumoXMLAttr | myAttr |
edited attribute More... | |
FXButton * | myButton |
button More... | |
FXComboBox * | myComboBox |
ComboBox for attributes with limited values. More... | |
std::map< std::string, std::string > | myParameters |
pointer to current parameter map More... | |
const RowAttrType | myRowAttrType |
RowAttrType. More... | |
FXTextField * | myTextField |
text field More... | |
VTypeAtributes * | myVTypeAtributesParent |
pointer to VTypeAttributeParameters parent More... | |
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::VTypeAtributes::VTypeAttributeRow::VTypeAttributeRow | ( | VTypeAtributes * | VTypeAtributesParent, |
FXVerticalFrame * | verticalFrame, | ||
const SumoXMLAttr | attr, | ||
const RowAttrType | rowAttrType, | ||
const std::vector< std::string > & | values = {} |
||
) |
constructor
Definition at line 399 of file GNEVehicleTypeDialog.cpp.
References filterAttributeName(), GUIDesignButtonRectangular150, GUIDesignComboBoxNCol, GUIDesignComboBoxWidth180, GUIDesignLabelAttribute150, GUIDesignTextFieldNCol, GUIDesignTextFielWidth180, 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, and ROWTYPE_STRING.
|
private |
filter attribute name
Definition at line 716 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_PARAM, SUMO_ATTR_LCA_LOOKAHEADLEFT, SUMO_ATTR_LCA_MAXSPEEDLATFACTOR, SUMO_ATTR_LCA_MAXSPEEDLATSTANDING, SUMO_ATTR_LCA_OPPOSITE_PARAM, 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::VTypeAtributes::VTypeAttributeRow::getButton | ( | ) | const |
get button
Definition at line 592 of file GNEVehicleTypeDialog.cpp.
std::string GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::getParametersStr | ( | ) | const |
get parameters as string
Definition at line 677 of file GNEVehicleTypeDialog.cpp.
std::vector< std::pair< std::string, std::string > > GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::getParametersVectorStr | ( | ) | const |
get parameters as vector of strings
Definition at line 683 of file GNEVehicleTypeDialog.cpp.
References GNEVehicleTypeDialog::VTypeAtributes::myParameters.
Referenced by GNESingleParametersDialog::GNESingleParametersDialog(), and GNESingleParametersDialog::onCmdReset().
void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::openColorDialog | ( | ) |
open color dialog
Definition at line 598 of file GNEVehicleTypeDialog.cpp.
References RGBColor::BLACK, MFXUtils::getFXColor(), MFXUtils::getRGBColor(), RGBColor::parseColor(), and toString().
void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::openImageFileDialog | ( | ) |
open image file dialog
Definition at line 623 of file GNEVehicleTypeDialog.cpp.
References gCurrentFolder, GUIIconSubSys::getIcon(), and VTYPE.
void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::openOSGFileDialog | ( | ) |
open OSG file dialog
Definition at line 650 of file GNEVehicleTypeDialog.cpp.
References gCurrentFolder, GUIIconSubSys::getIcon(), and VTYPE.
void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::setParameters | ( | const std::vector< std::pair< std::string, std::string > > & | parameters | ) |
set parameters
Definition at line 694 of file GNEVehicleTypeDialog.cpp.
References GNEVehicleTypeDialog::VTypeAtributes::myParameters.
Referenced by GNESingleParametersDialog::onCmdAccept().
void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::setVariable | ( | ) |
set Variablen in VehicleType (using default value obtained from GNEAttributeCarrier)
Definition at line 437 of file GNEVehicleTypeDialog.cpp.
References SUMO_ATTR_COLOR.
void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::setVariable | ( | const std::string & | defaultValue | ) |
set Variablen in VehicleType (Specifying default value)
Definition at line 484 of file GNEVehicleTypeDialog.cpp.
void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::updateValue | ( | ) |
update value of Vehicle Type (using default value obtained from GNEAttributeCarrier)
Definition at line 516 of file GNEVehicleTypeDialog.cpp.
References StringTokenizer::getVector(), GNE_ATTR_PARAMETERS, StringTokenizer::hasNext(), GNEVehicleTypeDialog::VTypeAtributes::myParameters, and StringTokenizer::next().
Referenced by GNEVehicleTypeDialog::VTypeAtributes::VClassRow::setVariable().
void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::updateValue | ( | const std::string & | defaultValue | ) |
update value of Vehicle Type (Specifying default value)
Definition at line 568 of file GNEVehicleTypeDialog.cpp.
|
private |
edited attribute
Definition at line 160 of file GNEVehicleTypeDialog.h.
|
private |
|
private |
ComboBox for attributes with limited values.
Definition at line 172 of file GNEVehicleTypeDialog.h.
Referenced by VTypeAttributeRow().
|
private |
pointer to current parameter map
Definition at line 175 of file GNEVehicleTypeDialog.h.
|
private |
RowAttrType.
Definition at line 163 of file GNEVehicleTypeDialog.h.
|
private |
text field
Definition at line 169 of file GNEVehicleTypeDialog.h.
Referenced by VTypeAttributeRow().
|
private |
pointer to VTypeAttributeParameters parent
Definition at line 157 of file GNEVehicleTypeDialog.h.