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);
SUMOReal getExaggeration(const GUIVisualizationSettings &s, SUMOReal factor=20) const
return the drawing size including exaggeration and constantSize values
void growWidth(SUMOReal by)
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.
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 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
SUMOReal x() const
Returns the x-position.
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.
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)
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.
float minSize
The minimum size to draw this object.
virtual ~GUIPointOfInterest()
Destructor.
void drawName(const Position &pos, const SUMOReal scale, const GUIVisualizationTextSettings &settings, const SUMOReal angle=0) const
draw name of item
const RGBColor & getColor() const
Returns the color of the Shape.
GUIVisualizationSizeSettings poiSize
void add(SUMOReal x, SUMOReal y)
Makes the boundary include the given coordinate.
Boundary & grow(SUMOReal by)
extends the boundary by the given amount
SUMOReal y() const
Returns the y-position.
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.
void growHeight(SUMOReal by)
SUMOReal getLayer() const
Returns the layer of the Shape.
Position()
default constructor
A window containing a gl-object's parameter.
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.
SUMOReal getNaviDegree() const
Returns the angle of the Shape in navigational degrees.
void buildPopupHeader(GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true)
Builds the header.