 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
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 drawTextSettings(const GUIVisualizationTextSettings &settings, const std::string &text, const Position &pos, const double scale, const double angle=0, const double layer=2048)
A window containing a gl-object's parameter.
void drawName(const Position &pos, const double scale, const GUIVisualizationTextSettings &settings, const double angle=0) const
draw name of item
double getShapeNaviDegree() const
Returns the angle of the Shape in navigational degrees.
double angle
The current view rotation angle.
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
bool checkDraw(const GUIVisualizationSettings &s) const
check if POI can be drawn
bool netedit
Whether the settings are for Netedit.
const std::string & getShapeImgFile() const
Returns the imgFile of the Shape.
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.
static void setColor(const RGBColor &c)
Sets the gl-color to this value.
const RGBColor & getShapeColor() const
Returns the color of the Shape.
void closeBuilding(const Parameterised *p=0)
Closes the building of the table.
static void drawTexturedBox(int which, double size)
Draws a named texture as a box with the given size.
static void drawFilledCircle(double width, int steps=8)
Draws a filled circle around (0,0)
const std::map< std::string, std::string > & getParametersMap() const
Returns the inner key/value map.
double myHalfImgWidth
The half width of the image when rendering this POI.
void setColor(const GUIVisualizationSettings &s, bool forceSelectionColor) const
set color
GUIVisualizationSizeSettings poiSize
double getShapeLayer() const
Returns the layer of the Shape.
void mkItem(const char *name, bool dynamic, ValueSource< T > *src)
Adds a row which obtains its value from a ValueSource.
static std::vector< Position > drawFilledCircleReturnVertices(double width, int steps=8)
Draws a filled circle around (0,0) returning circle vertex.
void drawInnerPOI(const GUIVisualizationSettings &s, bool forceSelectionColor) const
draw inner POI (before pushName() )
GUIGlID getGlID() const
Returns the numerical id of the object.
A class that stores a 2D geometrical boundary.
double scale
information about a lane's width (temporary, used for a single view)
double myHalfImgHeight
The half height of the image when rendering this POI.
A point in 2D or 3D with translation and scaling methods.
double x() const
Returns the x-position.
void add(double x, double y, double z=0)
Makes the boundary include the given coordinate.
const std::string & getShapeType() const
Returns the (abstract) type of the Shape.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
static std::vector< Position > myPOIVertices
after every iteration of drawgl, position of vertices that make the circle are saved here....
double minSize
The minimum size to draw this object.
void growWidth(double by)
Increases the width of the boundary (x-axis)
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
GUIVisualizationTextSettings poiType
GUIVisualizationTextSettings poiName
double y() const
Returns the y-position.
virtual ~GUIPointOfInterest()
Destructor.
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
GUISelectedStorage gSelected
A global holder of selected objects.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
Boundary & grow(double by)
extends the boundary by the given amount
GUIColorer poiColorer
The POI colorer.
static const std::string DEFAULT_IMG_FILE
Stores the information about how to visualize structures.
static int getTextureID(const std::string &filename, const bool mirrorX=false)
return texture id for the given filename (initialize on first use)
const T getColor(const double value) const
double getExaggeration(const GUIVisualizationSettings &s, const GUIGlObject *o, double factor=20) const
return the drawing size including exaggeration and constantSize values
void growHeight(double by)
Increases the height of the boundary (y-axis)
bool drawForSelecting
whether drawing is performed for the purpose of selecting objects
bool isSelected(GUIGlObjectType type, GUIGlID id)
Returns the information whether the object with the given type and id is selected.
Position()
default constructor