Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEAttributesEditor.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// pack of all GNEAttributesEditorTypes
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
24
25// ===========================================================================
26// class GNEAttributesEditor
27// ===========================================================================
28
30
31public:
34
36 void showAttributesEditor(GNEAttributeCarrier* AC, const bool primaryAttributeEditor);
37
39 void showAttributesEditor(const std::unordered_set<GNEAttributeCarrier*>& ACs, const bool primaryAttributeEditor);
40
43
46
49
52
54 bool checkAttributes(const bool showWarning);
55
58
62 bool isReparenting() const;
63
65 bool checkNewParent(const GNEAttributeCarrier* AC) const;
66
68 void setNewParent(const GNEAttributeCarrier* AC);
69
71 void abortReparenting();
72
74
75protected:
78
81
84
87
90
93
94private:
97
100};
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
GNEAttributesEditorType * myNeteditAttributesEditor
netedit attributes editor
SumoXMLAttr fillSumoBaseObject(CommonXMLStructure::SumoBaseObject *baseObject) const
fill sumo Base object
GNEAttributesEditorType * myExtendedAttributesEditor
extended attributes editor
GNEAttributesEditorType * myGeoAttributesEditor
geo attributes editor
void setNewParent(const GNEAttributeCarrier *AC)
set new parent
GNEAttributesEditor & operator=(GNEAttributesEditor *)=delete
Invalidated assignment operator.
void showAttributesEditor(GNEAttributeCarrier *AC, const bool primaryAttributeEditor)
edit attributes of the given AC (usually the edited template AC)
void refreshAttributesEditor()
refresh attribute editor
GNEAttributesEditorType * getNeteditAttributesEditor() const
get netedit attributes editor
bool checkAttributes(const bool showWarning)
check if current edited attributes are valid
bool checkNewParent(const GNEAttributeCarrier *AC) const
check if the given AC can be a new parent
GNEAttributesEditorType * myFlowAttributesEditor
flow attributes editor
void disableAttributesEditor()
disable attribute editor
GNEAttributesEditor(GNEAttributesEditor *)=delete
Invalidated copy constructor.
void abortReparenting()
abort selecting parent
void hideAttributesEditor()
hide attribute editor
GNEAttributesEditorType * myParametersAttributesEditor
parameteres attributes editor
GNEAttributesEditorType * myBasicAttributesEditor
basic attributes editor