Eclipse SUMO - Simulation of Urban MObility
GNEVehicleFrame.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 // The Widget for add Vehicles/Flows/Trips/etc. elements
16 /****************************************************************************/
17 #ifndef GNEVehicleFrame_h
18 #define GNEVehicleFrame_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include "GNEFrame.h"
25 
26 
27 // ===========================================================================
28 // class definitions
29 // ===========================================================================
33 class GNEVehicleFrame : public GNEFrame {
34 
35 public:
36 
37  // ===========================================================================
38  // class HelpCreation
39  // ===========================================================================
40 
41  class HelpCreation : protected FXGroupBox {
42 
43  public:
45  HelpCreation(GNEVehicleFrame* vehicleFrameParent);
46 
48  ~HelpCreation();
49 
51  void showHelpCreation();
52 
54  void hideHelpCreation();
55 
57  void updateHelpCreation();
58 
59  private:
62 
65  };
66 
71  GNEVehicleFrame(FXHorizontalFrame* horizontalFrameParent, GNEViewNet* viewNet);
72 
75 
77  void show();
78 
83  bool addVehicle(const GNEViewNetHelper::ObjectsUnderCursor& objectsUnderCursor);
84 
87 
88 protected:
90  void tagSelected();
91 
93  void demandElementSelected();
94 
96  void edgePathCreated();
97 
98 private:
101 
104 
107 
110 
113 };
114 
115 
116 #endif
117 
118 /****************************************************************************/
GNEFrameModuls::EdgePathCreator * getEdgePathCreator() const
get EdgePathCreator modul
HelpCreation(GNEVehicleFrame *vehicleFrameParent)
constructor
GNEFrameAttributesModuls::AttributesCreator * myVehicleAttributes
internal vehicle attributes
void edgePathCreated()
finish edge path creation
void show()
show Frame
GNEFrameModuls::EdgePathCreator * myEdgePathCreator
edge path creator (used for trips and flows)
GNEFrameModuls::DemandElementSelector * myVTypeSelector
Vehicle Type selectors.
~GNEVehicleFrame()
Destructor.
FXLabel * myInformationLabel
Label with creation information.
GNEFrameModuls::TagSelector * myVehicleTagSelector
vehicle tag selector (used to select diffent kind of vehicles)
class used to group all variables related with objects under cursor after a click over view ...
void tagSelected()
Tag selected in TagSelector.
GNEVehicleFrame * myVehicleFrameParent
pointer to Vehicle Frame Parent
GNEVehicleFrame(FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
Constructor.
void showHelpCreation()
show HelpCreation
bool addVehicle(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
add vehicle element
HelpCreation * myHelpCreation
Help creation.
void hideHelpCreation()
hide HelpCreation
void updateHelpCreation()
update HelpCreation
void demandElementSelected()
selected vehicle type in DemandElementSelector