51 myLayer(DEFAULT_LAYER),
52 myNaviDegreeAngle(DEFAULT_ANGLE),
53 myImgFile(DEFAULT_IMG_FILE),
54 myName(DEFAULT_NAME) {
59 double angle,
const std::string& imgFile,
const std::string& name) :
64 myNaviDegreeAngle(angle),
@ GLO_POI
poi (over view, geo and lane)
@ SUMO_ATTR_LAYER
A layer number.
@ SUMO_ATTR_COLOR
A color information.
Base class for objects which have an id.
Static storage of an output device and its base (abstract) implementation.
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
std::map< std::string, std::string > Map
parameters map
void setAlpha(unsigned char alpha)
Sets a new alpha value.
std::string myImgFile
The img file (include path)
void setShapeAlpha(unsigned char alpha)
Sets a new alpha value.
static const double DEFAULT_LAYER
static const double DEFAULT_LAYER_POI
void setShapeName(const std::string &name)
Sets a new shape name.
void setShapeLayer(const double layer)
Sets a new layer.
void writeShapeAttributes(OutputDevice &device, const RGBColor &defaultColor, const double defaultLayer) const
write shape attributes in a xml file
static const double DEFAULT_IMG_WIDTH
std::string myType
The type of the Shape.
static const std::string DEFAULT_IMG_FILE
const std::string & getShapeType() const
Returns the (abstract) type of the Shape.
static const double DEFAULT_LINEWIDTH
void setShapeType(const std::string &type)
Sets a new type.
static const double DEFAULT_ANGLE
virtual ~Shape()
Destructor.
static const std::string DEFAULT_NAME
virtual void setShapeNaviDegree(const double angle)
Sets a new angle in navigational degrees.
void setShapeImgFile(const std::string &imgFile)
Sets a new imgFile.
static const double DEFAULT_IMG_HEIGHT
static const std::string DEFAULT_TYPE
void setShapeColor(const RGBColor &col)
Sets a new color.
double getShapeLayer() const
Returns the layer of the Shape.
const std::string & getShapeImgFile() const
Returns the imgFile of the Shape.
Shape(const std::string &id)
default consructor
double myLayer
The layer of the Shape.
const std::string & getShapeName() const
Returns the name of the Shape.
const RGBColor & getShapeColor() const
Returns the color of the Shape.
double myNaviDegreeAngle
The angle of the Shape.
double getShapeNaviDegree() const
Returns the angle of the Shape in navigational degrees.
static const Parameterised::Map DEFAULT_PARAMETERS
std::string myName
shape name
RGBColor myColor
The color of the Shape.
static std::string escapeXML(const std::string &orig, const bool maskDoubleHyphen=false)
Replaces the standard escapes by their XML entities.