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 /****************************************************************************/
14 // The Widget for add Stops elements
15 /****************************************************************************/
16 #ifndef GNEStopFrame_h
17 #define GNEStopFrame_h
18 
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include "GNEFrame.h"
24 
26 
27 // ===========================================================================
28 // class definitions
29 // ===========================================================================
33 class GNEStopFrame : public GNEFrame {
34 
35 public:
36 
37  // ===========================================================================
38  // class HelpCreation
39  // ===========================================================================
40 
41  class HelpCreation : protected FXGroupBox {
42 
43  public:
45  HelpCreation(GNEStopFrame* StopFrameParent);
46 
48  ~HelpCreation();
49 
51  void showHelpCreation();
52 
54  void hideHelpCreation();
55 
57  void updateHelpCreation();
58 
59  private:
62 
65  };
66 
71  GNEStopFrame(FXHorizontalFrame* horizontalFrameParent, GNEViewNet* viewNet);
72 
74  ~GNEStopFrame();
75 
77  void show();
78 
84  bool addStop(const GNEViewNetHelper::ObjectsUnderCursor& objectsUnderCursor, bool shiftPressed);
85 
87  static bool getStopParameter(SUMOVehicleParameter::Stop& stop, const SumoXMLTag stopTag, GNEViewNet* viewNet,
90  const GNELane* lane, const GNEAdditional* stoppingPlace);
91 
92 protected:
94  void tagSelected();
95 
97  void demandElementSelected();
98 
99 private:
102 
105 
108 
111 
114 };
115 
116 
117 #endif
118 
119 /****************************************************************************/
GNEStopFrame::HelpCreation::hideHelpCreation
void hideHelpCreation()
hide HelpCreation
Definition: GNEStopFrame.cpp:60
GNEAdditional
An Element which don't belongs to GNENet but has influency in the simulation.
Definition: GNEAdditional.h:48
GNEFrameAttributesModuls::NeteditAttributes
Definition: GNEFrameAttributesModuls.h:714
GNEFrameAttributesModuls::AttributesCreator
Definition: GNEFrameAttributesModuls.h:148
GNEFrame
Definition: GNEFrame.h:34
GNEViewNet
Definition: GNEViewNet.h:42
GNEStopFrame::HelpCreation::~HelpCreation
~HelpCreation()
destructor
Definition: GNEStopFrame.cpp:47
SumoXMLTag
SumoXMLTag
Numbers representing SUMO-XML - element names.
Definition: SUMOXMLDefinitions.h:41
GNEStopFrame::GNEStopFrame
GNEStopFrame(FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
Constructor.
Definition: GNEStopFrame.cpp:110
SUMOVehicleParameter.h
GNEStopFrame::tagSelected
void tagSelected()
Tag selected in TagSelector.
Definition: GNEStopFrame.cpp:368
GNEStopFrame::HelpCreation::showHelpCreation
void showHelpCreation()
show HelpCreation
Definition: GNEStopFrame.cpp:51
GNEStopFrame::myStopAttributes
GNEFrameAttributesModuls::AttributesCreator * myStopAttributes
internal Stop attributes
Definition: GNEStopFrame.h:107
GNEStopFrame::demandElementSelected
void demandElementSelected()
selected demand element in DemandElementSelector
Definition: GNEStopFrame.cpp:384
GNEStopFrame::HelpCreation::updateHelpCreation
void updateHelpCreation()
update HelpCreation
Definition: GNEStopFrame.cpp:66
GNEStopFrame::getStopParameter
static bool getStopParameter(SUMOVehicleParameter::Stop &stop, const SumoXMLTag stopTag, GNEViewNet *viewNet, GNEFrameAttributesModuls::AttributesCreator *stopAttributes, const GNEFrameAttributesModuls::NeteditAttributes *myNeteditAttributes, const GNELane *lane, const GNEAdditional *stoppingPlace)
get stop parameters
Definition: GNEStopFrame.cpp:205
GNEStopFrame::HelpCreation
Definition: GNEStopFrame.h:41
GNEViewNetHelper::ObjectsUnderCursor
class used to group all variables related with objects under cursor after a click over view
Definition: GNEViewNetHelper.h:148
GNEFrameModuls::DemandElementSelector
Definition: GNEFrameModuls.h:112
GNEFrameModuls::TagSelector
Definition: GNEFrameModuls.h:44
GNEStopFrame::myStopParentSelector
GNEFrameModuls::DemandElementSelector * myStopParentSelector
Stop parent selectors.
Definition: GNEStopFrame.h:101
GNEStopFrame::show
void show()
show Frame
Definition: GNEStopFrame.cpp:137
GNEStopFrame::HelpCreation::myStopFrameParent
GNEStopFrame * myStopFrameParent
pointer to Stop Frame Parent
Definition: GNEStopFrame.h:61
GNEStopFrame
Definition: GNEStopFrame.h:33
GNEStopFrame::HelpCreation::myInformationLabel
FXLabel * myInformationLabel
Label with creation information.
Definition: GNEStopFrame.h:64
GNEStopFrame::addStop
bool addStop(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, bool shiftPressed)
add Stop element
Definition: GNEStopFrame.cpp:169
GNEStopFrame::myNeteditAttributes
GNEFrameAttributesModuls::NeteditAttributes * myNeteditAttributes
Netedit parameter.
Definition: GNEStopFrame.h:110
GNEStopFrame::HelpCreation::HelpCreation
HelpCreation(GNEStopFrame *StopFrameParent)
constructor
Definition: GNEStopFrame.cpp:40
GNEStopFrame::myHelpCreation
HelpCreation * myHelpCreation
Help creation.
Definition: GNEStopFrame.h:113
GNEFrame.h
GNEStopFrame::myStopTagSelector
GNEFrameModuls::TagSelector * myStopTagSelector
stop tag selector selector (used to select diffent kind of Stops)
Definition: GNEStopFrame.h:104
GNELane
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
Definition: GNELane.h:45
SUMOVehicleParameter::Stop
Definition of vehicle stop (position and duration)
Definition: SUMOVehicleParameter.h:572
GNEStopFrame::~GNEStopFrame
~GNEStopFrame()
Destructor.
Definition: GNEStopFrame.cpp:133