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-2022 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials are made available under the
5 // terms of the Eclipse Public License 2.0 which is available at
6 // https://www.eclipse.org/legal/epl-2.0/
7 // This Source Code may also be made available under the following Secondary
8 // Licenses when the conditions for such availability set forth in the Eclipse
9 // Public License 2.0 are satisfied: GNU General Public License, version 2
10 // or later which is available at
11 // https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12 // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13 /****************************************************************************/
18 // The Widget for add Stops elements
19 /****************************************************************************/
20 #pragma once
21 #include <config.h>
22 
25 
26 // ===========================================================================
27 // class definitions
28 // ===========================================================================
32 class GNEStopFrame : public GNEFrame {
33 
34 public:
35 
36  // ===========================================================================
37  // class HelpCreation
38  // ===========================================================================
39 
40  class HelpCreation : public FXGroupBoxModule {
41 
42  public:
44  HelpCreation(GNEStopFrame* StopFrameParent);
45 
47  ~HelpCreation();
48 
50  void showHelpCreation();
51 
53  void hideHelpCreation();
54 
56  void updateHelpCreation();
57 
58  private:
61 
64  };
65 
70  GNEStopFrame(FXHorizontalFrame* horizontalFrameParent, GNEViewNet* viewNet);
71 
73  ~GNEStopFrame();
74 
76  void show();
77 
83  bool addStop(const GNEViewNetHelper::ObjectsUnderCursor& objectsUnderCursor, const GNEViewNetHelper::MouseButtonKeyPressed& mouseButtonKeyPressed);
84 
86  bool getStopParameter(const SumoXMLTag stopTag, const GNELane* lane, const GNEAdditional* stoppingPlace);
87 
88 protected:
90  void tagSelected();
91 
93  void demandElementSelected();
94 
95 private:
98 
101 
104 
107 
110 
113 
116 };
SumoXMLTag
Numbers representing SUMO-XML - element names.
FXGroupBoxModule (based on FXGroupBox)
An Element which don't belongs to GNENet but has influency in the simulation.
Definition: GNEAdditional.h:48
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
Definition: GNELane.h:46
Builds trigger objects for GNENet (busStops, chargingStations, detectors, etc..)
void updateHelpCreation()
update HelpCreation
void showHelpCreation()
show HelpCreation
FXLabel * myInformationLabel
Label with creation information.
Definition: GNEStopFrame.h:63
void hideHelpCreation()
hide HelpCreation
HelpCreation(GNEStopFrame *StopFrameParent)
constructor
GNEStopFrame * myStopFrameParent
pointer to Stop Frame Parent
Definition: GNEStopFrame.h:60
CommonXMLStructure::SumoBaseObject * myStopParentBaseObject
stop parent base object
Definition: GNEStopFrame.h:100
void show()
show Frame
GNERouteHandler myRouteHandler
route handler
Definition: GNEStopFrame.h:97
bool getStopParameter(const SumoXMLTag stopTag, const GNELane *lane, const GNEAdditional *stoppingPlace)
get stop parameters
GNEFrameAttributeModules::AttributesCreator * myStopAttributes
internal Stop attributes
Definition: GNEStopFrame.h:109
~GNEStopFrame()
Destructor.
void demandElementSelected()
selected demand element in DemandElementSelector
HelpCreation * myHelpCreation
Help creation.
Definition: GNEStopFrame.h:115
GNEFrameModules::DemandElementSelector * myStopParentSelector
Stop parent selectors.
Definition: GNEStopFrame.h:103
void tagSelected()
Tag selected in TagSelector.
GNEStopFrame(FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
Constructor.
bool addStop(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, const GNEViewNetHelper::MouseButtonKeyPressed &mouseButtonKeyPressed)
add Stop element
GNEFrameModules::TagSelector * myStopTagSelector
stop tag selector selector (used to select diffent kind of Stops)
Definition: GNEStopFrame.h:106
GNEFrameAttributeModules::NeteditAttributes * myNeteditAttributes
Netedit parameter.
Definition: GNEStopFrame.h:112
class used to group all variables related with objects under cursor after a click over view
class used to group all variables related with mouse buttons and key pressed after certain events