56 Shape(
const std::string&
id,
const std::string& type,
58 SUMOReal angle,
const std::string& imgFile);
71 inline const std::string&
getType()
const {
113 inline void setType(
const std::string& type) {
const std::string & getImgFile() const
Returns the imgFile of the Shape.
static const std::string DEFAULT_IMG_FILE
SUMOReal myLayer
The layer of the Shape.
void setLayer(const SUMOReal layer)
Sets a new layer.
static const std::string DEFAULT_TYPE
std::string myType
The type of the Shape.
static const SUMOReal DEFAULT_ANGLE
static const SUMOReal DEFAULT_IMG_HEIGHT
virtual ~Shape()
Destructor.
Shape(const std::string &id, const std::string &type, const RGBColor &color, SUMOReal layer, SUMOReal angle, const std::string &imgFile)
Constructor.
const RGBColor & getColor() const
Returns the color of the Shape.
Base class for objects which have an id.
SUMOReal myNaviDegreeAngle
The angle of the Shape.
static const SUMOReal DEFAULT_LAYER
void setType(const std::string &type)
Sets a new type.
void setNaviDegree(const SUMOReal angle)
Sets a new angle in navigational degrees.
std::string myImgFile
The angle of the Shape.
RGBColor myColor
The color of the Shape.
void setImgFile(const std::string &imgFile)
Sets a new imgFile.
SUMOReal getLayer() const
Returns the layer of the Shape.
const std::string & getType() const
Returns the (abstract) type of the Shape.
void setColor(const RGBColor &col)
Sets a new color.
SUMOReal getNaviDegree() const
Returns the angle of the Shape in navigational degrees.
static const SUMOReal DEFAULT_IMG_WIDTH