52 double layer,
double angle,
const std::string& imgFile,
53 double width,
double height) :
54 PointOfInterest(id, type, color, pos, layer, angle, imgFile, width, height),
68 FXString t(
myType.c_str());
69 new FXMenuCommand(ret,
"(" + t +
")", 0, 0, 0);
70 new FXMenuSeparator(ret);
124 const Position namePos =
Position(
x() + 1.32 * exaggeration,
y() + 1.32 * exaggeration);
static void drawTexturedBox(int which, double size)
Draws a named texture as a box with the given size.
double scale
information about a lane's width (temporary, used for a single view)
GUIVisualizationTextSettings poiType
static const std::string DEFAULT_IMG_FILE
void buildNameCopyPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds entries which allow to copy the name / typed name into the clipboard.
GUIVisualizationTextSettings poiName
Stores the information about how to visualize structures.
double y() const
Returns the y-position.
double x() const
Returns the x-position.
void buildCenterPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to center to the object.
static void drawFilledCircle(double width, int steps=8)
Draws a filled circle around (0,0)
void buildPositionCopyEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to copy the cursor position if geo projection is used, also builds an entry for copying the geo-position.
A class that stores a 2D geometrical boundary.
std::string myType
The type of the Shape.
double getLayer() const
Returns the layer of the Shape.
double myHalfImgHeight
The half height of the image when rendering this POI.
double getNaviDegree() const
Returns the angle of the Shape in navigational degrees.
static void setColor(const RGBColor &c)
Sets the gl-color to this value.
double minSize
The minimum size to draw this object.
A point in 2D or 3D with translation and scaling methods.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
static int getTextureID(const std::string &filename, const bool mirrorX=false)
return texture id for the given filename (initialize on first use)
double myHalfImgWidth
The half width of the image when rendering this POI.
void drawName(const Position &pos, const double scale, const GUIVisualizationTextSettings &settings, const double angle=0) const
draw name of item
Boundary & grow(double by)
extends the boundary by the given amount
virtual ~GUIPointOfInterest()
Destructor.
void growHeight(double by)
Increases the height of the boundary (y-axis)
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
GUIVisualizationSizeSettings poiSize
const RGBColor & getColor() const
Returns the color of the Shape.
std::string myImgFile
The angle of the Shape.
GUIPointOfInterest(const std::string &id, const std::string &type, const RGBColor &color, const Position &pos, double layer, double angle, const std::string &imgFile, double width, double height)
Constructor.
void buildSelectionPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to (de)select the object.
void growWidth(double by)
Increases the width of the boundary (x-axis)
GUIGlID getGlID() const
Returns the numerical id of the object.
double getExaggeration(const GUIVisualizationSettings &s, double factor=20) const
return the drawing size including exaggeration and constantSize values
static void drawText(const std::string &text, const Position &pos, const double layer, const double size, const RGBColor &col=RGBColor::BLACK, const double angle=0)
draw Text with given parameters
void add(double x, double y, double z=0)
Makes the boundary include the given coordinate.
Position()
default constructor
A window containing a gl-object's parameter.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
void buildPopupHeader(GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true)
Builds the header.