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 /****************************************************************************/
16 // The base class for detector wrapper
17 /****************************************************************************/
18 
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include <config.h>
24 
25 #include "GUIDetectorWrapper.h"
28 #include <gui/GUIGlobals.h>
33 
34 
35 // ===========================================================================
36 // member method definitions
37 // ===========================================================================
39  GUIGlObject_AbstractAdd(type, id) {}
40 
41 
43 
44 
47  GUIGLObjectPopupMenu* ret = new GUIGLObjectPopupMenu(app, parent, *this);
48  buildPopupHeader(ret, app);
53  buildPositionCopyEntry(ret, false);
54  return ret;
55 }
56 
57 
58 
59 /****************************************************************************/
60 
GUISUMOAbstractView
Definition: GUISUMOAbstractView.h:73
GUIParameterTableWindow.h
GUIGlObject::buildSelectionPopupEntry
void buildSelectionPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to (de)select the object.
Definition: GUIGlObject.cpp:236
GUIGLObjectPopupMenu.h
GUIGlobalSelection.h
GUIGlObject_AbstractAdd
Definition: GUIGlObject_AbstractAdd.h:40
GUIGLObjectPopupMenu
The popup menu of a globject.
Definition: GUIGLObjectPopupMenu.h:48
GUIAppEnum.h
GUIGlObjectType
GUIGlObjectType
Definition: GUIGlObjectTypes.h:40
GUISUMOAbstractView.h
GUIDetectorWrapper::~GUIDetectorWrapper
~GUIDetectorWrapper()
Destructor.
Definition: GUIDetectorWrapper.cpp:42
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:226
GUIGlobals.h
GUIApplicationWindow.h
GUIDetectorWrapper.h
GUIDetectorWrapper::getPopUpMenu
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
Definition: GUIDetectorWrapper.cpp:46
GUIGlObject::buildPopupHeader
void buildPopupHeader(GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true)
Builds the header.
Definition: GUIGlObject.cpp:208
GUIMainWindow
Definition: GUIMainWindow.h:47
GUIGlObject::buildShowParamsPopupEntry
void buildShowParamsPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to open the parameter window.
Definition: GUIGlObject.cpp:249
GUIGlObject::buildCenterPopupEntry
void buildCenterPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to center to the object.
Definition: GUIGlObject.cpp:217
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:267
config.h
GUIDetectorWrapper::GUIDetectorWrapper
GUIDetectorWrapper(GUIGlObjectType type, const std::string &id)
Constructor.
Definition: GUIDetectorWrapper.cpp:38