46 #ifdef CHECK_MEMORY_LEAKS 48 #endif // CHECK_MEMORY_LEAKS 58 PointOfInterest(id, type, color, pos, layer, angle, imgFile, width, height),
72 FXString t(
myType.c_str());
73 new FXMenuCommand(ret,
"(" + t +
")", 0, 0, 0);
74 new FXMenuSeparator(ret);
128 const Position namePos =
Position(
x() + 1.32 * exaggeration,
y() + 1.32 * exaggeration);
void drawName(const Position &pos, const SUMOReal scale, const GUIVisualizationTextSettings &settings, const SUMOReal angle=0) const
draw name of item
void growWidth(SUMOReal by)
Increases the width of the boundary (x-axis)
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.
SUMOReal minSize
The minimum size to draw this object.
void buildCenterPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to center to the object.
SUMOReal getNaviDegree() const
Returns the angle of the Shape in navigational degrees.
static void drawText(const std::string &text, const Position &pos, const SUMOReal layer, const SUMOReal size, const RGBColor &col=RGBColor::BLACK, const SUMOReal angle=0)
draw Text with given parameters
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.
SUMOReal scale
information about a lane's width (temporary, used for a single view)
std::string myType
The type of the Shape.
static void drawFilledCircle(SUMOReal width, int steps=8)
Draws a filled circle around (0,0)
SUMOReal myHalfImgWidth
The half width of the image when rendering this POI.
static void setColor(const RGBColor &c)
Sets the gl-color to this value.
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)
SUMOReal x() const
Returns the x-position.
GUIPointOfInterest(const std::string &id, const std::string &type, const RGBColor &color, const Position &pos, SUMOReal layer, SUMOReal angle, const std::string &imgFile, SUMOReal width, SUMOReal height)
Constructor.
virtual ~GUIPointOfInterest()
Destructor.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
GUIVisualizationSizeSettings poiSize
Boundary & grow(SUMOReal by)
extends the boundary by the given amount
void add(SUMOReal x, SUMOReal y, SUMOReal z=0)
Makes the boundary include the given coordinate.
const RGBColor & getColor() const
Returns the color of the Shape.
std::string myImgFile
The angle of the Shape.
void buildSelectionPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to (de)select the object.
SUMOReal myHalfImgHeight
The half height of the image when rendering this POI.
GUIGlID getGlID() const
Returns the numerical id of the object.
SUMOReal getLayer() const
Returns the layer of the Shape.
SUMOReal getExaggeration(const GUIVisualizationSettings &s, SUMOReal factor=20) const
return the drawing size including exaggeration and constantSize values
void growHeight(SUMOReal by)
Increases the height of the boundary (y-axis)
SUMOReal y() const
Returns the y-position.
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.
static void drawTexturedBox(int which, SUMOReal size)
Draws a named texture as a box with the given size.
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
void buildPopupHeader(GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true)
Builds the header.