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
30
31
32// ===========================================================================
33// class definitions
34// ===========================================================================
38class GNEStopFrame : public GNEFrame {
39
40public:
41
42 // ===========================================================================
43 // class HelpCreation
44 // ===========================================================================
45
47
48 public:
50 HelpCreation(GNEStopFrame* StopFrameParent);
51
54
56 void showHelpCreation();
57
59 void hideHelpCreation();
60
62 void updateHelpCreation();
63
64 private:
67
70 };
71
76 GNEStopFrame(GNEViewParent* viewParent, GNEViewNet* viewNet);
77
80
82 void show();
83
89 bool addStop(const GNEViewNetHelper::ObjectsUnderCursor& objectsUnderCursor, const GNEViewNetHelper::MouseButtonKeyPressed& mouseButtonKeyPressed);
90
92 bool getStopParameter(const SumoXMLTag stopTag, const GNELane* lane, const GNEAdditional* stoppingPlace);
93
96
97protected:
99 void tagSelected();
100
103
104private:
107
110
113
116
119
122
125};
SumoXMLTag
Numbers representing SUMO-XML - element names.
An Element which don't belong to GNENet but has influence 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:69
void hideHelpCreation()
hide HelpCreation
HelpCreation(GNEStopFrame *StopFrameParent)
constructor
GNEStopFrame * myStopFrameParent
pointer to Stop Frame Parent
Definition: GNEStopFrame.h:66
CommonXMLStructure::SumoBaseObject * myStopParentBaseObject
stop parent base object
Definition: GNEStopFrame.h:109
void show()
show Frame
GNERouteHandler myRouteHandler
route handler
Definition: GNEStopFrame.h:106
DemandElementSelector * getStopParentSelector() const
get stop parent selector
bool getStopParameter(const SumoXMLTag stopTag, const GNELane *lane, const GNEAdditional *stoppingPlace)
get stop parameters
~GNEStopFrame()
Destructor.
GNEStopFrame(GNEViewParent *viewParent, GNEViewNet *viewNet)
Constructor.
void demandElementSelected()
selected demand element in DemandElementSelector
GNETagSelector * myStopTagSelector
stop tag selector selector (used to select diffent kind of Stops)
Definition: GNEStopFrame.h:115
HelpCreation * myHelpCreation
Help creation.
Definition: GNEStopFrame.h:124
void tagSelected()
Tag selected in GNETagSelector.
GNEAttributesCreator * myStopAttributes
internal Stop attributes
Definition: GNEStopFrame.h:118
DemandElementSelector * myStopParentSelector
Stop parent selectors.
Definition: GNEStopFrame.h:112
bool addStop(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, const GNEViewNetHelper::MouseButtonKeyPressed &mouseButtonKeyPressed)
add Stop element
GNENeteditAttributes * myNeteditAttributes
Netedit parameter.
Definition: GNEStopFrame.h:121
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:84
MFXGroupBoxModule (based on FXGroupBox)
class used to group all variables related with mouse buttons and key pressed after certain events