![]() |
SUMO - Simulation of Urban MObility
|
Dialog for edit rerouter intervals. More...
#include <GNECalibratorVehicleTypeDialog.h>
Public Member Functions | |
void | changeAdditionalDialogHeader (const std::string &newHeader) |
change additional dialog header More... | |
GNECalibratorVehicleTypeDialog (GNECalibratorDialog *calibratorDialog, GNECalibratorVehicleType &calibratorVehicleType, bool updatingElement) | |
FOX-declaration. More... | |
~GNECalibratorVehicleTypeDialog () | |
destructor More... | |
FOX-callbacks | |
event after press accept button | |
long | onCmdAccept (FXObject *, FXSelector, void *) |
long | onCmdCancel (FXObject *, FXSelector, void *) |
event after press cancel button More... | |
long | onCmdReset (FXObject *, FXSelector, void *) |
event after press reset button More... | |
long | onCmdSetVariable (FXObject *, FXSelector, void *) |
after change a variable of vehicle type More... | |
Protected Member Functions | |
GNECalibratorVehicleTypeDialog () | |
FOX needs this. More... | |
void | setVClassLabelImage () |
set VClass texture More... | |
void | updateCalibratorVehicleTypeValues () |
update data fields More... | |
Protected Attributes | |
FXButton * | myAcceptButton |
accept button More... | |
GNECalibratorDialog * | myCalibratorDialogParent |
pointer to GNECalibratorDialog parent More... | |
GNECalibratorVehicleType * | myCalibratorVehicleType |
pointer to original calibrator vehicle type More... | |
bool | myCalibratorVehicleTypeValid |
flag to check if current calibrator vehicleType is valid More... | |
FXButton * | myCancelButton |
cancel button More... | |
FXComboBox * | myComboBoxShape |
FXComboBox for Shape. More... | |
FXLabel * | myComboBoxShapeLabelImage |
label with image of Shape More... | |
FXComboBox * | myComboBoxVClass |
FXComboBox for VClass. More... | |
FXLabel * | myComboBoxVClassLabelImage |
label with image of VClass More... | |
FXVerticalFrame * | myContentFrame |
frame for contents More... | |
GNECalibratorVehicleType * | myCopyOfCalibratorVehicleType |
pointer in which save modifications of CalibratorVehicleType More... | |
SumoXMLAttr | myInvalidAttr |
current sumo attribute invalid More... | |
FXButton * | myResetButton |
cancel button More... | |
FXTextField * | myTextFieldAccel |
FXTextfield for Accel. More... | |
FXTextField * | myTextFieldBoardingDuration |
FXTextfield for BoardingDuration. More... | |
FXTextField * | myTextFieldCarFollowModel |
FXTextfield for CarFollowModel. More... | |
FXTextField * | myTextFieldColor |
FXTextfield for Color. More... | |
FXTextField * | myTextFieldContainerCapacity |
FXTextfield for ContainerCapacity. More... | |
FXTextField * | myTextFieldDecel |
FXTextfield for Decel. More... | |
FXTextField * | myTextFieldEmissionClass |
FXTextfield for EmissionClass. More... | |
FXTextField * | myTextFieldFilename |
FXTextfield for Filename. More... | |
FXTextField * | myTextFieldImpatience |
FXTextfield for Impatience. More... | |
FXTextField * | myTextFieldLaneChangeModel |
FXTextfield for LaneChangeModel. More... | |
FXTextField * | myTextFieldLatAlignment |
FXTextfield for LatAlignment. More... | |
FXTextField * | myTextFieldLength |
FXTextfield for Length. More... | |
FXTextField * | myTextFieldLoadingDuration |
FXTextfield for LoadingDuration. More... | |
FXTextField * | myTextFieldMaxSpeed |
FXTextfield for MaxSpeed. More... | |
FXTextField * | myTextFieldMaxSpeedLat |
FXTextfield for MaxSpeedLat. More... | |
FXTextField * | myTextFieldMinGap |
FXTextfield for MinGap. More... | |
FXTextField * | myTextFieldMinGapLat |
FXTextfield for MinGapLat. More... | |
FXTextField * | myTextFieldPersonCapacity |
FXTextfield for PersonCapacity. More... | |
FXTextField * | myTextFieldSigma |
FXTextfield for Sigma. More... | |
FXTextField * | myTextFieldSpeedDev |
FXTextfield for SpeedDev. More... | |
FXTextField * | myTextFieldSpeedFactor |
FXTextfield for SpeedFactor. More... | |
FXTextField * | myTextFieldTau |
FXTextfield for Tau. More... | |
FXTextField * | myTextFieldVehicleTypeID |
FXTextfield for vehicleTypeID. More... | |
FXTextField * | myTextFieldWidth |
FXTextfield for Width. More... | |
bool | myUpdatingElement |
flag to indicate if flow are being created or modified More... | |
Private Member Functions | |
GNECalibratorVehicleTypeDialog (const GNECalibratorVehicleTypeDialog &) | |
Invalidated copy constructor. More... | |
GNECalibratorVehicleTypeDialog & | operator= (const GNECalibratorVehicleTypeDialog &) |
Invalidated assignment operator. More... | |
Dialog for edit rerouter intervals.
Definition at line 51 of file GNECalibratorVehicleTypeDialog.h.
GNECalibratorVehicleTypeDialog::GNECalibratorVehicleTypeDialog | ( | GNECalibratorDialog * | calibratorDialog, |
GNECalibratorVehicleType & | calibratorVehicleType, | ||
bool | updatingElement | ||
) |
FOX-declaration.
constructor
Definition at line 63 of file GNECalibratorVehicleTypeDialog.cpp.
References GUIDesignAuxiliarFrame, GUIDesignComboBox, GUIDesignComboBoxNCol, GUIDesignLabelIconExtendedx46Ticked, GUIDesignLabelThick, GUIDesignTextField, GUIDesignTextFieldInt, GUIDesignTextFieldNCol, GUIDesignTextFieldReal, GUIDesignUniformHorizontalFrame, MID_GNE_CALIBRATORDIALOG_SET_VARIABLE, SUMO_ATTR_ACCEL, SUMO_ATTR_BOARDING_DURATION, SUMO_ATTR_CAR_FOLLOW_MODEL, SUMO_ATTR_COLOR, SUMO_ATTR_CONTAINER_CAPACITY, SUMO_ATTR_DECEL, SUMO_ATTR_EMISSIONCLASS, SUMO_ATTR_FILE, SUMO_ATTR_ID, SUMO_ATTR_IMPATIENCE, SUMO_ATTR_LANE_CHANGE_MODEL, SUMO_ATTR_LATALIGNMENT, SUMO_ATTR_LENGTH, SUMO_ATTR_LOADING_DURATION, SUMO_ATTR_MAXSPEED, SUMO_ATTR_MAXSPEED_LAT, SUMO_ATTR_MINGAP, SUMO_ATTR_MINGAP_LAT, SUMO_ATTR_PERSON_CAPACITY, SUMO_ATTR_SHAPE, SUMO_ATTR_SIGMA, SUMO_ATTR_SPEEDDEV, SUMO_ATTR_SPEEDFACTOR, SUMO_ATTR_TAU, SUMO_ATTR_VCLASS, SUMO_ATTR_WIDTH, SumoVehicleClassStrings, SumoVehicleShapeStrings, SVC_IGNORING, SVS_UNKNOWN, and toString().
GNECalibratorVehicleTypeDialog::~GNECalibratorVehicleTypeDialog | ( | ) |
destructor
Definition at line 216 of file GNECalibratorVehicleTypeDialog.cpp.
References myCopyOfCalibratorVehicleType.
|
inlineprotected |
FOX needs this.
Definition at line 79 of file GNECalibratorVehicleTypeDialog.h.
References setVClassLabelImage(), and updateCalibratorVehicleTypeValues().
|
private |
Invalidated copy constructor.
|
inherited |
change additional dialog header
Definition at line 81 of file GNEAdditionalDialog.cpp.
|
virtual |
Implements GNEAdditionalDialog.
Definition at line 223 of file GNECalibratorVehicleTypeDialog.cpp.
References GNECalibratorDialog::getCalibratorParent(), GNECalibratorVehicleType::getCalibratorParent(), GNECalibratorVehicleType::getTag(), GNEAttributeCarrier::getTag(), GNEAdditional::getViewNet(), GNEViewNet::isTestingModeEnabled(), myCalibratorDialogParent, myCalibratorVehicleType, myCalibratorVehicleTypeValid, myInvalidAttr, myUpdatingElement, toString(), and WRITE_WARNING.
|
virtual |
event after press cancel button
Implements GNEAdditionalDialog.
Definition at line 251 of file GNECalibratorVehicleTypeDialog.cpp.
|
virtual |
event after press reset button
Implements GNEAdditionalDialog.
Definition at line 259 of file GNECalibratorVehicleTypeDialog.cpp.
References updateCalibratorVehicleTypeValues().
long GNECalibratorVehicleTypeDialog::onCmdSetVariable | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
after change a variable of vehicle type
Definition at line 269 of file GNECalibratorVehicleTypeDialog.cpp.
References GNECalibratorVehicleType::getVehicleTypeID(), myCalibratorVehicleTypeValid, myComboBoxShape, myComboBoxVClass, myCopyOfCalibratorVehicleType, myInvalidAttr, myTextFieldAccel, myTextFieldBoardingDuration, myTextFieldCarFollowModel, myTextFieldColor, myTextFieldContainerCapacity, myTextFieldDecel, myTextFieldEmissionClass, myTextFieldFilename, myTextFieldImpatience, myTextFieldLaneChangeModel, myTextFieldLatAlignment, myTextFieldLength, myTextFieldLoadingDuration, myTextFieldMaxSpeed, myTextFieldMaxSpeedLat, myTextFieldMinGap, myTextFieldMinGapLat, myTextFieldPersonCapacity, myTextFieldSigma, myTextFieldSpeedDev, myTextFieldSpeedFactor, myTextFieldTau, myTextFieldVehicleTypeID, myTextFieldWidth, GNECalibratorVehicleType::setAccel(), GNECalibratorVehicleType::setBoardingDuration(), GNECalibratorVehicleType::setCarFollowModel(), GNECalibratorVehicleType::setColor(), GNECalibratorVehicleType::setContainerCapacity(), GNECalibratorVehicleType::setDecel(), GNECalibratorVehicleType::setEmissionClass(), GNECalibratorVehicleType::setFilename(), GNECalibratorVehicleType::setImpatience(), GNECalibratorVehicleType::setLaneChangeModel(), GNECalibratorVehicleType::setLatAlignment(), GNECalibratorVehicleType::setLength(), GNECalibratorVehicleType::setLoadingDuration(), GNECalibratorVehicleType::setMaxSpeed(), GNECalibratorVehicleType::setMaxSpeedLat(), GNECalibratorVehicleType::setMinGap(), GNECalibratorVehicleType::setMinGapLat(), GNECalibratorVehicleType::setPersonCapacity(), GNECalibratorVehicleType::setShape(), GNECalibratorVehicleType::setSigma(), GNECalibratorVehicleType::setSpeedDev(), GNECalibratorVehicleType::setSpeedFactor(), GNECalibratorVehicleType::setTau(), GNECalibratorVehicleType::setVClass(), setVClassLabelImage(), GNECalibratorVehicleType::setVehicleTypeID(), GNECalibratorVehicleType::setWidth(), SUMO_ATTR_ACCEL, SUMO_ATTR_BOARDING_DURATION, SUMO_ATTR_CAR_FOLLOW_MODEL, SUMO_ATTR_COLOR, SUMO_ATTR_CONTAINER_CAPACITY, SUMO_ATTR_DECEL, SUMO_ATTR_EMISSIONCLASS, SUMO_ATTR_FILE, SUMO_ATTR_ID, SUMO_ATTR_IMPATIENCE, SUMO_ATTR_LANE_CHANGE_MODEL, SUMO_ATTR_LATALIGNMENT, SUMO_ATTR_LENGTH, SUMO_ATTR_LOADING_DURATION, SUMO_ATTR_MAXSPEED, SUMO_ATTR_MAXSPEED_LAT, SUMO_ATTR_MINGAP, SUMO_ATTR_MINGAP_LAT, SUMO_ATTR_NOTHING, SUMO_ATTR_PERSON_CAPACITY, SUMO_ATTR_SHAPE, SUMO_ATTR_SIGMA, SUMO_ATTR_SPEEDDEV, SUMO_ATTR_SPEEDFACTOR, SUMO_ATTR_TAU, SUMO_ATTR_VCLASS, and SUMO_ATTR_WIDTH.
|
private |
Invalidated assignment operator.
|
protected |
set VClass texture
Definition at line 523 of file GNECalibratorVehicleTypeDialog.cpp.
References GUIIconSubSys::getIcon(), GNECalibratorVehicleType::getVClass(), ICON_VCLASS_ARMY, ICON_VCLASS_AUTHORITY, ICON_VCLASS_BICYCLE, ICON_VCLASS_BUS, ICON_VCLASS_COACH, ICON_VCLASS_CUSTOM1, ICON_VCLASS_CUSTOM2, ICON_VCLASS_DELIVERY, ICON_VCLASS_EMERGENCY, ICON_VCLASS_EVEHICLE, ICON_VCLASS_HOV, ICON_VCLASS_MOPED, ICON_VCLASS_MOTORCYCLE, ICON_VCLASS_PASSENGER, ICON_VCLASS_PEDESTRIAN, ICON_VCLASS_PRIVATE, ICON_VCLASS_RAIL, ICON_VCLASS_RAIL_ELECTRIC, ICON_VCLASS_RAIL_URBAN, ICON_VCLASS_SHIP, ICON_VCLASS_TAXI, ICON_VCLASS_TRAILER, ICON_VCLASS_TRAM, ICON_VCLASS_TRUCK, ICON_VCLASS_VIP, myComboBoxVClassLabelImage, myCopyOfCalibratorVehicleType, SUMO_ATTR_VCLASS, SVC_ARMY, SVC_AUTHORITY, SVC_BICYCLE, SVC_BUS, SVC_COACH, SVC_CUSTOM1, SVC_CUSTOM2, SVC_DELIVERY, SVC_E_VEHICLE, SVC_EMERGENCY, SVC_HOV, SVC_MOPED, SVC_MOTORCYCLE, SVC_PASSENGER, SVC_PEDESTRIAN, SVC_PRIVATE, SVC_RAIL, SVC_RAIL_ELECTRIC, SVC_RAIL_URBAN, SVC_SHIP, SVC_TAXI, SVC_TRAILER, SVC_TRAM, SVC_TRUCK, SVC_VIP, and toString().
Referenced by GNECalibratorVehicleTypeDialog(), onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
update data fields
Definition at line 489 of file GNECalibratorVehicleTypeDialog.cpp.
References GNECalibratorVehicleType::getAccel(), GNECalibratorVehicleType::getBoardingDuration(), GNECalibratorVehicleType::getCarFollowModel(), GNECalibratorVehicleType::getColor(), GNECalibratorVehicleType::getContainerCapacity(), GNECalibratorVehicleType::getDecel(), GNECalibratorVehicleType::getEmissionClass(), GNECalibratorVehicleType::getFilename(), GNECalibratorVehicleType::getImpatience(), GNECalibratorVehicleType::getLaneChangeModel(), GNECalibratorVehicleType::getLatAlignment(), GNECalibratorVehicleType::getLength(), GNECalibratorVehicleType::getLoadingDuration(), GNECalibratorVehicleType::getMaxSpeed(), GNECalibratorVehicleType::getMaxSpeedLat(), GNECalibratorVehicleType::getMinGap(), GNECalibratorVehicleType::getMinGapLat(), GNECalibratorVehicleType::getPersonCapacity(), GNECalibratorVehicleType::getShape(), GNECalibratorVehicleType::getSigma(), GNECalibratorVehicleType::getSpeedDev(), GNECalibratorVehicleType::getSpeedFactor(), GNECalibratorVehicleType::getTau(), GNECalibratorVehicleType::getVClass(), getVehicleClassNames(), getVehicleShapeName(), GNECalibratorVehicleType::getVehicleTypeID(), GNECalibratorVehicleType::getWidth(), myComboBoxShape, myComboBoxVClass, myCopyOfCalibratorVehicleType, myTextFieldAccel, myTextFieldBoardingDuration, myTextFieldCarFollowModel, myTextFieldColor, myTextFieldContainerCapacity, myTextFieldDecel, myTextFieldEmissionClass, myTextFieldFilename, myTextFieldImpatience, myTextFieldLaneChangeModel, myTextFieldLatAlignment, myTextFieldLength, myTextFieldLoadingDuration, myTextFieldMaxSpeed, myTextFieldMaxSpeedLat, myTextFieldMinGap, myTextFieldMinGapLat, myTextFieldPersonCapacity, myTextFieldSigma, myTextFieldSpeedDev, myTextFieldSpeedFactor, myTextFieldTau, myTextFieldVehicleTypeID, myTextFieldWidth, setVClassLabelImage(), and toString().
Referenced by GNECalibratorVehicleTypeDialog(), and onCmdReset().
|
protectedinherited |
accept button
Definition at line 85 of file GNEAdditionalDialog.h.
|
protected |
pointer to GNECalibratorDialog parent
Definition at line 88 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdAccept().
|
protected |
pointer to original calibrator vehicle type
Definition at line 91 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdAccept().
|
protected |
flag to check if current calibrator vehicleType is valid
Definition at line 100 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdAccept(), and onCmdSetVariable().
|
protectedinherited |
cancel button
Definition at line 88 of file GNEAdditionalDialog.h.
|
protected |
FXComboBox for Shape.
Definition at line 115 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
label with image of Shape
Definition at line 118 of file GNECalibratorVehicleTypeDialog.h.
|
protected |
FXComboBox for VClass.
Definition at line 109 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
label with image of VClass
Definition at line 112 of file GNECalibratorVehicleTypeDialog.h.
Referenced by setVClassLabelImage().
|
protectedinherited |
frame for contents
Definition at line 82 of file GNEAdditionalDialog.h.
|
protected |
pointer in which save modifications of CalibratorVehicleType
Definition at line 97 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), setVClassLabelImage(), updateCalibratorVehicleTypeValues(), and ~GNECalibratorVehicleTypeDialog().
|
protected |
current sumo attribute invalid
Definition at line 103 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdAccept(), and onCmdSetVariable().
|
protectedinherited |
cancel button
Definition at line 91 of file GNEAdditionalDialog.h.
|
protected |
FXTextfield for Accel.
Definition at line 121 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
FXTextfield for BoardingDuration.
Definition at line 175 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
FXTextfield for CarFollowModel.
Definition at line 166 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
FXTextfield for Color.
Definition at line 148 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
FXTextfield for ContainerCapacity.
Definition at line 172 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
FXTextfield for Decel.
Definition at line 124 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
FXTextfield for EmissionClass.
Definition at line 151 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
FXTextfield for Filename.
Definition at line 157 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
FXTextfield for Impatience.
Definition at line 160 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
FXTextfield for LaneChangeModel.
Definition at line 163 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
FXTextfield for LatAlignment.
Definition at line 181 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
FXTextfield for Length.
Definition at line 133 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
FXTextfield for LoadingDuration.
Definition at line 178 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
FXTextfield for MaxSpeed.
Definition at line 139 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
FXTextfield for MaxSpeedLat.
Definition at line 187 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
FXTextfield for MinGap.
Definition at line 136 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
FXTextfield for MinGapLat.
Definition at line 184 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
FXTextfield for PersonCapacity.
Definition at line 169 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
FXTextfield for Sigma.
Definition at line 127 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
FXTextfield for SpeedDev.
Definition at line 145 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
FXTextfield for SpeedFactor.
Definition at line 142 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
FXTextfield for Tau.
Definition at line 130 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
FXTextfield for vehicleTypeID.
Definition at line 106 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
FXTextfield for Width.
Definition at line 154 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorVehicleTypeValues().
|
protected |
flag to indicate if flow are being created or modified
Definition at line 94 of file GNECalibratorVehicleTypeDialog.h.
Referenced by onCmdAccept().