66 const PositionVector& shape,
bool geo,
bool fill,
double lineWidth,
Static storage of an output device and its base (abstract) implementation.
An upper class for objects with additional parameters.
const PositionVector & getShape() const
Returns whether the shape of the polygon.
PositionVector myShape
The positions of the polygon.
double myLineWidth
The line width for drawing an unfilled polygon.
~SUMOPolygon()
Destructor.
void setFill(bool fill)
Sets whether the polygon shall be filled.
bool myGEO
specify if shape is handled as GEO coordinate (Main used in netedit)
void writeXML(OutputDevice &out, bool geo=false)
void setLineWidth(double lineWidth)
set line width
double getLineWidth() const
Returns whether the polygon is filled.
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 geo, bool fill, double lineWidth, double layer=DEFAULT_LAYER, double angle=DEFAULT_ANGLE, const std::string &imgFile=DEFAULT_IMG_FILE, bool relativePath=DEFAULT_RELATIVEPATH, const std::string &name=DEFAULT_NAME, const std::map< std::string, std::string > ¶meters=DEFAULT_PARAMETERS)
Constructor.
bool myFill
Information whether the polygon has to be filled.
bool getFill() const
Returns whether the polygon is filled.
static const bool DEFAULT_RELATIVEPATH
static const std::map< std::string, std::string > DEFAULT_PARAMETERS
static const double DEFAULT_LAYER
static const std::string DEFAULT_IMG_FILE
static const double DEFAULT_ANGLE
static const std::string DEFAULT_NAME