 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
62 SUMOPolygon(
const std::string&
id,
const std::string& type,
64 bool geo,
bool fill,
double lineWidth,
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.
virtual void setShape(const PositionVector &shape)
Sets the shape of the polygon.
static const double DEFAULT_LAYER
PositionVector myShape
The positions of the polygon.
double myLineWidth
The line width for drawing an unfilled polygon.
static const bool DEFAULT_RELATIVEPATH
bool myGEO
specify if shape is handled as GEO coordinate (Main used in netedit)
const PositionVector & getShape() const
Returns whether the shape of the polygon.
void setFill(bool fill)
Sets whether the polygon shall be filled.
void setLineWidth(double lineWidth)
static const double DEFAULT_ANGLE
bool myFill
Information whether the polygon has to be filled.
bool getFill() const
Returns whether the polygon is filled.
static const std::string DEFAULT_IMG_FILE
virtual ~SUMOPolygon()
Destructor.
SUMOPolygon(const std::string &id, const std::string &type, const RGBColor &color, const PositionVector &shape, bool geo, bool fill, double lineWidth, double layer=DEFAULT_LAYER, double angle=DEFAULT_ANGLE, const std::string &imgFile=DEFAULT_IMG_FILE, bool relativePath=DEFAULT_RELATIVEPATH)
Constructor.
double getLineWidth() const
Returns whether the polygon is filled.