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 /****************************************************************************/
16 // missing_desc
17 /****************************************************************************/
18 #ifndef GUIPointOfInterest_h
19 #define GUIPointOfInterest_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 #include <string>
31 
32 
33 // ===========================================================================
34 // class declarations
35 // ===========================================================================
36 
37 
38 // ===========================================================================
39 // class definitions
40 // ===========================================================================
41 /*
42  * @class GUIPointOfInterest
43  * @brief The GUI-version of a point of interest
44  */
46 public:
63  GUIPointOfInterest(const std::string& id, const std::string& type,
64  const RGBColor& color, const Position& pos, bool geo,
65  const std::string& lane, double posOverLane, double posLat,
66  double layer, double angle, const std::string& imgFile,
67  bool relativePath, double width, double height);
68 
70  virtual ~GUIPointOfInterest();
71 
72 
73 
75 
76 
85  GUISUMOAbstractView& parent);
86 
87 
96  GUISUMOAbstractView& parent);
97 
98 
105 
106 
111  void drawGL(const GUIVisualizationSettings& s) const;
113 
114 protected:
116  void setColor(const GUIVisualizationSettings& s, bool forceSelectionColor) const;
117 
119  bool checkDraw(const GUIVisualizationSettings& s) const;
120 
122  void drawInnerPOI(const GUIVisualizationSettings& s, bool forceSelectionColor) const;
123 
125  static std::vector<Position> myPOIVertices;
126 };
127 
128 
129 #endif
130 
131 /****************************************************************************/
132 
GUIParameterTableWindow
A window containing a gl-object's parameter.
Definition: GUIParameterTableWindow.h:62
GUISUMOAbstractView
Definition: GUISUMOAbstractView.h:72
GUIPointOfInterest::getPopUpMenu
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
Definition: GUIPointOfInterest.cpp:63
GUIPointOfInterest::checkDraw
bool checkDraw(const GUIVisualizationSettings &s) const
check if POI can be drawn
Definition: GUIPointOfInterest.cpp:130
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:49
GUIGlObject_AbstractAdd
Definition: GUIGlObject_AbstractAdd.h:39
GUIGLObjectPopupMenu
The popup menu of a globject.
Definition: GUIGLObjectPopupMenu.h:47
RGBColor
Definition: RGBColor.h:39
GUIPointOfInterest
Definition: GUIPointOfInterest.h:45
GUIPointOfInterest::setColor
void setColor(const GUIVisualizationSettings &s, bool forceSelectionColor) const
set color
Definition: GUIPointOfInterest.cpp:113
GUIPointOfInterest::drawInnerPOI
void drawInnerPOI(const GUIVisualizationSettings &s, bool forceSelectionColor) const
draw inner POI (before pushName() )
Definition: GUIPointOfInterest.cpp:140
Boundary
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:41
Position
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:38
GUIGlObject_AbstractAdd.h
GUIPointOfInterest::drawGL
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Definition: GUIPointOfInterest.cpp:97
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:125
GUIPointOfInterest::getParameterWindow
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Definition: GUIPointOfInterest.cpp:72
PointOfInterest.h
GUIMainWindow
Definition: GUIMainWindow.h:46
GUIPointOfInterest::~GUIPointOfInterest
virtual ~GUIPointOfInterest()
Destructor.
Definition: GUIPointOfInterest.cpp:59
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:83
PointOfInterest
A point-of-interest.
Definition: PointOfInterest.h:43
GUIVisualizationSettings
Stores the information about how to visualize structures.
Definition: GUIVisualizationSettings.h:345