39 #ifdef CHECK_MEMORY_LEAKS 41 #endif // CHECK_MEMORY_LEAKS 50 Shape(id, type, color, layer, angle, imgFile),
70 for (
int i = 0; i < (int) shape.size(); i++) {
81 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
bool getFill() const
Returns whether the polygon is filled.
void writeXML(OutputDevice &out, bool geo=false)
Polygon(const std::string &id, const std::string &type, const RGBColor &color, const PositionVector &shape, bool fill, SUMOReal layer=DEFAULT_LAYER, SUMOReal angle=DEFAULT_ANGLE, const std::string &imgFile=DEFAULT_IMG_FILE)
Constructor.
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 PositionVector & getShape() const
Returns whether the shape of the polygon.
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.
const std::string & getType() const
Returns the (abstract) type of the Shape.
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 getLayer() const
Returns the layer of the Shape.
Static storage of an output device and its base (abstract) implementation.
bool closeTag()
Closes the most recently opened tag.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
virtual ~Polygon()
Destructor.