66 const PositionVector& shape,
const bool geo,
const bool fill,
const double lineWidth,
87 const std::vector<PositionVector>&
getHoles()
const;
122 virtual void setHoles(
const std::vector<PositionVector>& holes);
Static storage of an output device and its base (abstract) implementation.
An upper class for objects with additional parameters.
std::map< std::string, std::string > Map
parameters map
const PositionVector & getShape() const
Returns the shape of the polygon.
virtual void setHoles(const std::vector< PositionVector > &holes)
Sets the holes 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)
double myHeight
The line width for drawing an unfilled polygon.
void setLineWidth(double lineWidth)
set line width
double getLineWidth() const
Returns the line width.
double getHeight() const
Returns the polygon height.
virtual void setShape(const PositionVector &shape)
Sets the shape of the polygon.
void setHeight(double height)
set height
std::vector< PositionVector > myHoles
The collection of the holes of the polygon, each given by a sequence of coodinates.
PositionVector & getShapeRef()
Return the exterior shape of the polygon.
const std::vector< PositionVector > & getHoles() const
Returns the holers of the polygon.
void writeXML(OutputDevice &out, bool geo=false) const
bool myFill
Information whether the polygon has to be filled.
bool getFill() const
Returns whether the polygon is filled.
static const double DEFAULT_LAYER
static const double DEFAULT_HEIGHT
static const std::string DEFAULT_IMG_FILE
static const double DEFAULT_ANGLE
static const std::string DEFAULT_NAME
static const Parameterised::Map DEFAULT_PARAMETERS