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
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.
SUMOReal getNaviDegree() const
Returns the angle of the Shape in navigational degrees.
const std::string & getID() const
Returns the id.
const std::string & getImgFile() const
Returns the imgFile of the Shape.
static const SUMOReal DEFAULT_ANGLE
void cartesian2geo(Position &cartesian) const
Converts the given cartesian (shifted) position to its geo (lat/long) representation.
void setWidth(SUMOReal width)
set the image width of the POI
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.
SUMOReal getHeight() const
Returns the image height of the POI.
SUMOReal x() const
Returns the x-position.
An upper class for objects with additional parameters.
static const SUMOReal DEFAULT_LAYER
const std::string & getType() const
Returns the (abstract) type of the Shape.
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.
const RGBColor & getColor() const
Returns the color of the Shape.
const std::map< std::string, std::string > & getMap() const
Returns the inner key/value map.
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 getLayer() const
Returns the layer of the Shape.
SUMOReal getWidth() const
Returns the image width of the POI.
Static storage of an output device and its base (abstract) implementation.
bool closeTag()
Closes the most recently opened tag.
SUMOReal y() const
Returns the y-position.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
static const SUMOReal DEFAULT_IMG_WIDTH
virtual ~PointOfInterest()
Destructor.