Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEVehicleFrame.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-2023 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 Vehicles/Flows/Trips/etc. elements
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
29class MFXDynamicLabel;
30
31// ===========================================================================
32// class definitions
33// ===========================================================================
37class GNEVehicleFrame : public GNEFrame {
38
39public:
40
41 // ===========================================================================
42 // class HelpCreation
43 // ===========================================================================
44
46
47 public:
49 HelpCreation(GNEVehicleFrame* vehicleFrameParent);
50
53
55 void showHelpCreation();
56
58 void hideHelpCreation();
59
61 void updateHelpCreation();
62
63 private:
66
69 };
70
75 GNEVehicleFrame(GNEViewParent* viewParent, GNEViewNet* viewNet);
76
79
81 void show();
82
84 void hide();
85
91 bool addVehicle(const GNEViewNetHelper::ObjectsUnderCursor& objectsUnderCursor, const GNEViewNetHelper::MouseButtonKeyPressed& mouseButtonKeyPressed);
92
95
98
101
102protected:
104 void tagSelected();
105
108
110 bool createPath(const bool useLastRoute);
111
113 bool buildVehicleOverRoute(SumoXMLTag vehicleTag, GNEDemandElement* route);
114
115private:
118
121
124
127
130
133
136
139};
SumoXMLTag
Numbers representing SUMO-XML - element names.
An Element which don't belong to GNENet but has influence in the simulation.
Builds trigger objects for GNENet (busStops, chargingStations, detectors, etc..)
void showHelpCreation()
show HelpCreation
MFXDynamicLabel * myInformationLabel
Label with creation information.
void hideHelpCreation()
hide HelpCreation
void updateHelpCreation()
update HelpCreation
GNEVehicleFrame * myVehicleFrameParent
pointer to Vehicle Frame Parent
GNEAttributesCreator * myVehicleAttributes
internal vehicle attributes
GNETagSelector * myVehicleTagSelector
vehicle tag selector (used to select diffent kind of vehicles)
void hide()
hide Frame
GNEPathCreator * getPathCreator() const
get GNEPathCreator module
GNERouteHandler myRouteHandler
route handler
bool createPath(const bool useLastRoute)
create path
CommonXMLStructure::SumoBaseObject * myVehicleBaseObject
vehicle base object
~GNEVehicleFrame()
Destructor.
void show()
show Frame
GNEPathCreator * myPathCreator
edge path creator (used for trips and flows)
bool addVehicle(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, const GNEViewNetHelper::MouseButtonKeyPressed &mouseButtonKeyPressed)
add vehicle element
bool buildVehicleOverRoute(SumoXMLTag vehicleTag, GNEDemandElement *route)
build vehicle over route
void tagSelected()
Tag selected in GNETagSelector.
DemandElementSelector * getTypeSelector() const
getVehicle Type selectors
HelpCreation * myHelpCreation
Help creation.
void demandElementSelected()
selected vehicle type in DemandElementSelector
GNEPathLegendModule * myPathLegend
path legend modul
GNETagSelector * getVehicleTagSelector() const
get vehicle tag selector (needed for transform vehicles)
DemandElementSelector * myTypeSelector
Vehicle Type selectors.
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)
class used to group all variables related with mouse buttons and key pressed after certain events