52 const std::string& lane,
double posOverLane,
double posLat,
53 double layer,
double angle,
const std::string& imgFile,
54 bool relativePath,
double width,
double height) :
55 PointOfInterest(id, type, color, pos, geo, lane, posOverLane, posLat, layer, angle, imgFile, relativePath, width, height),
120 }
else if (active == 0) {
122 }
else if (active == 1) {
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)
void buildShapePopupOptions(GUIMainWindow &app, GUIGLObjectPopupMenu *ret, const std::string &type)
build basic shape popup options. Used to unify pop-ups menu in netedit and SUMO-GUI ...
GUIVisualizationTextSettings poiType
void closeBuilding(const Parameterised *p=0)
Closes the building of the table.
static const std::string DEFAULT_IMG_FILE
const std::string & getShapeImgFile() const
Returns the imgFile of the Shape.
GUIVisualizationTextSettings poiName
Stores the information about how to visualize structures.
double y() const
Returns the y-position.
static void drawTextSettings(const GUIVisualizationTextSettings &settings, const std::string &text, const Position &pos, const double scale, const double angle=0, const double layer=2048)
void mkItem(const char *name, bool dynamic, ValueSource< T > *src)
Adds a row which obtains its value from a ValueSource.
double x() const
Returns the x-position.
bool isSelected(GUIGlObjectType type, GUIGlID id)
Returns the information whether the object with the given type and id is selected.
bool netedit
Whether the settings are for Netedit.
static void drawFilledCircle(double width, int steps=8)
Draws a filled circle around (0,0)
A class that stores a 2D geometrical boundary.
const std::string & getShapeType() const
Returns the (abstract) type of the Shape.
double myHalfImgHeight
The half height of the image when rendering this POI.
GUIColorer poiColorer
The POI colorer.
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.
const RGBColor & getShapeColor() const
Returns the color of the Shape.
static std::vector< Position > drawFilledCircleReturnVertices(double width, int steps=8)
Draws a filled circle around (0,0) returning circle vertex.
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
bool checkDraw(const GUIVisualizationSettings &s) const
check if POI can be drawn
double angle
The current view rotation angle.
const T getColor(const double value) const
virtual ~GUIPointOfInterest()
Destructor.
void growHeight(double by)
Increases the height of the boundary (y-axis)
double getShapeLayer() const
Returns the layer of the Shape.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
void drawInnerPOI(const GUIVisualizationSettings &s, bool forceSelectionColor) const
draw inner POI (before pushName() )
GUIVisualizationSizeSettings poiSize
static std::vector< Position > myPOIVertices
after every iteration of drawgl, position of vertices that make the circle are saved here...
void growWidth(double by)
Increases the width of the boundary (x-axis)
const std::map< std::string, std::string > & getParametersMap() const
Returns the inner key/value map.
GUIGlID getGlID() const
Returns the numerical id of the object.
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.
void add(double x, double y, double z=0)
Makes the boundary include the given coordinate.
bool drawForSelecting
whether drawing is performed for the purpose of selecting objects
double getExaggeration(const GUIVisualizationSettings &s, const GUIGlObject *o, double factor=20) const
return the drawing size including exaggeration and constantSize values
Position()
default constructor
GUISelectedStorage gSelected
A global holder of selected objects.
A window containing a gl-object's parameter.
void setColor(const GUIVisualizationSettings &s, bool forceSelectionColor) const
set color
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.
double getShapeNaviDegree() const
Returns the angle of the Shape in navigational degrees.