Eclipse SUMO - Simulation of Urban MObility
GUIDialog_GLObjChooser.cpp
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 /****************************************************************************/
20 // Class for the window that allows to choose a street, junction or vehicle
21 /****************************************************************************/
22 #include <config.h>
23 
24 #include <string>
25 #include <vector>
26 #include <fxkeys.h>
36 #include <gui/GUISUMOViewParent.h>
37 #include "GUIDialog_GLObjChooser.h"
38 
39 
40 // ===========================================================================
41 // method definitions
42 // ===========================================================================
44  FXIcon* icon, const FXString& title, const std::vector<GUIGlID>& ids, GUIGlObjectStorage& glStorage) :
45  GUIDialog_ChooserAbstract(SUMOViewParent, messageId, icon, title, ids, glStorage),
46  mySUMOViewParent(SUMOViewParent) {
47 }
48 
49 
52 }
53 
54 /****************************************************************************/
GUIDialog_GLObjChooser(GUISUMOViewParent *SUMOViewParent, int messageId, FXIcon *icon, const FXString &title, const std::vector< GUIGlID > &ids, GUIGlObjectStorage &glStorage)
Constructor.
virtual ~GUIDialog_GLObjChooser()
Destructor.
GUISUMOViewParent * mySUMOViewParent
SUMO-GUI View parent.
A storage for of displayed objects via their numerical id.
A single child window which contains a view of the simulation area.
void eraseGLObjChooser(GUIDialog_GLObjChooser *GLObjChooser)
erase GLObjChooser