66 SUMOPolygon(
const std::string&
id,
const std::string& type,
PositionVector myShape
The positions of the polygon.
bool myFill
Information whether the polygon has to be filled.
static const std::string DEFAULT_IMG_FILE
const PositionVector & getShape() const
Returns whether the shape of the polygon.
virtual ~SUMOPolygon()
Destructor.
virtual void setShape(const PositionVector &shape)
Sets the shape of the polygon.
SUMOPolygon(const std::string &id, const std::string &type, const RGBColor &color, const PositionVector &shape, bool fill, double layer=DEFAULT_LAYER, double angle=DEFAULT_ANGLE, const std::string &imgFile=DEFAULT_IMG_FILE)
Constructor.
bool getFill() const
Returns whether the polygon is filled.
An upper class for objects with additional parameters.
void writeXML(OutputDevice &out, bool geo=false)
Static storage of an output device and its base (abstract) implementation.
void setFill(bool fill)
Sets whether the polygon shall be filled.
static const double DEFAULT_ANGLE
static const double DEFAULT_LAYER