Eclipse SUMO - Simulation of Urban MObility
GNEContainerPlanFrame.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 ContainerPlan elements
19 /****************************************************************************/
20 #pragma once
21 #include <config.h>
22 
28 
29 
30 // ===========================================================================
31 // class definitions
32 // ===========================================================================
37 
38 public:
43  GNEContainerPlanFrame(GNEViewParent* viewParent, GNEViewNet* viewNet);
44 
47 
49  void show();
50 
52  void hide();
53 
59  bool addContainerPlanElement(const GNEViewNetHelper::ObjectsUnderCursor& objectsUnderCursor, const GNEViewNetHelper::MouseButtonKeyPressed& mouseButtonKeyPressed);
60 
63 
64 protected:
66  void tagSelected();
67 
69  void demandElementSelected();
70 
72  bool createPath(const bool useLastRoute);
73 
74 private:
77 
80 
83 
86 
89 
92 };
GNEElementTree * myContainerHierarchy
Container Hierarchy.
GNERouteHandler myRouteHandler
route handler
GNEAttributesCreator * myContainerPlanAttributes
internal vehicle attributes
DemandElementSelector * myContainerSelector
Container selectors.
GNEContainerPlanFrame(GNEViewParent *viewParent, GNEViewNet *viewNet)
Constructor.
GNEPathCreator * myPathCreator
Path Creator.
GNETagSelector * myContainerPlanTagSelector
containerPlan selector
GNEPathCreator * getPathCreator() const
get path creator modul
bool addContainerPlanElement(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, const GNEViewNetHelper::MouseButtonKeyPressed &mouseButtonKeyPressed)
add container plan element
void demandElementSelected()
selected demand element in DemandElementSelector
void tagSelected()
Tag selected in GNETagSelector.
bool createPath(const bool useLastRoute)
create path
Builds trigger objects for GNENet (busStops, chargingStations, detectors, etc..)
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
class used to group all variables related with mouse buttons and key pressed after certain events