Eclipse SUMO - Simulation of Urban MObility
GNEStopFrame.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 Stops elements
16 /****************************************************************************/
17 #ifndef GNEStopFrame_h
18 #define GNEStopFrame_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include "GNEFrame.h"
25 
27 
28 // ===========================================================================
29 // class definitions
30 // ===========================================================================
34 class GNEStopFrame : public GNEFrame {
35 
36 public:
37 
38  // ===========================================================================
39  // class HelpCreation
40  // ===========================================================================
41 
42  class HelpCreation : protected FXGroupBox {
43 
44  public:
46  HelpCreation(GNEStopFrame* StopFrameParent);
47 
49  ~HelpCreation();
50 
52  void showHelpCreation();
53 
55  void hideHelpCreation();
56 
58  void updateHelpCreation();
59 
60  private:
63 
66  };
67 
72  GNEStopFrame(FXHorizontalFrame* horizontalFrameParent, GNEViewNet* viewNet);
73 
75  ~GNEStopFrame();
76 
78  void show();
79 
85  bool addStop(const GNEViewNetHelper::ObjectsUnderCursor& objectsUnderCursor, bool shiftPressed);
86 
88  static bool getStopParameter(SUMOVehicleParameter::Stop& stop, bool& friendlyPosition, const SumoXMLTag stopTag,
89  GNEViewNet* viewNet, const GNEFrameAttributesModuls::AttributesCreator* stopAttributes,
91  const GNELane* lane, const GNEAdditional* stoppingPlace);
92 
93 protected:
95  void tagSelected();
96 
98  void demandElementSelected();
99 
100 private:
103 
106 
109 
112 
115 };
116 
117 
118 #endif
119 
120 /****************************************************************************/
SumoXMLTag
Numbers representing SUMO-XML - element names.
void hideHelpCreation()
hide HelpCreation
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
Definition: GNELane.h:46
void tagSelected()
Tag selected in TagSelector.
GNEFrameAttributesModuls::AttributesCreator * myStopAttributes
internal Stop attributes
Definition: GNEStopFrame.h:108
GNEStopFrame(FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
Constructor.
void showHelpCreation()
show HelpCreation
void updateHelpCreation()
update HelpCreation
void demandElementSelected()
selected demand element in DemandElementSelector
static bool getStopParameter(SUMOVehicleParameter::Stop &stop, bool &friendlyPosition, const SumoXMLTag stopTag, GNEViewNet *viewNet, const GNEFrameAttributesModuls::AttributesCreator *stopAttributes, const GNEFrameAttributesModuls::NeteditAttributes *myNeteditAttributes, const GNELane *lane, const GNEAdditional *stoppingPlace)
get stop parameters
GNEStopFrame * myStopFrameParent
pointer to Stop Frame Parent
Definition: GNEStopFrame.h:62
class used to group all variables related with objects under cursor after a click over view ...
GNEFrameModuls::DemandElementSelector * myStopParentSelector
Stop parent selectors.
Definition: GNEStopFrame.h:102
FXLabel * myInformationLabel
Label with creation information.
Definition: GNEStopFrame.h:65
void show()
show Frame
Definition of vehicle stop (position and duration)
An Element which don't belongs to GNENet but has influency in the simulation.
Definition: GNEAdditional.h:47
HelpCreation(GNEStopFrame *StopFrameParent)
constructor
HelpCreation * myHelpCreation
Help creation.
Definition: GNEStopFrame.h:114
GNEFrameAttributesModuls::NeteditAttributes * myNeteditAttributes
Netedit parameter.
Definition: GNEStopFrame.h:111
bool addStop(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, bool shiftPressed)
add Stop element
~GNEStopFrame()
Destructor.
GNEFrameModuls::TagSelector * myStopTagSelector
stop tag selector selector (used to select diffent kind of Stops)
Definition: GNEStopFrame.h:105