Eclipse SUMO - Simulation of Urban MObility
GNEWireFrame.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3 // Copyright (C) 2021-2024 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 editing wires
19 /****************************************************************************/
20 #pragma once
21 #include <config.h>
22 
29 
30 
31 // ===========================================================================
32 // class definitions
33 // ===========================================================================
38 class GNEWireFrame : public GNEFrame {
39 
40 public:
45  GNEWireFrame(GNEViewParent* viewParent, GNEViewNet* viewNet);
46 
48  ~GNEWireFrame();
49 
51  void show();
52 
57  bool addWire(const GNEViewNetHelper::ViewObjectsSelector& viewObjects);
58 
61 
63  bool createPath(const bool useLastRoute);
64 
65 protected:
68 
70  void tagSelected();
71 
72 private:
73  // @brief create baseWireObject
74  bool createBaseWireObject(const GNETagProperties& tagProperty);
75 
77  bool buildWireOverView(const GNETagProperties& tagValues);
78 
81 
84 
87 
90 
93 
95  bool myWarnedExperimental = false;
96 };
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:88
GNEAttributesCreator * myWireAttributes
internal wire attributes
Definition: GNEWireFrame.h:83
void tagSelected()
Tag selected in GNETagSelector.
~GNEWireFrame()
Destructor.
GNEConsecutiveSelector * getConsecutiveLaneSelector() const
get consecutive lane selector
bool createPath(const bool useLastRoute)
create path
GNENeteditAttributes * myNeteditAttributes
Netedit parameter.
Definition: GNEWireFrame.h:86
void show()
show wire frame
bool myWarnedExperimental
Warn about experimental state.
Definition: GNEWireFrame.h:95
bool addWire(const GNEViewNetHelper::ViewObjectsSelector &viewObjects)
add wire element
GNESelectorParent * mySelectorWireParent
Select wire parent.
Definition: GNEWireFrame.h:89
GNETagSelector * myWireTagSelector
item selector
Definition: GNEWireFrame.h:80
bool buildWireOverView(const GNETagProperties &tagValues)
build wire over view
GNEWireFrame(GNEViewParent *viewParent, GNEViewNet *viewNet)
Constructor.
CommonXMLStructure::SumoBaseObject * myBaseWire
SumoBaseObject used for create wire.
Definition: GNEWireFrame.h:67
GNEConsecutiveSelector * myConsecutiveLaneSelector
Module for select consecutive lanes.
Definition: GNEWireFrame.h:92
bool createBaseWireObject(const GNETagProperties &tagProperty)