23 #ifndef PointOfInterest_h 24 #define PointOfInterest_h 71 Shape(id, type, color, layer, angle, imgFile),
117 void writeXML(
OutputDevice& out,
const bool geo =
false,
const double zOffset = 0.,
const std::string laneID =
"",
const double pos = 0.,
const double posLat = 0.) {
154 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
double x() const
Returns the x-position.
static const double DEFAULT_IMG_HEIGHT
begin/end of the description of a polygon
const std::map< std::string, std::string > & getMap() const
Returns the inner key/value map.
void writeXML(OutputDevice &out, const bool geo=false, const double zOffset=0., const std::string laneID="", const double pos=0., const double posLat=0.)
const std::string & getID() const
Returns the id.
double myHalfImgHeight
The half height of the image when rendering this POI.
PointOfInterest(const std::string &id, const std::string &type, const RGBColor &color, const Position &pos, double layer=DEFAULT_LAYER, double angle=DEFAULT_ANGLE, const std::string &imgFile=DEFAULT_IMG_FILE, double width=DEFAULT_IMG_WIDTH, double height=DEFAULT_IMG_HEIGHT)
Constructor.
A point in 2D or 3D with translation and scaling methods.
parameter associated to a certain key
double y() const
Returns the y-position.
double myHalfImgWidth
The half width of the image when rendering this POI.
double getWidth() const
Returns the image width of the POI.
An upper class for objects with additional parameters.
const RGBColor & getColor() const
Returns the color of the Shape.
static std::string escapeXML(const std::string &orig, const bool maskDoubleHyphen=false)
Replaces the standard escapes by their XML entities.
double getLayer() const
Returns the layer of the Shape.
void setHeight(double height)
set the image height of the POI
void setWidth(double width)
set the image width of the POI
static const GeoConvHelper & getFinal()
the coordinate transformation for writing the location element and for tracking the original coordina...
static const double DEFAULT_IMG_WIDTH
Static storage of an output device and its base (abstract) implementation.
bool closeTag()
Closes the most recently opened tag.
const std::string & getType() const
Returns the (abstract) type of the Shape.
double getNaviDegree() const
Returns the angle of the Shape in navigational degrees.
double getHeight() const
Returns the image height of the POI.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
static const double DEFAULT_ANGLE
static const double DEFAULT_LAYER
virtual ~PointOfInterest()
Destructor.