65 myCalibratorDialogParent(calibratorDialog),
66 myCalibratorVehicleType(&calibratorVehicleType),
67 myUpdatingElement(updatingElement),
68 myCalibratorVehicleTypeValid(true),
71 changeAdditionalDialogHeader(
"Edit " +
toString(calibratorVehicleType.getTag()) +
" of " +
toString(calibratorVehicleType.getCalibratorParent()->getTag()) +
72 " '" + calibratorVehicleType.getCalibratorParent()->getID() +
"'");
85 myComboBoxVClassLabelImage->setBackColor(FXRGBA(255, 255, 255, 255));
88 for (std::vector<std::string>::iterator i = VClassStrings.begin(); i != VClassStrings.end(); i++) {
90 myComboBoxVClass->appendItem(i->c_str());
93 myComboBoxVClass->setNumVisible(10);
99 myComboBoxShapeLabelImage->setBackColor(FXRGBA(255, 255, 255, 255));
102 for (std::vector<std::string>::iterator i = VShapeStrings.begin(); i != VShapeStrings.end(); i++) {
104 myComboBoxShape->appendItem(i->c_str());
107 myComboBoxShape->setNumVisible(10);
209 (*myCopyOfCalibratorVehicleType) = (*myCalibratorVehicleType);
212 updateCalibratorVehicleTypeValues();
230 FXMessageBox::warning(getApp(), MBOX_OK,
235 " is invalid.").c_str());
238 WRITE_WARNING(
"Closed FXMessageBox of type 'warning' with 'OK'");
243 (*myCalibratorVehicleType) = (*myCopyOfCalibratorVehicleType);
244 getApp()->stopModal(
this, TRUE);
253 getApp()->stopModal(
this, FALSE);
261 (*myCopyOfCalibratorVehicleType) = (*myCalibratorVehicleType);
SUMOVehicleShape getShape() const
get shape
FXTextField * myTextFieldSpeedFactor
FXTextfield for SpeedFactor.
double getMinGapLat() const
get min gap lat
std::string getVehicleClassNames(SVCPermissions permissions, bool expand)
Returns the ids of the given classes, divided using a ' '.
long onCmdSetVariable(FXObject *, FXSelector, void *)
after change a variable of vehicle type
FXComboBox * myComboBoxVClass
FXComboBox for VClass.
SUMOVehicleClass getVClass() const
get VClass
#define GUIDesignComboBoxNCol
number of column of every combo box
bool setTau(double tau=1.0)
set tau
FXTextField * myTextFieldMinGapLat
FXTextfield for MinGapLat.
GNECalibratorDialog * myCalibratorDialogParent
pointer to GNECalibratorDialog parent
bool setDecel(double decel=4.5)
set decel
double getTau() const
get tau
FXTextField * myTextFieldLoadingDuration
FXTextfield for LoadingDuration.
std::string getLatAlignment() const
get lateral lat
StringBijection< SUMOVehicleShape > SumoVehicleShapeStrings(sumoVehicleShapeStringInitializer, SVS_UNKNOWN, false)
bool setLength(double length=5.0)
set length
double getWidth() const
get width
FXTextField * myTextFieldAccel
FXTextfield for Accel.
vehicle is a not electrified rail
FXTextField * myTextFieldFilename
FXTextfield for Filename.
bool setImpatience(double impatience=0.0)
set impatience
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
bool setAccel(double accel=2.6)
set accel
bool setMinGapLat(double minGapLat=0.12)
set min gap lat
bool setEmissionClass(std::string emissionClass="P_7_7")
set emission class
vehicle is a small delivery vehicle
double getSigma() const
get sigma
bool setShape(std::string shape)
set shape (string version)
Dialog to edit sequences, parameters, etc.. of Additionals.
FXTextField * myTextFieldVehicleTypeID
FXTextfield for vehicleTypeID.
FXTextField * myTextFieldMaxSpeed
FXTextfield for MaxSpeed.
GNECalibratorVehicleType * myCalibratorVehicleType
pointer to original calibrator vehicle type
std::string getEmissionClass() const
get emission class
~GNECalibratorVehicleTypeDialog()
destructor
double getLoadingDuration() const
get loading duration
bool setFilename(std::string filename="")
set filename
FXTextField * myTextFieldWidth
FXTextfield for Width.
FXComboBox * myComboBoxShape
FXComboBox for Shape.
FXTextField * myTextFieldBoardingDuration
FXTextfield for BoardingDuration.
bool setMaxSpeed(double maxSpeed=70.0)
set max speed
double getSpeedDev() const
get speed dev
#define GUIDesignLabelIconExtendedx46Ticked
label ticked filled extended over frame used for VClasses. can be used by icons of 64x32 pixels ...
std::string getLaneChangeModel() const
get lane change model
GNECalibratorVehicleType * myCopyOfCalibratorVehicleType
pointer in which save modifications of CalibratorVehicleType
vehicle is a (possibly fast moving) electric rail
#define WRITE_WARNING(msg)
bool isTestingModeEnabled() const
check if netedit is running in testing mode
GNECalibrator * getCalibratorParent() const
get calibrator parent
std::string getVehicleShapeName(SUMOVehicleShape id)
Returns the class name of the shape class given by its id.
double getMaxSpeed() const
get max speed
vehicle is a large transport vehicle
#define GUIDesignComboBox
void updateCalibratorVehicleTypeValues()
update data fields
std::string getCarFollowModel() const
get car follow model
bool setWidth(double width=2.0)
set width
#define GUIDesignAuxiliarFrame
design for auxiliar (Without borders) frames used to pack another frames extended in all directions ...
FXTextField * myTextFieldLatAlignment
FXTextfield for LatAlignment.
std::string getVehicleTypeID() const
get VehicleTypeID
#define GUIDesignTextField
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
std::string getColor() const
get color
#define GUIDesignUniformHorizontalFrame
design for horizontal frame used to pack another frames with a uniform width
FXTextField * myTextFieldLaneChangeModel
FXTextfield for LaneChangeModel.
int getPersonCapacity() const
get person capacity
double getDecel() const
get decel
bool setPersonCapacity(int personCapacity=4)
set person capacity
bool myUpdatingElement
flag to indicate if flow are being created or modified
FXTextField * myTextFieldPersonCapacity
FXTextfield for PersonCapacity.
SumoXMLAttr myInvalidAttr
current sumo attribute invalid
FXTextField * myTextFieldColor
FXTextfield for Color.
double getSpeedFactor() const
get speed factor
Dialog for edit rerouter intervals.
FXTextField * myTextFieldSigma
FXTextfield for Sigma.
edge: the shape in xml-definition
double getImpatience() const
get impatience
std::string getFilename() const
get filename
StringBijection< SUMOVehicleClass > SumoVehicleClassStrings(sumoVehicleClassStringInitializer, SVC_CUSTOM2, false)
FXTextField * myTextFieldImpatience
FXTextfield for Impatience.
double getMinGap() const
get min gap
bool setSigma(double sigma=0.5)
set sigma
double getBoardingDuration() const
get boarding duration
void setVClassLabelImage()
set VClass texture
vehicle is a passenger car (a "normal" car)
double getLength() const
get length
bool myCalibratorVehicleTypeValid
flag to check if current calibrator vehicleType is valid
bool setSpeedDev(double speedDev=0.0)
set speed dev
FXTextField * myTextFieldEmissionClass
FXTextfield for EmissionClass.
bool setBoardingDuration(double boardingDuration=0.5)
set boarding duration
bool setMaxSpeedLat(double maxSpeedLat=1.0)
set max speed lat
#define GUIDesignTextFieldNCol
Num of column of text field.
Dialog for edit calibrators.
GNEViewNet * getViewNet() const
Returns a pointer to GNEViewNet in which additional element is located.
bool setLaneChangeModel(std::string laneChangeModel="LC2013")
set lane change model
bool setCarFollowModel(std::string carFollowModel="Krauss")
set car follow model
bool setMinGap(double minGap=2.5)
set min gap
FXTextField * myTextFieldContainerCapacity
FXTextfield for ContainerCapacity.
bool setSpeedFactor(double speedFactor=1.0)
set speed factor
long onCmdAccept(FXObject *, FXSelector, void *)
FXTextField * myTextFieldTau
FXTextfield for Tau.
vehicle is a large transport vehicle
#define GUIDesignLabelThick
label extended over frame with thick and with text justify to left
#define GUIDesignTextFieldInt
text field extended over Frame with thick frame and limited to Integers
FXTextField * myTextFieldMinGap
FXTextfield for MinGap.
FXTextField * myTextFieldCarFollowModel
FXTextfield for CarFollowModel.
#define GUIDesignTextFieldReal
text field extended over Frame with thick frame and limited to Doubles/doubles
GNECalibrator * getCalibratorParent() const
get pointer to calibrator parent
FXDEFMAP(GNECalibratorVehicleTypeDialog) GNECalibratorVehicleTypeDialogMap[]
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
bool setVClass(SUMOVehicleClass vClass=SVC_PRIVATE)
set VClass
int getContainerCapacity() const
get container capacity
public emergency vehicles
bool setColor(std::string color="1,1,0")
set color
double getAccel() const
get accel
FXTextField * myTextFieldLength
FXTextfield for Length.
bool setLoadingDuration(double loadingDuration=90.0)
set loading duration
FXTextField * myTextFieldSpeedDev
FXTextfield for SpeedDev.
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon
SumoXMLTag getTag() const
get tag
bool setContainerCapacity(int containerCapacity=0)
set container capacity
vehicles ignoring classes
bool setVehicleTypeID(std::string vehicleTypeID)
set vehicleType ID
bool setLatAlignment(std::string latAlignment="center")
set lateral lat
FXTextField * myTextFieldMaxSpeedLat
FXTextfield for MaxSpeedLat.
FXTextField * myTextFieldDecel
FXTextfield for Decel.
FXLabel * myComboBoxVClassLabelImage
label with image of VClass
double getMaxSpeedLat() const
get max speed lat
SumoXMLTag getTag() const
get XML Tag assigned to this object