69 Polygon(
const std::string&
id,
const std::string& type,
static const std::string DEFAULT_IMG_FILE
bool getFill() const
Returns whether the polygon is filled.
void writeXML(OutputDevice &out, bool geo=false)
virtual void setShape(const PositionVector &shape)
Sets the shape of the polygon.
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.
const PositionVector & getShape() const
Returns whether the shape of the polygon.
static const SUMOReal DEFAULT_ANGLE
An upper class for objects with additional parameters.
static const SUMOReal DEFAULT_LAYER
bool myFill
Information whether the polygon has to be filled.
Static storage of an output device and its base (abstract) implementation.
void setFill(bool fill)
Sets whether the polygon shall be filled.
PositionVector myShape
The positions of the polygon.
virtual ~Polygon()
Destructor.