Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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-2025 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 declaration
28// ===========================================================================
29
32class GNETagSelector;
33class MFXDynamicLabel;
34
35// ===========================================================================
36// class definitions
37// ===========================================================================
38
39class GNEStopFrame : public GNEFrame {
40
41public:
42
43 // ===========================================================================
44 // class HelpCreation
45 // ===========================================================================
46
48
49 public:
51 HelpCreation(GNEStopFrame* StopFrameParent);
52
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
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
98protected:
100 void tagSelected();
101
104
107
108private:
111
114
117
120
123
126};
SumoXMLTag
Numbers representing SUMO-XML - element names.
plan parameters (used for group all from-to parameters related with plans)
void updateHelpCreation()
update HelpCreation
void showHelpCreation()
show HelpCreation
void hideHelpCreation()
hide HelpCreation
GNEStopFrame * myStopFrameParent
pointer to Stop Frame Parent
MFXDynamicLabel * myInformationLabel
Label with creation information.
CommonXMLStructure::SumoBaseObject * myStopParentBaseObject
stop parent base object
Position myLastClickedPosition
last clicked position
void show()
show Frame
bool getStopParameter(const SumoXMLTag stopTag, const GNELane *lane, const GNEAdditional *stoppingPlace)
get stop parameters
~GNEStopFrame()
Destructor.
CommonXMLStructure::PlanParameters myPlanParameters
plan parameters
GNEDemandElementSelector * myStopParentSelector
Stop parent selectors.
void demandElementSelected()
selected demand element in DemandElementSelector
GNETagSelector * myStopTagSelector
stop tag selector selector (used to select diffent kind of Stops)
HelpCreation * myHelpCreation
Help creation.
void tagSelected()
Tag selected in GNETagSelector.
GNEDemandElementSelector * getStopParentSelector() const
get stop parent selector
bool addStop(const GNEViewNetHelper::ViewObjectsSelector &viewObjects, const GNEViewNetHelper::MouseButtonKeyPressed &mouseButtonKeyPressed)
add Stop element
GNEAttributesEditor * myAttributesEditor
attributes editor
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.
A list item which allows for custom coloring.
MFXGroupBoxModule (based on FXGroupBox)
A point in 2D or 3D with translation and scaling methods.
Definition Position.h:37
class used to group all variables related with mouse buttons and key pressed after certain events