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 /****************************************************************************/
15 // Dialog for edit vehicleTypes
16 /****************************************************************************/
17 #ifndef GNEVehicleTypeDialog_h
18 #define GNEVehicleTypeDialog_h
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 
24 #include <config.h>
25 
27 
28 #include "GNEDemandElementDialog.h"
29 
30 // ===========================================================================
31 // class declarations
32 // ===========================================================================
33 
34 class GNEVehicleType;
35 
36 // ===========================================================================
37 // class definitions
38 // ===========================================================================
39 
46 
47 public:
49  class VTypeAtributes : protected FXVerticalFrame {
52 
53  public:
55  class VClassRow : protected FXHorizontalFrame {
56 
57  public:
59  VClassRow(VTypeAtributes* VTypeAtributesParent, FXVerticalFrame* column);
60 
63 
66 
67  private:
70 
72  FXComboBox* myComboBoxVClass;
73 
76 
78  void setVClassLabelImage();
79  };
80 
82  class VShapeRow : protected FXHorizontalFrame {
83 
84  public:
86  VShapeRow(VTypeAtributes* VTypeAtributesParent, FXVerticalFrame* column);
87 
89  void setVariable();
90 
92  void updateValues();
93 
94  private:
97 
99  FXComboBox* myComboBoxShape;
100 
103 
105  void setVShapeLabelImage();
106 
107  };
108 
110  class VTypeAttributeRow : private FXHorizontalFrame {
111  public:
112 
114  enum RowAttrType {
121  };
122 
124  VTypeAttributeRow(VTypeAtributes* VTypeAtributesParent, FXVerticalFrame* verticalFrame, const SumoXMLAttr attr, const RowAttrType rowAttrType, const std::vector<std::string>& values = {});
125 
127  void setVariable();
128 
130  void setVariable(const std::string& defaultValue);
131 
133  void updateValue();
134 
136  void updateValue(const std::string& defaultValue);
137 
139  const FXButton* getButton() const;
140 
142  void openColorDialog();
143 
145  void openImageFileDialog();
146 
148  void openOSGFileDialog();
149 
150  private:
153 
156 
159 
161  FXButton* myButton;
162 
164  FXTextField* myTextField;
165 
167  FXComboBox* myComboBox;
168 
170  FXString filterAttributeName(const SumoXMLAttr attr) const;
171  };
172 
174  VTypeAtributes(GNEVehicleTypeDialog* vehicleTypeDialog, FXHorizontalFrame* column);
175 
177  void buildAttributesA(FXVerticalFrame* column);
178 
180  void buildAttributesB(FXVerticalFrame* column);
181 
183  void buildJunctionModelAttributesA(FXVerticalFrame* column);
184 
186  void buildJunctionModelAttributesB(FXVerticalFrame* column);
187 
189  void buildLaneChangeModelAttributes(FXVerticalFrame* column);
190 
192  void updateValues();
193 
197  long onCmdSetAttribute(FXObject*, FXSelector, void*);
198 
200  long onCmdSetAttributeDialog(FXObject* obj, FXSelector, void*);
201 
203 
204  protected:
207 
210 
213 
216 
219 
222 
225 
228 
231 
234 
237 
240 
243 
246 
249 
252 
255 
258 
261 
264 
267 
270 
273 
276 
279 
282 
285 
288 
291 
294 
296 
299 
302 
305 
308 
311 
314 
317 
320 
323 
326 
329 
331 
332 
335 
338 
341 
344 
347 
350 
353 
356 
359 
362 
365 
368 
371 
374 
377 
380 
383 
386 
389 
391  /* VTypeAttributeRow* myLCAExperimental; */
392 
394 
395  private:
398  };
399 
401  class CarFollowingModelParameters : public FXGroupBox {
404 
405  public:
407  CarFollowingModelParameters(GNEVehicleTypeDialog* vehicleTypeDialog, FXHorizontalFrame* column);
408 
410  void refreshCFMFields();
411 
413  void updateValues();
414 
418  long onCmdSetVariable(FXObject*, FXSelector, void*);
420 
421  protected:
424 
426  class CarFollowingModelRow : public FXHorizontalFrame {
427  public:
429  CarFollowingModelRow(CarFollowingModelParameters* carFollowingModelParametersParent, FXVerticalFrame* verticalFrame, SumoXMLAttr attr, bool allowString = false);
430 
432  void setVariable();
433 
435  void updateValue();
436 
437  private:
440 
443 
445  FXTextField* myTextField;
446  };
447 
448  private:
451 
453  std::vector<CarFollowingModelRow*> myRows;
454 
457 
459  FXVerticalFrame* myVerticalFrameRows;
460 
463 
466 
469 
472 
475 
478 
481 
484 
487 
490 
493 
496 
499 
502 
505 
508 
511 
514 
517 
520 
523 
526 
529 
532  };
533 
535  GNEVehicleTypeDialog(GNEDemandElement* editedVehicleType, bool updatingElement);
536 
539 
543  long onCmdAccept(FXObject*, FXSelector, void*);
544 
546  long onCmdCancel(FXObject*, FXSelector, void*);
547 
549  long onCmdReset(FXObject*, FXSelector, void*);
550 
552  long onCmdSetVariable(FXObject*, FXSelector, void*);
554 
555 private:
558 
561 
564 
567 
570 
573 };
574 
575 #endif
GNEVehicleTypeDialog::VTypeAtributes::updateValues
void updateValues()
update values
Definition: GNEVehicleTypeDialog.cpp:953
GNEVehicleTypeDialog::VTypeAtributes::VClassRow::myComboBoxVClass
FXComboBox * myComboBoxVClass
FXComboBox for VClass.
Definition: GNEVehicleTypeDialog.h:72
GNEVehicleTypeDialog::VTypeAtributes::myLCAKeeprightParam
VTypeAttributeRow * myLCAKeeprightParam
VTypeAttributeRow for keep right param.
Definition: GNEVehicleTypeDialog.h:346
GNEVehicleTypeDialog::VTypeAtributes::buildLaneChangeModelAttributes
void buildLaneChangeModelAttributes(FXVerticalFrame *column)
build LaneChangeModel attributes
Definition: GNEVehicleTypeDialog.cpp:892
GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelRow::setVariable
void setVariable()
set Variablen in VehicleType
Definition: GNEVehicleTypeDialog.cpp:1573
GNEVehicleTypeDialog::VTypeAtributes::myVehicleTypeDialog
GNEVehicleTypeDialog * myVehicleTypeDialog
VTypeAttributeRow for experimental.
Definition: GNEVehicleTypeDialog.h:397
GNEVehicleTypeDialog::CarFollowingModelParameters::myDeltaRow
CarFollowingModelRow * myDeltaRow
Row for MinGap (only for IDM)
Definition: GNEVehicleTypeDialog.h:489
SUMOVehicleClass
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
Definition: SUMOVehicleClass.h:134
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::updateValue
void updateValue()
update value of Vehicle Type (using default value obtained from GNEAttributeCarrier)
Definition: GNEVehicleTypeDialog.cpp:518
GNEDemandElement
An Element which don't belongs to GNENet but has influency in the simulation.
Definition: GNEDemandElement.h:54
GNEVehicleTypeDialog::VTypeAtributes::VClassRow::setVariable
SUMOVehicleClass setVariable()
set vehicle class
Definition: GNEVehicleTypeDialog.cpp:86
GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelParameters
CarFollowingModelParameters()
fox need this
Definition: GNEVehicleTypeDialog.h:423
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::ROWTYPE_COMBOBOX
Definition: GNEVehicleTypeDialog.h:120
GNEVehicleTypeDialog::onCmdReset
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
Definition: GNEVehicleTypeDialog.cpp:1544
GNEVehicleTypeDialog::VTypeAtributes::VClassRow::setVClassLabelImage
void setVClassLabelImage()
set VClass texture
Definition: GNEVehicleTypeDialog.cpp:159
GNEVehicleTypeDialog::VTypeAtributes::myContainerCapacity
VTypeAttributeRow * myContainerCapacity
VTypeAttributeRow for ContainerCapacity.
Definition: GNEVehicleTypeDialog.h:269
GNEVehicleTypeDialog::CarFollowingModelParameters::myTmp2Row
CarFollowingModelRow * myTmp2Row
Row for TMP2.
Definition: GNEVehicleTypeDialog.h:504
GNEVehicleTypeDialog::VTypeAtributes::myLatAlignment
VTypeAttributeRow * myLatAlignment
VTypeAttributeRow for LatAlignment.
Definition: GNEVehicleTypeDialog.h:278
GNEVehicleTypeDialog::VTypeAtributes::myLCAAssertive
VTypeAttributeRow * myLCAAssertive
VTypeAttributeRow for assertive.
Definition: GNEVehicleTypeDialog.h:361
GNEVehicleTypeDialog::VTypeAtributes::buildAttributesB
void buildAttributesB(FXVerticalFrame *column)
build commmon attributes (B)
Definition: GNEVehicleTypeDialog.cpp:808
GNEVehicleTypeDialog::VTypeAtributes::myJMIgnoreFoeSpeed
VTypeAttributeRow * myJMIgnoreFoeSpeed
VTypeAttributeRow for Ignore FOE Speed.
Definition: GNEVehicleTypeDialog.h:319
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::myRowAttrType
const RowAttrType myRowAttrType
RowAttrType.
Definition: GNEVehicleTypeDialog.h:158
GNEVehicleTypeDialog::CarFollowingModelParameters::myTrauLastRow
CarFollowingModelRow * myTrauLastRow
Row for TauLast.
Definition: GNEVehicleTypeDialog.h:519
GNEVehicleTypeDialog::VTypeAtributes::myVClassRow
VClassRow * myVClassRow
vehicle class row
Definition: GNEVehicleTypeDialog.h:215
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::RowAttrType
RowAttrType
Attribute type.
Definition: GNEVehicleTypeDialog.h:114
GNEVehicleTypeDialog::CarFollowingModelParameters::myAccelRow
CarFollowingModelRow * myAccelRow
Row for Accel.
Definition: GNEVehicleTypeDialog.h:462
GNEVehicleTypeDialog::VTypeAtributes::myCarriageLength
VTypeAttributeRow * myCarriageLength
VTypeAttributeRow for carriage length.
Definition: GNEVehicleTypeDialog.h:254
GNEVehicleTypeDialog::VTypeAtributes::myLCAAccelLat
VTypeAttributeRow * myLCAAccelLat
VTypeAttributeRow for accel lat.
Definition: GNEVehicleTypeDialog.h:370
GNEVehicleTypeDialog::VTypeAtributes::myLCAMaxSpeedLatFactor
VTypeAttributeRow * myLCAMaxSpeedLatFactor
VTypeAttributeRow for max speed lat factor.
Definition: GNEVehicleTypeDialog.h:382
GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelRow
class used for represent rows with Car Following Model parameters
Definition: GNEVehicleTypeDialog.h:426
GNEVehicleTypeDialog::CarFollowingModelParameters::myAdaptFactorRow
CarFollowingModelRow * myAdaptFactorRow
Row for Adapt Factor.
Definition: GNEVehicleTypeDialog.h:525
GNEVehicleTypeDialog::VTypeAtributes::myJMDriveRedSpeed
VTypeAttributeRow * myJMDriveRedSpeed
VTypeAttributeRow for Drive Red Speed.
Definition: GNEVehicleTypeDialog.h:313
GNEVehicleTypeDialog::VTypeAtributes::myJMIgnoreFoeProb
VTypeAttributeRow * myJMIgnoreFoeProb
VTypeAttributeRow for Ignore FOE Probability.
Definition: GNEVehicleTypeDialog.h:316
GNEVehicleTypeDialog::VTypeAtributes::VShapeRow::setVShapeLabelImage
void setVShapeLabelImage()
set VShape texture
Definition: GNEVehicleTypeDialog.cpp:302
GNEVehicleTypeDialog::VTypeAtributes::myActionStepLenght
VTypeAttributeRow * myActionStepLenght
VTypeAttributeRow for ActionStepLenght.
Definition: GNEVehicleTypeDialog.h:287
GNEVehicleTypeDialog::VTypeAtributes::myJMCrossingGap
VTypeAttributeRow * myJMCrossingGap
VTypeAttributeRow for Crossing Gap.
Definition: GNEVehicleTypeDialog.h:301
GNEVehicleTypeDialog::VTypeAtributes::myLocomotiveLength
VTypeAttributeRow * myLocomotiveLength
VTypeAttributeRow for locomotive length.
Definition: GNEVehicleTypeDialog.h:257
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::openOSGFileDialog
void openOSGFileDialog()
open OSG file dialog
Definition: GNEVehicleTypeDialog.cpp:633
GNEVehicleTypeDialog::CarFollowingModelParameters::myTmp5Row
CarFollowingModelRow * myTmp5Row
Row for TMP5.
Definition: GNEVehicleTypeDialog.h:513
GNEVehicleTypeDialog::VTypeAtributes::myMinGapLat
VTypeAttributeRow * myMinGapLat
VTypeAttributeRow for MinGapLat.
Definition: GNEVehicleTypeDialog.h:281
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:516
GNEVehicleTypeDialog::CarFollowingModelParameters::myComboBoxCarFollowModel
FXComboBox * myComboBoxCarFollowModel
Row for CarFollowModel.
Definition: GNEVehicleTypeDialog.h:456
GNEVehicleTypeDialog::CarFollowingModelParameters::myEmergencyDecelRow
CarFollowingModelRow * myEmergencyDecelRow
Row for emergency Decel.
Definition: GNEVehicleTypeDialog.h:471
GNEVehicleTypeDialog::VTypeAtributes::myColor
VTypeAttributeRow * myColor
VTypeAttributeRow for color.
Definition: GNEVehicleTypeDialog.h:218
GNEVehicleTypeDialog::VTypeAtributes::myJMDriveAfterYellowTime
VTypeAttributeRow * myJMDriveAfterYellowTime
VTypeAttributeRow for Drive After Yellow Time.
Definition: GNEVehicleTypeDialog.h:307
GNEVehicleTypeDialog::VTypeAtributes::myLCAPushygap
VTypeAttributeRow * myLCAPushygap
VTypeAttributeRow for pushy gap.
Definition: GNEVehicleTypeDialog.h:358
GNEVehicleTypeDialog::CarFollowingModelParameters::myTmp4Row
CarFollowingModelRow * myTmp4Row
Row for TMP4.
Definition: GNEVehicleTypeDialog.h:510
GNEVehicleTypeDialog::VTypeAtributes::VTypeAtributes
VTypeAtributes()
fox need this
Definition: GNEVehicleTypeDialog.h:206
GNEVehicleTypeDialog::CarFollowingModelParameters::updateValues
void updateValues()
update values
Definition: GNEVehicleTypeDialog.cpp:1424
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::filterAttributeName
FXString filterAttributeName(const SumoXMLAttr attr) const
filter attribute name
Definition: GNEVehicleTypeDialog.cpp:660
GNEVehicleTypeDialog::VTypeAtributes::VShapeRow::VShapeRow
VShapeRow(VTypeAtributes *VTypeAtributesParent, FXVerticalFrame *column)
constructor
Definition: GNEVehicleTypeDialog.cpp:255
GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelRow::myAttr
SumoXMLAttr myAttr
edited attribute
Definition: GNEVehicleTypeDialog.h:442
GNEVehicleTypeDialog::VTypeAtributes::myLCASublaneParam
VTypeAttributeRow * myLCASublaneParam
VTypeAttributeRow for sublane param.
Definition: GNEVehicleTypeDialog.h:349
GNEVehicleTypeDialog::CarFollowingModelParameters::mySigmaRow
CarFollowingModelRow * mySigmaRow
Row for Sigma.
Definition: GNEVehicleTypeDialog.h:474
GNEVehicleTypeDialog::VTypeAtributes::myLCATurnAlignmentDistance
VTypeAttributeRow * myLCATurnAlignmentDistance
VTypeAttributeRow for turn alignment distance.
Definition: GNEVehicleTypeDialog.h:385
GNEVehicleTypeDialog::VTypeAtributes::myOSGFile
VTypeAttributeRow * myOSGFile
VTypeAttributeRow for OSG.
Definition: GNEVehicleTypeDialog.h:251
GNEVehicleTypeDialog::CarFollowingModelParameters::myKRow
CarFollowingModelRow * myKRow
Row for MinGap (only for Kerner)
Definition: GNEVehicleTypeDialog.h:483
GNEVehicleTypeDialog::VTypeAtributes::myLCACooperativeParam
VTypeAttributeRow * myLCACooperativeParam
VTypeAttributeRow for cooperative param.
Definition: GNEVehicleTypeDialog.h:340
GNEVehicleTypeDialog::VTypeAtributes::myJMImpatience
VTypeAttributeRow * myJMImpatience
VTypeAttributeRow for Impatience.
Definition: GNEVehicleTypeDialog.h:328
GNEVehicleTypeDialog::VTypeAtributes::myVShapeRow
VShapeRow * myVShapeRow
vehicle shape row
Definition: GNEVehicleTypeDialog.h:239
GNEVehicleTypeDialog::VTypeAtributes::myHeight
VTypeAttributeRow * myHeight
VTypeAttributeRow for Height.
Definition: GNEVehicleTypeDialog.h:245
GNEVehicleTypeDialog::myVTypeAtributes
VTypeAtributes * myVTypeAtributes
Vehicle Type Common Attributes.
Definition: GNEVehicleTypeDialog.h:563
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::myVTypeAtributesParent
VTypeAtributes * myVTypeAtributesParent
pointer to VTypeAttributeParameters parent
Definition: GNEVehicleTypeDialog.h:152
GNEVehicleTypeDialog::CarFollowingModelParameters::myPhiRow
CarFollowingModelRow * myPhiRow
Row for MinGap (only for Kerner)
Definition: GNEVehicleTypeDialog.h:486
GNEVehicleTypeDialog::VTypeAtributes::myLCAMaxSpeedLatStanding
VTypeAttributeRow * myLCAMaxSpeedLatStanding
VTypeAttributeRow for max speed lat standing.
Definition: GNEVehicleTypeDialog.h:379
GNEVehicleTypeDialog::VTypeAtributes::myLCAPushy
VTypeAttributeRow * myLCAPushy
VTypeAttributeRow for pushy.
Definition: GNEVehicleTypeDialog.h:355
GNEVehicleTypeDialog::VTypeAtributes::mySpeedDev
VTypeAttributeRow * mySpeedDev
VTypeAttributeRow for SpeedDev.
Definition: GNEVehicleTypeDialog.h:233
GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelRow::myCarFollowingModelParametersParent
CarFollowingModelParameters * myCarFollowingModelParametersParent
pointer to CarFollowingModelParameters parent
Definition: GNEVehicleTypeDialog.h:439
GNEVehicleTypeDialog::CarFollowingModelParameters::myTauRow
CarFollowingModelRow * myTauRow
Row for Tau.
Definition: GNEVehicleTypeDialog.h:477
GNEVehicleTypeDialog::CarFollowingModelParameters::mySteppingRow
CarFollowingModelRow * mySteppingRow
Row for MinGap(only for IDM)
Definition: GNEVehicleTypeDialog.h:492
GNEVehicleTypeDialog::VTypeAtributes::VShapeRow::setVariable
void setVariable()
set variables
Definition: GNEVehicleTypeDialog.cpp:279
GNEVehicleTypeDialog::VTypeAtributes::VShapeRow
class for VShapeRow
Definition: GNEVehicleTypeDialog.h:82
GNEVehicleTypeDialog::~GNEVehicleTypeDialog
~GNEVehicleTypeDialog()
destructor
Definition: GNEVehicleTypeDialog.cpp:1503
GNEVehicleTypeDialog::VTypeAtributes::myHasDriveState
VTypeAttributeRow * myHasDriveState
VTypeAttributeRow for HasDriveState.
Definition: GNEVehicleTypeDialog.h:290
GNEVehicleTypeDialog::CarFollowingModelParameters::onCmdSetVariable
long onCmdSetVariable(FXObject *, FXSelector, void *)
Definition: GNEVehicleTypeDialog.cpp:1441
GNEVehicleTypeDialog::VTypeAtributes::myJMIgnoreKeepclearTime
VTypeAttributeRow * myJMIgnoreKeepclearTime
VTypeAttributeRow for Ignore Keep Clear Time.
Definition: GNEVehicleTypeDialog.h:304
GNEVehicleTypeDialog::VTypeAtributes::VClassRow::VClassRow
VClassRow(VTypeAtributes *VTypeAtributesParent, FXVerticalFrame *column)
constructor
Definition: GNEVehicleTypeDialog.cpp:59
GNEVehicleTypeDialog::CarFollowingModelParameters::myLabelIncompleteAttribute
FXLabel * myLabelIncompleteAttribute
temporal label for incomplete attributes
Definition: GNEVehicleTypeDialog.h:531
GNEDemandElementDialog
Dialog to edit sequences, parameters, etc.. of DemandElements.
Definition: GNEDemandElementDialog.h:45
GNEVehicleTypeDialog::VTypeAtributes::myLCAOvertakeRight
VTypeAttributeRow * myLCAOvertakeRight
VTypeAttributeRow for overtake right.
Definition: GNEVehicleTypeDialog.h:388
GNEVehicleTypeDialog::GNEVehicleTypeDialog
GNEVehicleTypeDialog(GNEDemandElement *editedVehicleType, bool updatingElement)
constructor
Definition: GNEVehicleTypeDialog.cpp:1467
GNEVehicleTypeDialog::CarFollowingModelParameters::myMinGapFactorRow
CarFollowingModelRow * myMinGapFactorRow
Row for MinGapFactor.
Definition: GNEVehicleTypeDialog.h:480
GNEVehicleType
Definition: GNEVehicleType.h:37
GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelRow::myTextField
FXTextField * myTextField
text field
Definition: GNEVehicleTypeDialog.h:445
GNEVehicleTypeDialog::VTypeAtributes::myCarriageGap
VTypeAttributeRow * myCarriageGap
VTypeAttributeRow for carriage GAP.
Definition: GNEVehicleTypeDialog.h:260
GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelRow::updateValue
void updateValue()
update value of Vehicle Type
Definition: GNEVehicleTypeDialog.cpp:1596
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::ROWTYPE_COLOR
Definition: GNEVehicleTypeDialog.h:118
SUMOVehicleClass.h
GNEVehicleTypeDialog::VTypeAtributes::myLoadingDuration
VTypeAttributeRow * myLoadingDuration
VTypeAttributeRow for LoadingDuration.
Definition: GNEVehicleTypeDialog.h:275
GNEVehicleTypeDialog::VTypeAtributes
class for VClasses
Definition: GNEVehicleTypeDialog.h:49
GNEVehicleTypeDialog::VTypeAtributes::myWidth
VTypeAttributeRow * myWidth
VTypeAttributeRow for Width.
Definition: GNEVehicleTypeDialog.h:242
GNEVehicleTypeDialog::VTypeAtributes::VClassRow::myVTypeAtributesParent
VTypeAtributes * myVTypeAtributesParent
pointer to VTypeAtributes parent
Definition: GNEVehicleTypeDialog.h:69
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::setVariable
void setVariable()
set Variablen in VehicleType (using default value obtained from GNEAttributeCarrier)
Definition: GNEVehicleTypeDialog.cpp:439
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::ROWTYPE_STRING
Definition: GNEVehicleTypeDialog.h:117
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:397
GNEVehicleTypeDialog::operator=
GNEVehicleTypeDialog & operator=(const GNEVehicleTypeDialog &)=delete
Invalidated assignment operator.
GNEVehicleTypeDialog::VTypeAtributes::myMaxSpeed
VTypeAttributeRow * myMaxSpeed
VTypeAttributeRow for MaxSpeed.
Definition: GNEVehicleTypeDialog.h:227
GNEVehicleTypeDialog::VTypeAtributes::buildJunctionModelAttributesB
void buildJunctionModelAttributesB(FXVerticalFrame *column)
build JunctionModel attributes (B)
Definition: GNEVehicleTypeDialog.cpp:873
GNEVehicleTypeDialog::VTypeAtributes::buildAttributesA
void buildAttributesA(FXVerticalFrame *column)
build commmon attributes (A)
Definition: GNEVehicleTypeDialog.cpp:760
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::myButton
FXButton * myButton
button
Definition: GNEVehicleTypeDialog.h:161
GNEVehicleTypeDialog::VTypeAtributes::VShapeRow::myComboBoxShape
FXComboBox * myComboBoxShape
FXComboBox for Shape.
Definition: GNEVehicleTypeDialog.h:99
GNEVehicleTypeDialog::onCmdCancel
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
Definition: GNEVehicleTypeDialog.cpp:1534
GNEVehicleTypeDialog::CarFollowingModelParameters::myTmp3Row
CarFollowingModelRow * myTmp3Row
Row for TMP3.
Definition: GNEVehicleTypeDialog.h:507
GNEVehicleTypeDialog::myVehicleTypeValid
bool myVehicleTypeValid
flag to check if current vehicleType is valid
Definition: GNEVehicleTypeDialog.h:557
GNEVehicleTypeDialog::VTypeAtributes::myPersonCapacity
VTypeAttributeRow * myPersonCapacity
VTypeAttributeRow for PersonCapacity.
Definition: GNEVehicleTypeDialog.h:266
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::ROWTYPE_REAL
Definition: GNEVehicleTypeDialog.h:116
GNEVehicleTypeDialog::VTypeAtributes::myLength
VTypeAttributeRow * myLength
VTypeAttributeRow for Length.
Definition: GNEVehicleTypeDialog.h:221
GNEVehicleTypeDialog::VTypeAtributes::myLCAStrategicParam
VTypeAttributeRow * myLCAStrategicParam
VTypeAttributeRow for strategic param.
Definition: GNEVehicleTypeDialog.h:337
GNEVehicleTypeDialog::CarFollowingModelParameters::myVehicleTypeDialog
GNEVehicleTypeDialog * myVehicleTypeDialog
pointer to Vehicle Type dialog parent
Definition: GNEVehicleTypeDialog.h:450
GNEVehicleTypeDialog::CarFollowingModelParameters::myEstimationRow
CarFollowingModelRow * myEstimationRow
Row for Estimation (only for Wiedemann)
Definition: GNEVehicleTypeDialog.h:498
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::getButton
const FXButton * getButton() const
get button
Definition: GNEVehicleTypeDialog.cpp:575
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::openImageFileDialog
void openImageFileDialog()
open image file dialog
Definition: GNEVehicleTypeDialog.cpp:606
GNEVehicleTypeDialog::CarFollowingModelParameters::refreshCFMFields
void refreshCFMFields()
refresh Car Following Model Fields
Definition: GNEVehicleTypeDialog.cpp:1249
GNEVehicleTypeDialog::VTypeAtributes::myMaxSpeedLat
VTypeAttributeRow * myMaxSpeedLat
VTypeAttributeRow for MaxSpeedLat.
Definition: GNEVehicleTypeDialog.h:284
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::openColorDialog
void openColorDialog()
open color dialog
Definition: GNEVehicleTypeDialog.cpp:581
GNEVehicleTypeDialog::myInvalidAttr
SumoXMLAttr myInvalidAttr
current sumo attribute invalid
Definition: GNEVehicleTypeDialog.h:560
GNEVehicleTypeDialog::VTypeAtributes::myEmissionClass
VTypeAttributeRow * myEmissionClass
VTypeAttributeRow for EmissionClass.
Definition: GNEVehicleTypeDialog.h:236
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::ROWTYPE_FILENAME
Definition: GNEVehicleTypeDialog.h:119
GNEVehicleTypeDialog::CarFollowingModelParameters::myVerticalFrameRows
FXVerticalFrame * myVerticalFrameRows
Vertical Frame for CarFollowingModelRow.
Definition: GNEVehicleTypeDialog.h:459
GNEVehicleTypeDialog::CarFollowingModelParameters::myRows
std::vector< CarFollowingModelRow * > myRows
vector with the Car Following Model Row
Definition: GNEVehicleTypeDialog.h:453
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::ROWTYPE_INT
Definition: GNEVehicleTypeDialog.h:115
GNEVehicleTypeDialog::CarFollowingModelParameters::myDecelRow
CarFollowingModelRow * myDecelRow
Row for Decel.
Definition: GNEVehicleTypeDialog.h:465
GNEVehicleTypeDialog::VTypeAtributes::VShapeRow::myVTypeAtributesParent
VTypeAtributes * myVTypeAtributesParent
pointer to VTypeAtributes parent
Definition: GNEVehicleTypeDialog.h:96
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::myAttr
const SumoXMLAttr myAttr
edited attribute
Definition: GNEVehicleTypeDialog.h:155
GNEVehicleTypeDialog::CarFollowingModelParameters::myAprobRow
CarFollowingModelRow * myAprobRow
Row for Aprob.
Definition: GNEVehicleTypeDialog.h:522
GNEVehicleTypeDialog::CarFollowingModelParameters
class for CarFollowingModel
Definition: GNEVehicleTypeDialog.h:401
GNEVehicleTypeDialog::VTypeAtributes::myLCAImpatience
VTypeAttributeRow * myLCAImpatience
VTypeAttributeRow for impatience.
Definition: GNEVehicleTypeDialog.h:364
GNEVehicleTypeDialog::VTypeAtributes::myJMTimeGapMinor
VTypeAttributeRow * myJMTimeGapMinor
VTypeAttributeRow for Time GAP Minor.
Definition: GNEVehicleTypeDialog.h:325
GNEVehicleTypeDialog::CarFollowingModelParameters::mySecurityRow
CarFollowingModelRow * mySecurityRow
Row for Security (only for Wiedemann)
Definition: GNEVehicleTypeDialog.h:495
GNEVehicleTypeDialog
Dialog for edit rerouter intervals.
Definition: GNEVehicleTypeDialog.h:45
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow
class used for represent rows with Vehicle Type parameters
Definition: GNEVehicleTypeDialog.h:110
GNEVehicleTypeDialog::CarFollowingModelParameters::myTmp1Row
CarFollowingModelRow * myTmp1Row
Row for TMP1.
Definition: GNEVehicleTypeDialog.h:501
GNEVehicleTypeDialog::VTypeAtributes::myTextFieldVehicleTypeID
FXTextField * myTextFieldVehicleTypeID
FXTextfield for vehicleTypeID.
Definition: GNEVehicleTypeDialog.h:209
GNEVehicleTypeDialog::VTypeAtributes::VShapeRow::myComboBoxShapeLabelImage
FXLabel * myComboBoxShapeLabelImage
label with image of Shape
Definition: GNEVehicleTypeDialog.h:102
GNEVehicleTypeDialog::VTypeAtributes::myLCAOppositeParam
VTypeAttributeRow * myLCAOppositeParam
VTypeAttributeRow for opposite param.
Definition: GNEVehicleTypeDialog.h:352
GNEDemandElementDialog.h
GNEVehicleTypeDialog::VTypeAtributes::myLCALookAheadLeft
VTypeAttributeRow * myLCALookAheadLeft
VTypeAttributeRow for loock ahead left.
Definition: GNEVehicleTypeDialog.h:373
GNEVehicleTypeDialog::VTypeAtributes::myJMDriveAfterRedTime
VTypeAttributeRow * myJMDriveAfterRedTime
VTypeAttributeRow for Drive After Red Time.
Definition: GNEVehicleTypeDialog.h:310
GNEVehicleTypeDialog::CarFollowingModelParameters::myAdaptTimeRow
CarFollowingModelRow * myAdaptTimeRow
Row for Adapt Time.
Definition: GNEVehicleTypeDialog.h:528
GNEVehicleTypeDialog::VTypeAtributes::onCmdSetAttribute
long onCmdSetAttribute(FXObject *, FXSelector, void *)
Definition: GNEVehicleTypeDialog.cpp:1020
config.h
GNEVehicleTypeDialog::VTypeAtributes::myFilename
VTypeAttributeRow * myFilename
VTypeAttributeRow for Filename.
Definition: GNEVehicleTypeDialog.h:248
GNEVehicleTypeDialog::VTypeAtributes::onCmdSetAttributeDialog
long onCmdSetAttributeDialog(FXObject *obj, FXSelector, void *)
@event called after press a button dialog
Definition: GNEVehicleTypeDialog.cpp:1112
GNEVehicleTypeDialog::onCmdAccept
long onCmdAccept(FXObject *, FXSelector, void *)
Definition: GNEVehicleTypeDialog.cpp:1507
GNEVehicleTypeDialog::VTypeAtributes::myProbability
VTypeAttributeRow * myProbability
VTypeAttributeRow for Probability.
Definition: GNEVehicleTypeDialog.h:293
GNEVehicleTypeDialog::VTypeAtributes::buildJunctionModelAttributesA
void buildJunctionModelAttributesA(FXVerticalFrame *column)
build JunctionModel attributes (A)
Definition: GNEVehicleTypeDialog.cpp:854
GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelRow::CarFollowingModelRow
CarFollowingModelRow(CarFollowingModelParameters *carFollowingModelParametersParent, FXVerticalFrame *verticalFrame, SumoXMLAttr attr, bool allowString=false)
constructor
Definition: GNEVehicleTypeDialog.cpp:1558
GNEVehicleTypeDialog::VTypeAtributes::myLCATimeToImpatience
VTypeAttributeRow * myLCATimeToImpatience
VTypeAttributeRow for time to impatience.
Definition: GNEVehicleTypeDialog.h:367
GNEVehicleTypeDialog::VTypeAtributes::myBoardingDuration
VTypeAttributeRow * myBoardingDuration
VTypeAttributeRow for BoardingDuration.
Definition: GNEVehicleTypeDialog.h:272
GNEVehicleTypeDialog::myCarFollowingModelParameters
CarFollowingModelParameters * myCarFollowingModelParameters
Car Following model parameters.
Definition: GNEVehicleTypeDialog.h:566
GNEVehicleTypeDialog::VTypeAtributes::mySpeedFactor
VTypeAttributeRow * mySpeedFactor
VTypeAttributeRow for SpeedFactor.
Definition: GNEVehicleTypeDialog.h:230
GNEVehicleTypeDialog::VTypeAtributes::myLCASpeedgainParam
VTypeAttributeRow * myLCASpeedgainParam
VTypeAttributeRow for speed gain param.
Definition: GNEVehicleTypeDialog.h:343
GNEVehicleTypeDialog::VTypeAtributes::myMinGap
VTypeAttributeRow * myMinGap
VTypeAttributeRow for MinGap.
Definition: GNEVehicleTypeDialog.h:224
GNEVehicleTypeDialog::VTypeAtributes::VClassRow::myComboBoxVClassLabelImage
FXLabel * myComboBoxVClassLabelImage
label with image of VClass
Definition: GNEVehicleTypeDialog.h:75
GNEVehicleTypeDialog::VTypeAtributes::VShapeRow::updateValues
void updateValues()
update values
Definition: GNEVehicleTypeDialog.cpp:295
SumoXMLAttr
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
Definition: SUMOXMLDefinitions.h:373
GNEVehicleTypeDialog::CarFollowingModelParameters::myApparentDecelRow
CarFollowingModelRow * myApparentDecelRow
Row for aparent Decel.
Definition: GNEVehicleTypeDialog.h:468
GNEVehicleTypeDialog::VTypeAtributes::myJMSigmaMinor
VTypeAttributeRow * myJMSigmaMinor
VTypeAttributeRow for Sigma Minor.
Definition: GNEVehicleTypeDialog.h:322
GNEVehicleTypeDialog::VTypeAtributes::myLCASpeedGainRight
VTypeAttributeRow * myLCASpeedGainRight
VTypeAttributeRow for speed gain right.
Definition: GNEVehicleTypeDialog.h:376
GNEVehicleTypeDialog::VTypeAtributes::VClassRow::updateValue
SUMOVehicleClass updateValue()
update values
Definition: GNEVehicleTypeDialog.cpp:151
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::myTextField
FXTextField * myTextField
text field
Definition: GNEVehicleTypeDialog.h:164
GNEVehicleTypeDialog::VTypeAtributes::VClassRow
FOX-declaration.
Definition: GNEVehicleTypeDialog.h:55
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::myComboBox
FXComboBox * myComboBox
ComboBox for attributes with limited values.
Definition: GNEVehicleTypeDialog.h:167
GNEVehicleTypeDialog::VTypeAtributes::myLaneChangeModel
VTypeAttributeRow * myLaneChangeModel
VTypeAttributeRow for LaneChangeModel.
Definition: GNEVehicleTypeDialog.h:263