Eclipse SUMO - Simulation of Urban MObility
GNEDialogACChooser.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 /****************************************************************************/
18 // Class for the window that allows to choose a street, junction or vehicle
19 /****************************************************************************/
20 
21 #pragma once
22 #include <config.h>
23 
25 
26 
27 // ===========================================================================
28 // class declarations
29 // ===========================================================================
30 
32 class GNEViewParent;
33 
34 // ===========================================================================
35 // class definition
36 // ===========================================================================
44 
45 public:
52  GNEDialogACChooser(GNEViewParent* viewParent, int messageId, FXIcon* icon, const std::string& title, const std::vector<GNEAttributeCarrier*>& ACs);
53 
56 
57 protected:
58  FOX_CONSTRUCTOR(GNEDialogACChooser)
59 
60 
61  void toggleSelection(int listIndex) override;
62 
64  void select(int listIndex) override;
65 
67  void deselect(int listIndex) override;
68 
70  void filterACs(const std::vector<GUIGlID>& GLIDs) override;
71 
73  std::string getObjectName(GUIGlObject* o) const override;
74 
75 private:
78 
80  std::vector<GNEAttributeCarrier*> myACs;
81 
83  std::vector<GNEAttributeCarrier*> myFilteredACs;
84 
87 };
GNEDialogACChooser(GNEViewParent *viewParent, int messageId, FXIcon *icon, const std::string &title, const std::vector< GNEAttributeCarrier * > &ACs)
Constructor.
std::vector< GNEAttributeCarrier * > myACs
list of displayed ACs
void select(int listIndex) override
set selection (handled differently in netedit)
bool myLocateTLS
whether the current locator is for TLS
~GNEDialogACChooser()
Destructor.
void filterACs(const std::vector< GUIGlID > &GLIDs) override
filter ACs
GNEViewParent * myViewParent
pointer to view parent
void toggleSelection(int listIndex) override
toggle selection
std::string getObjectName(GUIGlObject *o) const override
retrieve name for the given object (special case for TLS)
std::vector< GNEAttributeCarrier * > myFilteredACs
list of filtered ACs
void deselect(int listIndex) override
unset selection (handled differently in netedit)
A single child window which contains a view of the simulation area.
Definition: GNEViewParent.h:88