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.dev/sumo
3 // Copyright (C) 2001-2024 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 
32 
33 // ===========================================================================
34 // class definitions
35 // ===========================================================================
39 class GNEStopFrame : public GNEFrame {
40 
41 public:
42 
43  // ===========================================================================
44  // class HelpCreation
45  // ===========================================================================
46 
48 
49  public:
51  HelpCreation(GNEStopFrame* StopFrameParent);
52 
54  ~HelpCreation();
55 
57  void showHelpCreation();
58 
60  void hideHelpCreation();
61 
63  void updateHelpCreation();
64 
65  private:
68 
71  };
72 
77  GNEStopFrame(GNEViewParent* viewParent, GNEViewNet* viewNet);
78 
80  ~GNEStopFrame();
81 
83  void show();
84 
90  bool addStop(const GNEViewNetHelper::ViewObjectsSelector& viewObjects, const GNEViewNetHelper::MouseButtonKeyPressed& mouseButtonKeyPressed);
91 
93  bool getStopParameter(const SumoXMLTag stopTag, const GNELane* lane, const GNEAdditional* stoppingPlace);
94 
97 
98 protected:
100  void tagSelected();
101 
103  void demandElementSelected();
104 
105 private:
108 
111 
114 
117 
120 
123 
126 
129 };
SumoXMLTag
Numbers representing SUMO-XML - element names.
plan parameters (used for group all from-to parameters related with plans)
An Element which don't belong to GNENet but has influence in the simulation.
Definition: GNEAdditional.h:49
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
void hideHelpCreation()
hide HelpCreation
HelpCreation(GNEStopFrame *StopFrameParent)
constructor
GNEStopFrame * myStopFrameParent
pointer to Stop Frame Parent
Definition: GNEStopFrame.h:67
MFXDynamicLabel * myInformationLabel
Label with creation information.
Definition: GNEStopFrame.h:70
CommonXMLStructure::SumoBaseObject * myStopParentBaseObject
stop parent base object
Definition: GNEStopFrame.h:110
void show()
show Frame
GNERouteHandler myRouteHandler
route handler
Definition: GNEStopFrame.h:107
bool getStopParameter(const SumoXMLTag stopTag, const GNELane *lane, const GNEAdditional *stoppingPlace)
get stop parameters
~GNEStopFrame()
Destructor.
CommonXMLStructure::PlanParameters myPlanParameters
plan parameters
Definition: GNEStopFrame.h:113
GNEStopFrame(GNEViewParent *viewParent, GNEViewNet *viewNet)
Constructor.
GNEDemandElementSelector * myStopParentSelector
Stop parent selectors.
Definition: GNEStopFrame.h:116
void demandElementSelected()
selected demand element in DemandElementSelector
GNETagSelector * myStopTagSelector
stop tag selector selector (used to select diffent kind of Stops)
Definition: GNEStopFrame.h:119
HelpCreation * myHelpCreation
Help creation.
Definition: GNEStopFrame.h:128
void tagSelected()
Tag selected in GNETagSelector.
GNEAttributesCreator * myStopAttributes
internal Stop attributes
Definition: GNEStopFrame.h:122
GNEDemandElementSelector * getStopParentSelector() const
get stop parent selector
bool addStop(const GNEViewNetHelper::ViewObjectsSelector &viewObjects, const GNEViewNetHelper::MouseButtonKeyPressed &mouseButtonKeyPressed)
add Stop element
GNENeteditAttributes * myNeteditAttributes
Netedit parameter.
Definition: GNEStopFrame.h:125
class used to group all variables related with objects under cursor after a click over view
A single child window which contains a view of the simulation area.
Definition: GNEViewParent.h:88
A list item which allows for custom coloring.
MFXGroupBoxModule (based on FXGroupBox)
class used to group all variables related with mouse buttons and key pressed after certain events