Eclipse SUMO - Simulation of Urban MObility
GUIDetectorWrapper.cpp
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
15 // The base class for detector wrapper
16 /****************************************************************************/
17 
18 
19 // ===========================================================================
20 // included modules
21 // ===========================================================================
22 #include <config.h>
23 
24 #include "GUIDetectorWrapper.h"
27 #include <gui/GUIGlobals.h>
32 
33 
34 // ===========================================================================
35 // member method definitions
36 // ===========================================================================
38  GUIGlObject_AbstractAdd(type, id) {}
39 
40 
42 
43 
46  GUIGLObjectPopupMenu* ret = new GUIGLObjectPopupMenu(app, parent, *this);
47  buildPopupHeader(ret, app);
52  buildPositionCopyEntry(ret, false);
53  return ret;
54 }
55 
56 
57 
58 /****************************************************************************/
59 
GUISUMOAbstractView
Definition: GUISUMOAbstractView.h:72
GUIParameterTableWindow.h
GUIGlObject::buildSelectionPopupEntry
void buildSelectionPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to (de)select the object.
Definition: GUIGlObject.cpp:235
GUIGLObjectPopupMenu.h
GUIGlobalSelection.h
GUIGlObject_AbstractAdd
Definition: GUIGlObject_AbstractAdd.h:39
GUIGLObjectPopupMenu
The popup menu of a globject.
Definition: GUIGLObjectPopupMenu.h:47
GUIAppEnum.h
GUIGlObjectType
GUIGlObjectType
Definition: GUIGlObjectTypes.h:39
GUISUMOAbstractView.h
GUIDetectorWrapper::~GUIDetectorWrapper
~GUIDetectorWrapper()
Destructor.
Definition: GUIDetectorWrapper.cpp:41
GUIGlObject::buildNameCopyPopupEntry
void buildNameCopyPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds entries which allow to copy the name / typed name into the clipboard.
Definition: GUIGlObject.cpp:225
GUIGlobals.h
GUIApplicationWindow.h
GUIDetectorWrapper.h
GUIDetectorWrapper::getPopUpMenu
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
Definition: GUIDetectorWrapper.cpp:45
GUIGlObject::buildPopupHeader
void buildPopupHeader(GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true)
Builds the header.
Definition: GUIGlObject.cpp:207
GUIMainWindow
Definition: GUIMainWindow.h:46
GUIGlObject::buildShowParamsPopupEntry
void buildShowParamsPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to open the parameter window.
Definition: GUIGlObject.cpp:248
GUIGlObject::buildCenterPopupEntry
void buildCenterPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to center to the object.
Definition: GUIGlObject.cpp:216
GUIGlObject::buildPositionCopyEntry
void buildPositionCopyEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to copy the cursor position if geo projection is used,...
Definition: GUIGlObject.cpp:266
config.h
GUIDetectorWrapper::GUIDetectorWrapper
GUIDetectorWrapper(GUIGlObjectType type, const std::string &id)
Constructor.
Definition: GUIDetectorWrapper.cpp:37