 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
62 Shape(
const std::string&
id,
const std::string& type,
64 double angle,
const std::string& imgFile,
bool relativePath);
void setShapeType(const std::string &type)
Sets a new type.
void setAlpha(unsigned char alpha)
Sets a new alpha value.
Base class for objects which have an id.
double getShapeNaviDegree() const
Returns the angle of the Shape in navigational degrees.
double myNaviDegreeAngle
The angle of the Shape.
static const double DEFAULT_LAYER
std::string myType
The type of the Shape.
void setShapeImgFile(const std::string &imgFile)
Sets a new imgFile.
const std::string & getShapeImgFile() const
Returns the imgFile of the Shape.
void setShapeAlpha(unsigned char alpha)
Sets a new alpha value.
const RGBColor & getShapeColor() const
Returns the color of the Shape.
void setShapeRelativePath(bool relativePath)
Sets a new relativePath value.
static const double DEFAULT_IMG_HEIGHT
virtual ~Shape()
Destructor.
static const bool DEFAULT_RELATIVEPATH
static const double DEFAULT_LINEWIDTH
double getShapeLayer() const
Returns the layer of the Shape.
static const std::string DEFAULT_TYPE
const std::string & getShapeType() const
Returns the (abstract) type of the Shape.
std::string myImgFile
The img file (include path)
bool getShapeRelativePath() const
Returns the relativePath of the Shape.
bool myRelativePath
Enable or disable save imgFile as relative path.
void setShapeLayer(const double layer)
Sets a new layer.
static const double DEFAULT_ANGLE
Shape(const std::string &id, const std::string &type, const RGBColor &color, double layer, double angle, const std::string &imgFile, bool relativePath)
Constructor.
virtual void setShapeNaviDegree(const double angle)
Sets a new angle in navigational degrees.
static const std::string DEFAULT_IMG_FILE
static const double DEFAULT_LAYER_POI
void setShapeColor(const RGBColor &col)
Sets a new color.
double myLayer
The layer of the Shape.
RGBColor myColor
The color of the Shape.
static const double DEFAULT_IMG_WIDTH