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-2020 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 
24 
25 // ===========================================================================
26 // class definitions
27 // ===========================================================================
31 class GNEStopFrame : public GNEFrame {
32 
33 public:
34 
35  // ===========================================================================
36  // class HelpCreation
37  // ===========================================================================
38 
39  class HelpCreation : protected FXGroupBox {
40 
41  public:
43  HelpCreation(GNEStopFrame* StopFrameParent);
44 
46  ~HelpCreation();
47 
49  void showHelpCreation();
50 
52  void hideHelpCreation();
53 
55  void updateHelpCreation();
56 
57  private:
60 
63  };
64 
69  GNEStopFrame(FXHorizontalFrame* horizontalFrameParent, GNEViewNet* viewNet);
70 
72  ~GNEStopFrame();
73 
75  void show();
76 
82  bool addStop(const GNEViewNetHelper::ObjectsUnderCursor& objectsUnderCursor, const GNEViewNetHelper::MouseButtonKeyPressed& mouseButtonKeyPressed);
83 
85  static bool getStopParameter(SUMOVehicleParameter::Stop& stop, const SumoXMLTag stopTag, GNEViewNet* viewNet,
88  const GNELane* lane, const GNEAdditional* stoppingPlace);
89 
90 protected:
92  void tagSelected();
93 
95  void demandElementSelected();
96 
97 private:
100 
103 
106 
109 
112 };
SumoXMLTag
Numbers representing SUMO-XML - element names.
An Element which don't belongs to GNENet but has influency in the simulation.
Definition: GNEAdditional.h:47
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
Definition: GNELane.h:45
void updateHelpCreation()
update HelpCreation
void showHelpCreation()
show HelpCreation
FXLabel * myInformationLabel
Label with creation information.
Definition: GNEStopFrame.h:62
void hideHelpCreation()
hide HelpCreation
HelpCreation(GNEStopFrame *StopFrameParent)
constructor
GNEStopFrame * myStopFrameParent
pointer to Stop Frame Parent
Definition: GNEStopFrame.h:59
void show()
show Frame
~GNEStopFrame()
Destructor.
GNEFrameModuls::DemandElementSelector * myStopParentSelector
Stop parent selectors.
Definition: GNEStopFrame.h:99
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
GNEFrameAttributesModuls::NeteditAttributes * myNeteditAttributes
Netedit parameter.
Definition: GNEStopFrame.h:108
GNEFrameModuls::TagSelector * myStopTagSelector
stop tag selector selector (used to select diffent kind of Stops)
Definition: GNEStopFrame.h:102
void demandElementSelected()
selected demand element in DemandElementSelector
HelpCreation * myHelpCreation
Help creation.
Definition: GNEStopFrame.h:111
void tagSelected()
Tag selected in TagSelector.
GNEFrameAttributesModuls::AttributesCreator * myStopAttributes
internal Stop attributes
Definition: GNEStopFrame.h:105
GNEStopFrame(FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
Constructor.
bool addStop(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, const GNEViewNetHelper::MouseButtonKeyPressed &mouseButtonKeyPressed)
add Stop element
class used to group all variables related with objects under cursor after a click over view
Definition of vehicle stop (position and duration)
class used to group all variables related with mouse buttons and key pressed after certain events