Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEInspectorFrame.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-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/****************************************************************************/
19// The Widget for modifying network-element attributes (i.e. lane speed)
20/****************************************************************************/
21#pragma once
22#include <config.h>
23
27
28// ===========================================================================
29// class declaration
30// ===========================================================================
31class GNEEdgeTemplate;
32
33// ===========================================================================
34// class definitions
35// ===========================================================================
42 FXDECLARE(GNEInspectorFrame)
43
44
46
47public:
48 // ===========================================================================
49 // class TemplateEditor
50 // ===========================================================================
51
55
56 public:
58 TemplateEditor(GNEInspectorFrame* inspectorFrameParent);
59
62
64 bool showTemplateEditor();
65
67 void hideTemplateEditor();
68
70 GNEEdgeTemplate* getEdgeTemplate() const;
71
73 void setEdgeTemplate(const GNEEdge* edge);
74
76 void updateEdgeTemplate();
77
79 void setTemplate();
80
82 void copyTemplate();
83
85 void clearTemplate();
86
90 long onCmdSetTemplate(FXObject*, FXSelector, void*);
91
93 long onCmdCopyTemplate(FXObject*, FXSelector, void*);
94
96 long onCmdClearTemplate(FXObject*, FXSelector, void*);
98
99 protected:
101 FOX_CONSTRUCTOR(TemplateEditor)
102
103
104 void updateButtons();
105
106 private:
109
112
115
118
121 };
122
127 GNEInspectorFrame(GNEViewParent* viewParent, GNEViewNet* viewNet);
128
131
133 void show();
134
136 void hide();
137
142 bool inspectClickedElements(GNEViewNetHelper::ViewObjectsSelector& viewObjects, const Position &clickedPosition,
143 const bool shiftKeyPressed);
144
146 void inspectElement(GNEAttributeCarrier* AC, GNEAttributeCarrier* previousInspectedAC = nullptr);
147
149 void inspectElements(const std::vector<GNEAttributeCarrier*>& ACs, GNEAttributeCarrier* previousInspectedAC = nullptr);
150
152 void clearInspection();
153
155 void refreshInspection();
156
159
162
165
168
171
174
176 long onCmdInspectPreviousElement(FXObject*, FXSelector, void*);
178
181
184
185protected:
187 FOX_CONSTRUCTOR(GNEInspectorFrame)
188
189private:
192
195
198
201
204
207
210
213
215 FXButton* myBackButton;
216
219};
A road/street connecting two junctions (netedit-version)
Definition GNEEdge.h:53
GNEInspectorFrame * myInspectorFrameParent
current GNEInspectorFrame parent
FXButton * myClearTemplateButton
clear template button
FXButton * mySetTemplateButton
set template button
FXButton * myCopyTemplateButton
copy template button
GNEEdgeTemplate * myEdgeTemplate
edge Template
GNEAttributesEditor * myNeteditAttributesEditor
Netedit Attributes editor.
long onCmdInspectPreviousElement(FXObject *, FXSelector, void *)
called when user press inspet previous elemnt button
GNEAttributeCarrier * myPreviousInspectedAC
Pointer to previous element inspected.
void selectedOverlappedElement(GNEAttributeCarrier *AC)
open GNEAttributesCreator extended dialog (can be reimplemented in frame children)
TemplateEditor * getTemplateEditor() const
get template editor
void inspectElements(const std::vector< GNEAttributeCarrier * > &ACs, GNEAttributeCarrier *previousInspectedAC=nullptr)
Inspect the given elements.
GNEElementTree * getHierarchicalElementTree() const
get GNEElementTree modul
friend class GNEFrameAttributeModules::ParametersEditor
FOX-declaration.
bool inspectClickedElements(GNEViewNetHelper::ViewObjectsSelector &viewObjects, const Position &clickedPosition, const bool shiftKeyPressed)
process click over Viewnet
void show()
show inspector frame
GNEFrameAttributeModules::ParametersEditor * myParametersEditor
Parameters editor inspector.
GNEAttributesEditor * myFlowAttributesEditor
Flow attributes editor.
GNEAttributesEditor * myAttributesEditor
Attributes editor.
GNEAttributesEditor * myGEOAttributesEditor
GEO Attributes editor.
GNEOverlappedInspection * myOverlappedInspection
FOX need this.
GNEOverlappedInspection * getOverlappedInspection() const
get GNEOverlappedInspection modul
void clearInspection()
clear inspection
GNEAttributesEditor * getAttributesEditor() const
get AttributesEditor
void hide()
hide inspector frame
FXButton * myBackButton
Back Button.
void inspectElement(GNEAttributeCarrier *AC, GNEAttributeCarrier *previousInspectedAC=nullptr)
Inspect a single element.
GNEElementTree * myHierarchicalElementTree
Attribute Carrier Hierarchy.
void refreshInspection()
refresh current inspection
~GNEInspectorFrame()
Destructor.
TemplateEditor * myTemplateEditor
Template editor.
GNEAttributesEditor * getNeteditAttributesEditor() const
get Netedit Attributes editor
void updateFrameAfterUndoRedo()
function called after undo/redo in the current frame (can be reimplemented in frame children)
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.
MFXGroupBoxModule (based on FXGroupBox)
A point in 2D or 3D with translation and scaling methods.
Definition Position.h:37
every row value