Eclipse SUMO - Simulation of Urban MObility
GNEVehicleTypeDialog.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
14 // Dialog for edit vehicleTypes
15 /****************************************************************************/
16 #ifndef GNEVehicleTypeDialog_h
17 #define GNEVehicleTypeDialog_h
18 
19 // ===========================================================================
20 // included modules
21 // ===========================================================================
22 
23 #include <config.h>
24 
26 
27 #include "GNEDemandElementDialog.h"
28 
29 // ===========================================================================
30 // class declarations
31 // ===========================================================================
32 
33 class GNEVehicleType;
34 
35 // ===========================================================================
36 // class definitions
37 // ===========================================================================
38 
45 
46 public:
48  class VTypeAtributes : protected FXVerticalFrame {
51 
52  public:
54  class VClassRow : protected FXHorizontalFrame {
55 
56  public:
58  VClassRow(VTypeAtributes* VTypeAtributesParent, FXVerticalFrame* column);
59 
62 
65 
66  private:
69 
71  FXComboBox* myComboBoxVClass;
72 
75 
77  void setVClassLabelImage();
78  };
79 
81  class VShapeRow : protected FXHorizontalFrame {
82 
83  public:
85  VShapeRow(VTypeAtributes* VTypeAtributesParent, FXVerticalFrame* column);
86 
88  void setVariable();
89 
91  void updateValues();
92 
93  private:
96 
98  FXComboBox* myComboBoxShape;
99 
102 
104  void setVShapeLabelImage();
105 
106  };
107 
109  class VTypeAttributeRow : private FXHorizontalFrame {
110  public:
111 
113  enum RowAttrType {
118  };
119 
121  VTypeAttributeRow(VTypeAtributes* VTypeAtributesParent, FXVerticalFrame* verticalFrame, const SumoXMLAttr attr, const RowAttrType rowAttrType, const std::vector<std::string>& values = {});
122 
124  void setVariable();
125 
127  void setVariable(const std::string& defaultValue);
128 
130  void updateValue();
131 
133  void updateValue(const std::string& defaultValue);
134 
136  const FXButton* getButton() const;
137 
139  void openColorDialog();
140 
142  void openImageFileDialog();
143 
145  void openOSGFileDialog();
146 
147  private:
150 
153 
156 
158  FXButton* myButton;
159 
161  FXTextField* myTextField;
162 
164  FXComboBox* myComboBox;
165 
167  FXString filterAttributeName(const SumoXMLAttr attr) const;
168  };
169 
171  VTypeAtributes(GNEVehicleTypeDialog* vehicleTypeDialog, FXHorizontalFrame* column);
172 
174  void buildAttributesA(FXVerticalFrame* column);
175 
177  void buildAttributesB(FXVerticalFrame* column);
178 
180  void buildJunctionModelAttributesA(FXVerticalFrame* column);
181 
183  void buildJunctionModelAttributesB(FXVerticalFrame* column);
184 
186  void buildLaneChangeModelAttributes(FXVerticalFrame* column);
187 
189  void updateValues();
190 
194  long onCmdSetAttribute(FXObject*, FXSelector, void*);
195 
197  long onCmdSetAttributeDialog(FXObject* obj, FXSelector, void*);
198 
200 
201  protected:
203 
204 
206 
209 
212 
215 
218 
221 
224 
227 
230 
233 
236 
239 
242 
245 
248 
251 
254 
257 
260 
263 
266 
269 
272 
275 
278 
281 
284 
287 
289 
292 
295 
298 
301 
304 
307 
310 
313 
316 
319 
322 
324 
325 
328 
331 
334 
337 
340 
343 
346 
349 
352 
355 
358 
361 
364 
367 
370 
373 
376 
379 
382 
384  /* VTypeAttributeRow* myLCAExperimental; */
385 
387 
388  private:
391  };
392 
394  class CarFollowingModelParameters : public FXGroupBox {
397 
398  public:
400  CarFollowingModelParameters(GNEVehicleTypeDialog* vehicleTypeDialog, FXHorizontalFrame* column);
401 
403  void refreshCFMFields();
404 
406  void updateValues();
407 
411  long onCmdSetVariable(FXObject*, FXSelector, void*);
413 
414  protected:
416 
417 
418  class CarFollowingModelRow : public FXHorizontalFrame {
419  public:
421  CarFollowingModelRow(CarFollowingModelParameters* carFollowingModelParametersParent, FXVerticalFrame* verticalFrame, SumoXMLAttr attr);
422 
424  void setVariable();
425 
427  void updateValue();
428 
429  private:
432 
435 
437  FXTextField* myTextField;
438  };
439 
440  private:
443 
445  std::vector<CarFollowingModelRow*> myRows;
446 
449 
451  FXVerticalFrame* myVerticalFrameRows;
452 
455 
458 
461 
464 
467 
470 
473 
476 
479 
482 
485 
488 
491 
494 
497 
500 
503 
506 
509 
512 
515 
518 
521 
524  };
525 
527  GNEVehicleTypeDialog(GNEDemandElement* editedVehicleType, bool updatingElement);
528 
531 
535  long onCmdAccept(FXObject*, FXSelector, void*);
536 
538  long onCmdCancel(FXObject*, FXSelector, void*);
539 
541  long onCmdReset(FXObject*, FXSelector, void*);
542 
544  long onCmdSetVariable(FXObject*, FXSelector, void*);
546 
547 private:
550 
553 
556 
559 
562 
565 };
566 
567 #endif
GNEVehicleTypeDialog::VTypeAtributes::updateValues
void updateValues()
update values
Definition: GNEVehicleTypeDialog.cpp:945
GNEVehicleTypeDialog::VTypeAtributes::VClassRow::myComboBoxVClass
FXComboBox * myComboBoxVClass
FXComboBox for VClass.
Definition: GNEVehicleTypeDialog.h:71
GNEVehicleTypeDialog::VTypeAtributes::myLCAKeeprightParam
VTypeAttributeRow * myLCAKeeprightParam
VTypeAttributeRow for keep right param.
Definition: GNEVehicleTypeDialog.h:339
GNEVehicleTypeDialog::VTypeAtributes::buildLaneChangeModelAttributes
void buildLaneChangeModelAttributes(FXVerticalFrame *column)
build LaneChangeModel attributes
Definition: GNEVehicleTypeDialog.cpp:884
GNEVehicleTypeDialog::VTypeAtributes::myVehicleTypeDialog
GNEVehicleTypeDialog * myVehicleTypeDialog
VTypeAttributeRow for experimental.
Definition: GNEVehicleTypeDialog.h:390
GNEVehicleTypeDialog::CarFollowingModelParameters::myDeltaRow
CarFollowingModelRow * myDeltaRow
Row for MinGap (only for IDM)
Definition: GNEVehicleTypeDialog.h:481
SUMOVehicleClass
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
Definition: SUMOVehicleClass.h:133
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::updateValue
void updateValue()
update value of Vehicle Type (using default value obtained from GNEAttributeCarrier)
Definition: GNEVehicleTypeDialog.cpp:513
GNEDemandElement
An Element which don't belongs to GNENet but has influency in the simulation.
Definition: GNEDemandElement.h:55
GNEVehicleTypeDialog::VTypeAtributes::VClassRow::setVariable
SUMOVehicleClass setVariable()
set vehicle class
Definition: GNEVehicleTypeDialog.cpp:85
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::ROWTYPE_COMBOBOX
@ ROWTYPE_COMBOBOX
Definition: GNEVehicleTypeDialog.h:117
GNEVehicleTypeDialog::onCmdReset
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
Definition: GNEVehicleTypeDialog.cpp:1534
GNEVehicleTypeDialog::VTypeAtributes::VTypeAtributes
VTypeAtributes(GNEVehicleTypeDialog *vehicleTypeDialog, FXHorizontalFrame *column)
constructor
Definition: GNEVehicleTypeDialog.cpp:725
GNEVehicleTypeDialog::VTypeAtributes::VClassRow::setVClassLabelImage
void setVClassLabelImage()
set VClass texture
Definition: GNEVehicleTypeDialog.cpp:158
GNEVehicleTypeDialog::VTypeAtributes::myContainerCapacity
VTypeAttributeRow * myContainerCapacity
VTypeAttributeRow for ContainerCapacity.
Definition: GNEVehicleTypeDialog.h:265
GNEVehicleTypeDialog::CarFollowingModelParameters::myTmp2Row
CarFollowingModelRow * myTmp2Row
Row for TMP2.
Definition: GNEVehicleTypeDialog.h:496
GNEVehicleTypeDialog::VTypeAtributes::myLatAlignment
VTypeAttributeRow * myLatAlignment
VTypeAttributeRow for LatAlignment.
Definition: GNEVehicleTypeDialog.h:274
GNEVehicleTypeDialog::VTypeAtributes::myLCAAssertive
VTypeAttributeRow * myLCAAssertive
VTypeAttributeRow for assertive.
Definition: GNEVehicleTypeDialog.h:354
GNEVehicleTypeDialog::VTypeAtributes::buildAttributesB
void buildAttributesB(FXVerticalFrame *column)
build commmon attributes (B)
Definition: GNEVehicleTypeDialog.cpp:803
GNEVehicleTypeDialog::VTypeAtributes::myJMIgnoreFoeSpeed
VTypeAttributeRow * myJMIgnoreFoeSpeed
VTypeAttributeRow for Ignore FOE Speed.
Definition: GNEVehicleTypeDialog.h:312
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::myRowAttrType
const RowAttrType myRowAttrType
RowAttrType.
Definition: GNEVehicleTypeDialog.h:155
GNEVehicleTypeDialog::CarFollowingModelParameters::myTrauLastRow
CarFollowingModelRow * myTrauLastRow
Row for TauLast.
Definition: GNEVehicleTypeDialog.h:511
GNEVehicleTypeDialog::VTypeAtributes::myVClassRow
VClassRow * myVClassRow
vehicle class row
Definition: GNEVehicleTypeDialog.h:211
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::RowAttrType
RowAttrType
Attribute type.
Definition: GNEVehicleTypeDialog.h:113
GNEVehicleTypeDialog::CarFollowingModelParameters::myAccelRow
CarFollowingModelRow * myAccelRow
Row for Accel.
Definition: GNEVehicleTypeDialog.h:454
GNEVehicleTypeDialog::VTypeAtributes::myCarriageLength
VTypeAttributeRow * myCarriageLength
VTypeAttributeRow for carriage length.
Definition: GNEVehicleTypeDialog.h:250
GNEVehicleTypeDialog::VTypeAtributes::myLCAAccelLat
VTypeAttributeRow * myLCAAccelLat
VTypeAttributeRow for accel lat.
Definition: GNEVehicleTypeDialog.h:363
GNEVehicleTypeDialog::VTypeAtributes::myLCAMaxSpeedLatFactor
VTypeAttributeRow * myLCAMaxSpeedLatFactor
VTypeAttributeRow for max speed lat factor.
Definition: GNEVehicleTypeDialog.h:375
GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelRow
class used for represent rows with Car Following Model parameters
Definition: GNEVehicleTypeDialog.h:418
GNEVehicleTypeDialog::CarFollowingModelParameters::myAdaptFactorRow
CarFollowingModelRow * myAdaptFactorRow
Row for Adapt Factor.
Definition: GNEVehicleTypeDialog.h:517
GNEVehicleTypeDialog::VTypeAtributes::myJMDriveRedSpeed
VTypeAttributeRow * myJMDriveRedSpeed
VTypeAttributeRow for Drive Red Speed.
Definition: GNEVehicleTypeDialog.h:306
GNEVehicleTypeDialog::VTypeAtributes::myJMIgnoreFoeProb
VTypeAttributeRow * myJMIgnoreFoeProb
VTypeAttributeRow for Ignore FOE Probability.
Definition: GNEVehicleTypeDialog.h:309
GNEVehicleTypeDialog::VTypeAtributes::VShapeRow::setVShapeLabelImage
void setVShapeLabelImage()
set VShape texture
Definition: GNEVehicleTypeDialog.cpp:301
GNEVehicleTypeDialog::VTypeAtributes::myJMCrossingGap
VTypeAttributeRow * myJMCrossingGap
VTypeAttributeRow for Crossing Gap.
Definition: GNEVehicleTypeDialog.h:294
GNEVehicleTypeDialog::VTypeAtributes::myLocomotiveLength
VTypeAttributeRow * myLocomotiveLength
VTypeAttributeRow for locomotive length.
Definition: GNEVehicleTypeDialog.h:253
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::openOSGFileDialog
void openOSGFileDialog()
open OSG file dialog
Definition: GNEVehicleTypeDialog.cpp:628
GNEVehicleTypeDialog::CarFollowingModelParameters::myTmp5Row
CarFollowingModelRow * myTmp5Row
Row for TMP5.
Definition: GNEVehicleTypeDialog.h:505
GNEVehicleTypeDialog::VTypeAtributes::myMinGapLat
VTypeAttributeRow * myMinGapLat
VTypeAttributeRow for MinGapLat.
Definition: GNEVehicleTypeDialog.h:277
GNEVehicleTypeDialog::onCmdSetVariable
long onCmdSetVariable(FXObject *, FXSelector, void *)
@event after change a variable of vehicle type
GNEVehicleTypeDialog::CarFollowingModelParameters::myTrainTypeRow
CarFollowingModelRow * myTrainTypeRow
Row for TrainType.
Definition: GNEVehicleTypeDialog.h:508
GNEVehicleTypeDialog::CarFollowingModelParameters::myComboBoxCarFollowModel
FXComboBox * myComboBoxCarFollowModel
Row for CarFollowModel.
Definition: GNEVehicleTypeDialog.h:448
GNEVehicleTypeDialog::CarFollowingModelParameters::myEmergencyDecelRow
CarFollowingModelRow * myEmergencyDecelRow
Row for emergency Decel.
Definition: GNEVehicleTypeDialog.h:463
GNEVehicleTypeDialog::VTypeAtributes::myColor
VTypeAttributeRow * myColor
VTypeAttributeRow for color.
Definition: GNEVehicleTypeDialog.h:214
GNEVehicleTypeDialog::VTypeAtributes::myJMDriveAfterYellowTime
VTypeAttributeRow * myJMDriveAfterYellowTime
VTypeAttributeRow for Drive After Yellow Time.
Definition: GNEVehicleTypeDialog.h:300
GNEVehicleTypeDialog::VTypeAtributes::myLCAPushygap
VTypeAttributeRow * myLCAPushygap
VTypeAttributeRow for pushy gap.
Definition: GNEVehicleTypeDialog.h:351
GNEVehicleTypeDialog::CarFollowingModelParameters::myTmp4Row
CarFollowingModelRow * myTmp4Row
Row for TMP4.
Definition: GNEVehicleTypeDialog.h:502
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::filterAttributeName
FXString filterAttributeName(const SumoXMLAttr attr) const
filter attribute name
Definition: GNEVehicleTypeDialog.cpp:655
GNEVehicleTypeDialog::VTypeAtributes::VShapeRow::VShapeRow
VShapeRow(VTypeAtributes *VTypeAtributesParent, FXVerticalFrame *column)
constructor
Definition: GNEVehicleTypeDialog.cpp:254
GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelRow::myAttr
SumoXMLAttr myAttr
edited attribute
Definition: GNEVehicleTypeDialog.h:434
GNEVehicleTypeDialog::VTypeAtributes::myLCASublaneParam
VTypeAttributeRow * myLCASublaneParam
VTypeAttributeRow for sublane param.
Definition: GNEVehicleTypeDialog.h:342
GNEVehicleTypeDialog::CarFollowingModelParameters::mySigmaRow
CarFollowingModelRow * mySigmaRow
Row for Sigma.
Definition: GNEVehicleTypeDialog.h:466
GNEVehicleTypeDialog::VTypeAtributes::myLCATurnAlignmentDistance
VTypeAttributeRow * myLCATurnAlignmentDistance
VTypeAttributeRow for turn alignment distance.
Definition: GNEVehicleTypeDialog.h:378
GNEVehicleTypeDialog::VTypeAtributes::myOSGFile
VTypeAttributeRow * myOSGFile
VTypeAttributeRow for OSG.
Definition: GNEVehicleTypeDialog.h:247
GNEVehicleTypeDialog::CarFollowingModelParameters::myKRow
CarFollowingModelRow * myKRow
Row for MinGap (only for Kerner)
Definition: GNEVehicleTypeDialog.h:475
GNEVehicleTypeDialog::VTypeAtributes::myLCACooperativeParam
VTypeAttributeRow * myLCACooperativeParam
VTypeAttributeRow for cooperative param.
Definition: GNEVehicleTypeDialog.h:333
GNEVehicleTypeDialog::VTypeAtributes::myJMImpatience
VTypeAttributeRow * myJMImpatience
VTypeAttributeRow for Impatience.
Definition: GNEVehicleTypeDialog.h:321
GNEVehicleTypeDialog::VTypeAtributes::myVShapeRow
VShapeRow * myVShapeRow
vehicle shape row
Definition: GNEVehicleTypeDialog.h:235
GNEVehicleTypeDialog::VTypeAtributes::myHeight
VTypeAttributeRow * myHeight
VTypeAttributeRow for Height.
Definition: GNEVehicleTypeDialog.h:241
GNEVehicleTypeDialog::myVTypeAtributes
VTypeAtributes * myVTypeAtributes
Vehicle Type Common Attributes.
Definition: GNEVehicleTypeDialog.h:555
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::myVTypeAtributesParent
VTypeAtributes * myVTypeAtributesParent
pointer to VTypeAttributeParameters parent
Definition: GNEVehicleTypeDialog.h:149
GNEVehicleTypeDialog::CarFollowingModelParameters::myPhiRow
CarFollowingModelRow * myPhiRow
Row for MinGap (only for Kerner)
Definition: GNEVehicleTypeDialog.h:478
GNEVehicleTypeDialog::VTypeAtributes::myLCAMaxSpeedLatStanding
VTypeAttributeRow * myLCAMaxSpeedLatStanding
VTypeAttributeRow for max speed lat standing.
Definition: GNEVehicleTypeDialog.h:372
GNEVehicleTypeDialog::VTypeAtributes::myLCAPushy
VTypeAttributeRow * myLCAPushy
VTypeAttributeRow for pushy.
Definition: GNEVehicleTypeDialog.h:348
GNEVehicleTypeDialog::VTypeAtributes::mySpeedDev
VTypeAttributeRow * mySpeedDev
VTypeAttributeRow for SpeedDev.
Definition: GNEVehicleTypeDialog.h:229
GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelRow::myCarFollowingModelParametersParent
CarFollowingModelParameters * myCarFollowingModelParametersParent
pointer to CarFollowingModelParameters parent
Definition: GNEVehicleTypeDialog.h:431
GNEVehicleTypeDialog::CarFollowingModelParameters::myTauRow
CarFollowingModelRow * myTauRow
Row for Tau.
Definition: GNEVehicleTypeDialog.h:469
GNEVehicleTypeDialog::CarFollowingModelParameters::mySteppingRow
CarFollowingModelRow * mySteppingRow
Row for MinGap(only for IDM)
Definition: GNEVehicleTypeDialog.h:484
GNEVehicleTypeDialog::VTypeAtributes::VShapeRow::setVariable
void setVariable()
set variables
Definition: GNEVehicleTypeDialog.cpp:278
GNEVehicleTypeDialog::VTypeAtributes::VShapeRow
class for VShapeRow
Definition: GNEVehicleTypeDialog.h:81
GNEVehicleTypeDialog::~GNEVehicleTypeDialog
~GNEVehicleTypeDialog()
destructor
Definition: GNEVehicleTypeDialog.cpp:1493
GNEVehicleTypeDialog::VTypeAtributes::myJMIgnoreKeepclearTime
VTypeAttributeRow * myJMIgnoreKeepclearTime
VTypeAttributeRow for Ignore Keep Clear Time.
Definition: GNEVehicleTypeDialog.h:297
GNEVehicleTypeDialog::VTypeAtributes::VClassRow::VClassRow
VClassRow(VTypeAtributes *VTypeAtributesParent, FXVerticalFrame *column)
constructor
Definition: GNEVehicleTypeDialog.cpp:58
GNEVehicleTypeDialog::CarFollowingModelParameters::myLabelIncompleteAttribute
FXLabel * myLabelIncompleteAttribute
temporal label for incomplete attributes
Definition: GNEVehicleTypeDialog.h:523
GNEDemandElementDialog
Dialog to edit sequences, parameters, etc.. of DemandElements.
Definition: GNEDemandElementDialog.h:44
GNEVehicleTypeDialog::VTypeAtributes::myLCAOvertakeRight
VTypeAttributeRow * myLCAOvertakeRight
VTypeAttributeRow for overtake right.
Definition: GNEVehicleTypeDialog.h:381
GNEVehicleTypeDialog::GNEVehicleTypeDialog
GNEVehicleTypeDialog(GNEDemandElement *editedVehicleType, bool updatingElement)
constructor
Definition: GNEVehicleTypeDialog.cpp:1457
GNEVehicleTypeDialog::CarFollowingModelParameters::myMinGapFactorRow
CarFollowingModelRow * myMinGapFactorRow
Row for MinGapFactor.
Definition: GNEVehicleTypeDialog.h:472
GNEVehicleType
Definition: GNEVehicleType.h:36
GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelRow::myTextField
FXTextField * myTextField
text field
Definition: GNEVehicleTypeDialog.h:437
GNEVehicleTypeDialog::VTypeAtributes::myCarriageGap
VTypeAttributeRow * myCarriageGap
VTypeAttributeRow for carriage GAP.
Definition: GNEVehicleTypeDialog.h:256
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::ROWTYPE_COLOR
@ ROWTYPE_COLOR
Definition: GNEVehicleTypeDialog.h:115
SUMOVehicleClass.h
GNEVehicleTypeDialog::VTypeAtributes::myLoadingDuration
VTypeAttributeRow * myLoadingDuration
VTypeAttributeRow for LoadingDuration.
Definition: GNEVehicleTypeDialog.h:271
GNEVehicleTypeDialog::VTypeAtributes
class for VClasses
Definition: GNEVehicleTypeDialog.h:48
GNEVehicleTypeDialog::VTypeAtributes::myWidth
VTypeAttributeRow * myWidth
VTypeAttributeRow for Width.
Definition: GNEVehicleTypeDialog.h:238
GNEVehicleTypeDialog::VTypeAtributes::VClassRow::myVTypeAtributesParent
VTypeAtributes * myVTypeAtributesParent
pointer to VTypeAtributes parent
Definition: GNEVehicleTypeDialog.h:68
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::setVariable
void setVariable()
set Variablen in VehicleType (using default value obtained from GNEAttributeCarrier)
Definition: GNEVehicleTypeDialog.cpp:434
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::ROWTYPE_STRING
@ ROWTYPE_STRING
Definition: GNEVehicleTypeDialog.h:114
FOX_CONSTRUCTOR
#define FOX_CONSTRUCTOR(classname)
Definition: config.h:13
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::VTypeAttributeRow
VTypeAttributeRow(VTypeAtributes *VTypeAtributesParent, FXVerticalFrame *verticalFrame, const SumoXMLAttr attr, const RowAttrType rowAttrType, const std::vector< std::string > &values={})
constructor
Definition: GNEVehicleTypeDialog.cpp:396
GNEVehicleTypeDialog::operator=
GNEVehicleTypeDialog & operator=(const GNEVehicleTypeDialog &)=delete
Invalidated assignment operator.
GNEVehicleTypeDialog::VTypeAtributes::myMaxSpeed
VTypeAttributeRow * myMaxSpeed
VTypeAttributeRow for MaxSpeed.
Definition: GNEVehicleTypeDialog.h:223
GNEVehicleTypeDialog::VTypeAtributes::buildJunctionModelAttributesB
void buildJunctionModelAttributesB(FXVerticalFrame *column)
build JunctionModel attributes (B)
Definition: GNEVehicleTypeDialog.cpp:865
GNEVehicleTypeDialog::VTypeAtributes::buildAttributesA
void buildAttributesA(FXVerticalFrame *column)
build commmon attributes (A)
Definition: GNEVehicleTypeDialog.cpp:755
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::myButton
FXButton * myButton
button
Definition: GNEVehicleTypeDialog.h:158
GNEVehicleTypeDialog::VTypeAtributes::VShapeRow::myComboBoxShape
FXComboBox * myComboBoxShape
FXComboBox for Shape.
Definition: GNEVehicleTypeDialog.h:98
GNEVehicleTypeDialog::onCmdCancel
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
Definition: GNEVehicleTypeDialog.cpp:1524
GNEVehicleTypeDialog::CarFollowingModelParameters::myTmp3Row
CarFollowingModelRow * myTmp3Row
Row for TMP3.
Definition: GNEVehicleTypeDialog.h:499
GNEVehicleTypeDialog::myVehicleTypeValid
bool myVehicleTypeValid
flag to check if current vehicleType is valid
Definition: GNEVehicleTypeDialog.h:549
GNEVehicleTypeDialog::VTypeAtributes::myPersonCapacity
VTypeAttributeRow * myPersonCapacity
VTypeAttributeRow for PersonCapacity.
Definition: GNEVehicleTypeDialog.h:262
GNEVehicleTypeDialog::VTypeAtributes::myLength
VTypeAttributeRow * myLength
VTypeAttributeRow for Length.
Definition: GNEVehicleTypeDialog.h:217
GNEVehicleTypeDialog::VTypeAtributes::myLCAStrategicParam
VTypeAttributeRow * myLCAStrategicParam
VTypeAttributeRow for strategic param.
Definition: GNEVehicleTypeDialog.h:330
GNEVehicleTypeDialog::CarFollowingModelParameters::myVehicleTypeDialog
GNEVehicleTypeDialog * myVehicleTypeDialog
pointer to Vehicle Type dialog parent
Definition: GNEVehicleTypeDialog.h:442
GNEVehicleTypeDialog::CarFollowingModelParameters::myEstimationRow
CarFollowingModelRow * myEstimationRow
Row for Estimation (only for Wiedemann)
Definition: GNEVehicleTypeDialog.h:490
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::getButton
const FXButton * getButton() const
get button
Definition: GNEVehicleTypeDialog.cpp:570
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::openImageFileDialog
void openImageFileDialog()
open image file dialog
Definition: GNEVehicleTypeDialog.cpp:601
GNEVehicleTypeDialog::VTypeAtributes::myMaxSpeedLat
VTypeAttributeRow * myMaxSpeedLat
VTypeAttributeRow for MaxSpeedLat.
Definition: GNEVehicleTypeDialog.h:280
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::openColorDialog
void openColorDialog()
open color dialog
Definition: GNEVehicleTypeDialog.cpp:576
GNEVehicleTypeDialog::myInvalidAttr
SumoXMLAttr myInvalidAttr
current sumo attribute invalid
Definition: GNEVehicleTypeDialog.h:552
GNEVehicleTypeDialog::VTypeAtributes::myEmissionClass
VTypeAttributeRow * myEmissionClass
VTypeAttributeRow for EmissionClass.
Definition: GNEVehicleTypeDialog.h:232
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::ROWTYPE_FILENAME
@ ROWTYPE_FILENAME
Definition: GNEVehicleTypeDialog.h:116
GNEVehicleTypeDialog::CarFollowingModelParameters::myVerticalFrameRows
FXVerticalFrame * myVerticalFrameRows
Vertical Frame for CarFollowingModelRow.
Definition: GNEVehicleTypeDialog.h:451
GNEVehicleTypeDialog::CarFollowingModelParameters::myRows
std::vector< CarFollowingModelRow * > myRows
vector with the Car Following Model Row
Definition: GNEVehicleTypeDialog.h:445
GNEVehicleTypeDialog::CarFollowingModelParameters::myDecelRow
CarFollowingModelRow * myDecelRow
Row for Decel.
Definition: GNEVehicleTypeDialog.h:457
GNEVehicleTypeDialog::VTypeAtributes::VShapeRow::myVTypeAtributesParent
VTypeAtributes * myVTypeAtributesParent
pointer to VTypeAtributes parent
Definition: GNEVehicleTypeDialog.h:95
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::myAttr
const SumoXMLAttr myAttr
edited attribute
Definition: GNEVehicleTypeDialog.h:152
GNEVehicleTypeDialog::CarFollowingModelParameters::myAprobRow
CarFollowingModelRow * myAprobRow
Row for Aprob.
Definition: GNEVehicleTypeDialog.h:514
GNEVehicleTypeDialog::CarFollowingModelParameters
class for CarFollowingModel
Definition: GNEVehicleTypeDialog.h:394
GNEVehicleTypeDialog::VTypeAtributes::myLCAImpatience
VTypeAttributeRow * myLCAImpatience
VTypeAttributeRow for impatience.
Definition: GNEVehicleTypeDialog.h:357
GNEVehicleTypeDialog::VTypeAtributes::myJMTimeGapMinor
VTypeAttributeRow * myJMTimeGapMinor
VTypeAttributeRow for Time GAP Minor.
Definition: GNEVehicleTypeDialog.h:318
GNEVehicleTypeDialog::CarFollowingModelParameters::mySecurityRow
CarFollowingModelRow * mySecurityRow
Row for Security (only for Wiedemann)
Definition: GNEVehicleTypeDialog.h:487
GNEVehicleTypeDialog
Dialog for edit rerouter intervals.
Definition: GNEVehicleTypeDialog.h:44
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow
class used for represent rows with Vehicle Type parameters
Definition: GNEVehicleTypeDialog.h:109
GNEVehicleTypeDialog::CarFollowingModelParameters::myTmp1Row
CarFollowingModelRow * myTmp1Row
Row for TMP1.
Definition: GNEVehicleTypeDialog.h:493
GNEVehicleTypeDialog::VTypeAtributes::myTextFieldVehicleTypeID
FXTextField * myTextFieldVehicleTypeID
FXTextfield for vehicleTypeID.
Definition: GNEVehicleTypeDialog.h:205
GNEVehicleTypeDialog::VTypeAtributes::VShapeRow::myComboBoxShapeLabelImage
FXLabel * myComboBoxShapeLabelImage
label with image of Shape
Definition: GNEVehicleTypeDialog.h:101
GNEVehicleTypeDialog::VTypeAtributes::myLCAOppositeParam
VTypeAttributeRow * myLCAOppositeParam
VTypeAttributeRow for opposite param.
Definition: GNEVehicleTypeDialog.h:345
GNEDemandElementDialog.h
GNEVehicleTypeDialog::VTypeAtributes::myLCALookAheadLeft
VTypeAttributeRow * myLCALookAheadLeft
VTypeAttributeRow for loock ahead left.
Definition: GNEVehicleTypeDialog.h:366
GNEVehicleTypeDialog::VTypeAtributes::myJMDriveAfterRedTime
VTypeAttributeRow * myJMDriveAfterRedTime
VTypeAttributeRow for Drive After Red Time.
Definition: GNEVehicleTypeDialog.h:303
GNEVehicleTypeDialog::CarFollowingModelParameters::myAdaptTimeRow
CarFollowingModelRow * myAdaptTimeRow
Row for Adapt Time.
Definition: GNEVehicleTypeDialog.h:520
GNEVehicleTypeDialog::VTypeAtributes::onCmdSetAttribute
long onCmdSetAttribute(FXObject *, FXSelector, void *)
Definition: GNEVehicleTypeDialog.cpp:1011
config.h
GNEVehicleTypeDialog::VTypeAtributes::myFilename
VTypeAttributeRow * myFilename
VTypeAttributeRow for Filename.
Definition: GNEVehicleTypeDialog.h:244
GNEVehicleTypeDialog::VTypeAtributes::onCmdSetAttributeDialog
long onCmdSetAttributeDialog(FXObject *obj, FXSelector, void *)
@event called after press a button dialog
Definition: GNEVehicleTypeDialog.cpp:1102
GNEVehicleTypeDialog::onCmdAccept
long onCmdAccept(FXObject *, FXSelector, void *)
Definition: GNEVehicleTypeDialog.cpp:1497
GNEVehicleTypeDialog::VTypeAtributes::myProbability
VTypeAttributeRow * myProbability
VTypeAttributeRow for Probability.
Definition: GNEVehicleTypeDialog.h:286
GNEVehicleTypeDialog::VTypeAtributes::buildJunctionModelAttributesA
void buildJunctionModelAttributesA(FXVerticalFrame *column)
build JunctionModel attributes (A)
Definition: GNEVehicleTypeDialog.cpp:846
GNEVehicleTypeDialog::VTypeAtributes::myLCATimeToImpatience
VTypeAttributeRow * myLCATimeToImpatience
VTypeAttributeRow for time to impatience.
Definition: GNEVehicleTypeDialog.h:360
GNEVehicleTypeDialog::VTypeAtributes::myBoardingDuration
VTypeAttributeRow * myBoardingDuration
VTypeAttributeRow for BoardingDuration.
Definition: GNEVehicleTypeDialog.h:268
GNEVehicleTypeDialog::myCarFollowingModelParameters
CarFollowingModelParameters * myCarFollowingModelParameters
Car Following model parameters.
Definition: GNEVehicleTypeDialog.h:558
GNEVehicleTypeDialog::VTypeAtributes::mySpeedFactor
VTypeAttributeRow * mySpeedFactor
VTypeAttributeRow for SpeedFactor.
Definition: GNEVehicleTypeDialog.h:226
GNEVehicleTypeDialog::VTypeAtributes::myLCASpeedgainParam
VTypeAttributeRow * myLCASpeedgainParam
VTypeAttributeRow for speed gain param.
Definition: GNEVehicleTypeDialog.h:336
GNEVehicleTypeDialog::VTypeAtributes::myMinGap
VTypeAttributeRow * myMinGap
VTypeAttributeRow for MinGap.
Definition: GNEVehicleTypeDialog.h:220
GNEVehicleTypeDialog::VTypeAtributes::VClassRow::myComboBoxVClassLabelImage
FXLabel * myComboBoxVClassLabelImage
label with image of VClass
Definition: GNEVehicleTypeDialog.h:74
GNEVehicleTypeDialog::VTypeAtributes::VShapeRow::updateValues
void updateValues()
update values
Definition: GNEVehicleTypeDialog.cpp:294
SumoXMLAttr
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
Definition: SUMOXMLDefinitions.h:372
GNEVehicleTypeDialog::CarFollowingModelParameters::myApparentDecelRow
CarFollowingModelRow * myApparentDecelRow
Row for aparent Decel.
Definition: GNEVehicleTypeDialog.h:460
GNEVehicleTypeDialog::VTypeAtributes::myJMSigmaMinor
VTypeAttributeRow * myJMSigmaMinor
VTypeAttributeRow for Sigma Minor.
Definition: GNEVehicleTypeDialog.h:315
GNEVehicleTypeDialog::VTypeAtributes::myLCASpeedGainRight
VTypeAttributeRow * myLCASpeedGainRight
VTypeAttributeRow for speed gain right.
Definition: GNEVehicleTypeDialog.h:369
GNEVehicleTypeDialog::VTypeAtributes::myActionStepLength
VTypeAttributeRow * myActionStepLength
VTypeAttributeRow for ActionStepLength.
Definition: GNEVehicleTypeDialog.h:283
GNEVehicleTypeDialog::VTypeAtributes::VClassRow::updateValue
SUMOVehicleClass updateValue()
update values
Definition: GNEVehicleTypeDialog.cpp:150
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::myTextField
FXTextField * myTextField
text field
Definition: GNEVehicleTypeDialog.h:161
GNEVehicleTypeDialog::VTypeAtributes::VClassRow
FOX-declaration.
Definition: GNEVehicleTypeDialog.h:54
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::myComboBox
FXComboBox * myComboBox
ComboBox for attributes with limited values.
Definition: GNEVehicleTypeDialog.h:164
GNEVehicleTypeDialog::VTypeAtributes::myLaneChangeModel
VTypeAttributeRow * myLaneChangeModel
VTypeAttributeRow for LaneChangeModel.
Definition: GNEVehicleTypeDialog.h:259