![]() |
Eclipse SUMO - Simulation of Urban MObility
|
class used for represent rows with Vehicle Type parameters More...
#include <GNEVehicleTypeDialog.h>
Public Types | |
enum | RowAttrType { ROWTYPE_INT, ROWTYPE_REAL, ROWTYPE_STRING, ROWTYPE_COLOR, ROWTYPE_FILENAME, ROWTYPE_COMBOBOX } |
Attribute type. More... | |
Public Member Functions | |
const FXButton * | getButton () const |
get button More... | |
void | openColorDialog () |
open color dialog More... | |
void | openImageFileDialog () |
open image file dialog More... | |
void | openOSGFileDialog () |
open OSG file dialog 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... | |
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 110 of file GNEVehicleTypeDialog.h.
Attribute type.
Enumerator | |
---|---|
ROWTYPE_INT | |
ROWTYPE_REAL | |
ROWTYPE_STRING | |
ROWTYPE_COLOR | |
ROWTYPE_FILENAME | |
ROWTYPE_COMBOBOX |
Definition at line 114 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 397 of file GNEVehicleTypeDialog.cpp.
References filterAttributeName(), GUIDesignButtonRectangular150x23, GUIDesignComboBoxNCol, GUIDesignComboBoxWidth180, GUIDesignLabelAttribute150, GUIDesignTextFieldNCol, GUIDesignTextFielWidth180, GUIDesignTextFielWidth180Int, GUIDesignTextFielWidth180Real, MID_GNE_SET_ATTRIBUTE, MID_GNE_SET_ATTRIBUTE_DIALOG, myButton, myComboBox, myTextField, ROWTYPE_COLOR, ROWTYPE_COMBOBOX, ROWTYPE_FILENAME, ROWTYPE_INT, ROWTYPE_REAL, and ROWTYPE_STRING.
|
private |
filter attribute name
Definition at line 660 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 575 of file GNEVehicleTypeDialog.cpp.
void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::openColorDialog | ( | ) |
open color dialog
Definition at line 581 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 606 of file GNEVehicleTypeDialog.cpp.
References gCurrentFolder, GUIIconSubSys::getIcon(), and ICON_VTYPE.
void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::openOSGFileDialog | ( | ) |
open OSG file dialog
Definition at line 633 of file GNEVehicleTypeDialog.cpp.
References gCurrentFolder, GUIIconSubSys::getIcon(), and ICON_VTYPE.
void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::setVariable | ( | ) |
set Variablen in VehicleType (using default value obtained from GNEAttributeCarrier)
Definition at line 439 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 486 of file GNEVehicleTypeDialog.cpp.
void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::updateValue | ( | ) |
update value of Vehicle Type (using default value obtained from GNEAttributeCarrier)
Definition at line 518 of file GNEVehicleTypeDialog.cpp.
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 551 of file GNEVehicleTypeDialog.cpp.
|
private |
edited attribute
Definition at line 155 of file GNEVehicleTypeDialog.h.
|
private |
|
private |
ComboBox for attributes with limited values.
Definition at line 167 of file GNEVehicleTypeDialog.h.
Referenced by VTypeAttributeRow().
|
private |
RowAttrType.
Definition at line 158 of file GNEVehicleTypeDialog.h.
|
private |
text field
Definition at line 164 of file GNEVehicleTypeDialog.h.
Referenced by VTypeAttributeRow().
|
private |
pointer to VTypeAttributeParameters parent
Definition at line 152 of file GNEVehicleTypeDialog.h.