23 #ifndef PointOfInterest_h
24 #define PointOfInterest_h
71 Shape(id, type, color, layer, angle, imgFile),
149 for (std::map<std::string, std::string>::const_iterator j =
getMap().begin(); j !=
getMap().end(); ++j) {
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
const std::string & getImgFile() const
Returns the imgFile of the Shape.
void cartesian2geo(Position &cartesian) const
Converts the given cartesian (shifted) position to its geo (lat/long) representation.
static const std::string DEFAULT_IMG_FILE
void writeXML(OutputDevice &out, const bool geo=false, const SUMOReal zOffset=0., const std::string laneID="", const SUMOReal pos=0.)
void setHeight(SUMOReal height)
set the image height of the POI
static std::string escapeXML(const std::string &orig)
Replaces the standard escapes by their XML entities.
const std::map< std::string, std::string > & getMap() const
Returns the inner key/value map.
SUMOReal x() const
Returns the x-position.
static const SUMOReal DEFAULT_ANGLE
void setWidth(SUMOReal width)
set the image width of the POI
const std::string & getID() const
Returns the id.
SUMOReal myHalfImgWidth
The half width of the image when rendering this POI.
static const SUMOReal DEFAULT_IMG_HEIGHT
A point in 2D or 3D with translation and scaling methods.
An upper class for objects with additional parameters.
const RGBColor & getColor() const
Returns the color of the Shape.
static const SUMOReal DEFAULT_LAYER
PointOfInterest(const std::string &id, const std::string &type, const RGBColor &color, const Position &pos, SUMOReal layer=DEFAULT_LAYER, SUMOReal angle=DEFAULT_ANGLE, const std::string &imgFile=DEFAULT_IMG_FILE, SUMOReal width=DEFAULT_IMG_WIDTH, SUMOReal height=DEFAULT_IMG_HEIGHT)
Constructor.
SUMOReal y() const
Returns the y-position.
static const GeoConvHelper & getFinal()
the coordinate transformation for writing the location element and for tracking the original coordina...
SUMOReal myHalfImgHeight
The half height of the image when rendering this POI.
SUMOReal getWidth() const
Returns the image width of the POI.
SUMOReal getHeight() const
Returns the image height of the POI.
Static storage of an output device and its base (abstract) implementation.
bool closeTag()
Closes the most recently opened tag.
SUMOReal getLayer() const
Returns the layer of the Shape.
const std::string & getType() const
Returns the (abstract) type of the Shape.
SUMOReal getNaviDegree() const
Returns the angle of the Shape in navigational degrees.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
static const SUMOReal DEFAULT_IMG_WIDTH
virtual ~PointOfInterest()
Destructor.