Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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// ===========================================================================
38class GNEWireFrame : public GNEFrame {
39
40public:
45 GNEWireFrame(GNEViewParent* viewParent, GNEViewNet* viewNet);
46
49
51 void show();
52
57 bool addWire(const GNEViewNetHelper::ViewObjectsSelector& viewObjects);
58
61
63 bool createPath(const bool useLastRoute);
64
65protected:
68
70 void tagSelected();
71
72private:
73 // @brief create baseWireObject
74 bool createBaseWireObject(const GNETagProperties& tagProperty);
75
77 bool buildWireOverView(const GNETagProperties& tagValues);
78
81
84
87
90
93
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.
GNEAttributesCreator * myWireAttributes
internal wire attributes
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.
void show()
show wire frame
bool myWarnedExperimental
Warn about experimental state.
bool addWire(const GNEViewNetHelper::ViewObjectsSelector &viewObjects)
add wire element
GNESelectorParent * mySelectorWireParent
Select wire parent.
GNETagSelector * myWireTagSelector
item selector
bool buildWireOverView(const GNETagProperties &tagValues)
build wire over view
CommonXMLStructure::SumoBaseObject * myBaseWire
SumoBaseObject used for create wire.
GNEConsecutiveSelector * myConsecutiveLaneSelector
Module for select consecutive lanes.
bool createBaseWireObject(const GNETagProperties &tagProperty)