Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GUIDetectorWrapper.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/****************************************************************************/
20// The base class for detector wrapper
21/****************************************************************************/
22#pragma once
23#include <config.h>
24
25#include <utils/geom/Position.h>
29
30
31// ===========================================================================
32// class definitions
33// ===========================================================================
42
43public:
45 GUIDetectorWrapper(GUIGlObjectType type, const std::string& id, FXIcon* icon);
46
49
51
52
61
63 double getExaggeration(const GUIVisualizationSettings& s) const;
65
73 FXDECLARE(PopupMenu)
74
75 public:
77
79 virtual ~PopupMenu() {};
80
82 long onCmdSetOverride(FXObject*, FXSelector, void*);
83
84
85 protected:
86 FOX_CONSTRUCTOR(PopupMenu)
87 };
88
89protected:
90
92 virtual bool haveOverride() const {
93 return false;
94 }
95
96 virtual void toggleOverride() const { }
97
100
101
102};
GUIGlObjectType
long onCmdSetOverride(FXObject *, FXSelector, void *)
called to set/reset virtual detector calls
double getExaggeration(const GUIVisualizationSettings &s) const
return exaggeration associated with this GLObject
virtual bool haveOverride() const
whether this detector has an active virtual detector call
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
~GUIDetectorWrapper()
Destructor.
bool mySupportsOverride
whether this detector supports virtual detector calls
virtual void toggleOverride() const
The popup menu of a globject.
Stores the information about how to visualize structures.