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.
void drawName(const Position &pos, const double scale, const GUIVisualizationTextSettings &settings, const double angle=0) const
draw name of item
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
double x() const
Returns the x-position.
Stores the information about how to visualize structures.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
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.
GUIGlID getGlID() const
Returns the numerical id of the object.
A class that stores a 2D geometrical boundary.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
std::string myType
The type of the Shape.
double myHalfImgHeight
The half height of the image when rendering this POI.
double getExaggeration(const GUIVisualizationSettings &s, double factor=20) const
return the drawing size including exaggeration and constantSize values
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.
double y() const
Returns the y-position.
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.
Boundary & grow(double by)
extends the boundary by the given amount
virtual ~GUIPointOfInterest()
Destructor.
const RGBColor & getColor() const
Returns the color of the Shape.
void growHeight(double by)
Increases the height of the boundary (y-axis)
double getLayer() const
Returns the layer of the Shape.
GUIVisualizationSizeSettings poiSize
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)
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
double getNaviDegree() const
Returns the angle of the Shape in navigational degrees.
A window containing a gl-object's parameter.
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
void buildPopupHeader(GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true)
Builds the header.