Eclipse SUMO - Simulation of Urban MObility
GUIPointOfInterest.h
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 /****************************************************************************/
17 // missing_desc
18 /****************************************************************************/
19 #ifndef GUIPointOfInterest_h
20 #define GUIPointOfInterest_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
28 #include <string>
32 
33 
34 // ===========================================================================
35 // class declarations
36 // ===========================================================================
37 
38 
39 // ===========================================================================
40 // class definitions
41 // ===========================================================================
42 /*
43  * @class GUIPointOfInterest
44  * @brief The GUI-version of a point of interest
45  */
47 public:
64  GUIPointOfInterest(const std::string& id, const std::string& type,
65  const RGBColor& color, const Position& pos, bool geo,
66  const std::string& lane, double posOverLane, double posLat,
67  double layer, double angle, const std::string& imgFile,
68  bool relativePath, double width, double height);
69 
71  virtual ~GUIPointOfInterest();
72 
73 
74 
76 
77 
86  GUISUMOAbstractView& parent);
87 
88 
97  GUISUMOAbstractView& parent);
98 
99 
106 
107 
112  void drawGL(const GUIVisualizationSettings& s) const;
114 
115 protected:
117  void setColor(const GUIVisualizationSettings& s, bool forceSelectionColor) const;
118 
120  bool checkDraw(const GUIVisualizationSettings& s) const;
121 
123  void drawInnerPOI(const GUIVisualizationSettings& s, bool forceSelectionColor) const;
124 
126  static std::vector<Position> myPOIVertices;
127 };
128 
129 
130 #endif
131 
132 /****************************************************************************/
133 
GUIParameterTableWindow
A window containing a gl-object's parameter.
Definition: GUIParameterTableWindow.h:63
GUISUMOAbstractView
Definition: GUISUMOAbstractView.h:73
GUIPointOfInterest::getPopUpMenu
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
Definition: GUIPointOfInterest.cpp:64
GUIPointOfInterest::checkDraw
bool checkDraw(const GUIVisualizationSettings &s) const
check if POI can be drawn
Definition: GUIPointOfInterest.cpp:131
GUIVisualizationSettings.h
GUIPointOfInterest::GUIPointOfInterest
GUIPointOfInterest(const std::string &id, const std::string &type, const RGBColor &color, const Position &pos, bool geo, const std::string &lane, double posOverLane, double posLat, double layer, double angle, const std::string &imgFile, bool relativePath, double width, double height)
Constructor.
Definition: GUIPointOfInterest.cpp:50
GUIGlObject_AbstractAdd
Definition: GUIGlObject_AbstractAdd.h:40
GUIGLObjectPopupMenu
The popup menu of a globject.
Definition: GUIGLObjectPopupMenu.h:48
RGBColor
Definition: RGBColor.h:40
GUIPointOfInterest
Definition: GUIPointOfInterest.h:46
GUIPointOfInterest::setColor
void setColor(const GUIVisualizationSettings &s, bool forceSelectionColor) const
set color
Definition: GUIPointOfInterest.cpp:114
GUIPointOfInterest::drawInnerPOI
void drawInnerPOI(const GUIVisualizationSettings &s, bool forceSelectionColor) const
draw inner POI (before pushName() )
Definition: GUIPointOfInterest.cpp:141
Boundary
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:42
Position
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:39
GUIGlObject_AbstractAdd.h
GUIPointOfInterest::drawGL
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Definition: GUIPointOfInterest.cpp:98
GUIPointOfInterest::myPOIVertices
static std::vector< Position > myPOIVertices
after every iteration of drawgl, position of vertices that make the circle are saved here....
Definition: GUIPointOfInterest.h:126
GUIPointOfInterest::getParameterWindow
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Definition: GUIPointOfInterest.cpp:73
PointOfInterest.h
GUIMainWindow
Definition: GUIMainWindow.h:47
GUIPointOfInterest::~GUIPointOfInterest
virtual ~GUIPointOfInterest()
Destructor.
Definition: GUIPointOfInterest.cpp:60
config.h
GUIPointOfInterest::getCenteringBoundary
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
Definition: GUIPointOfInterest.cpp:84
PointOfInterest
A point-of-interest.
Definition: PointOfInterest.h:44
GUIVisualizationSettings
Stores the information about how to visualize structures.
Definition: GUIVisualizationSettings.h:346