60 Shape(
const std::string&
id,
const std::string& type,
62 double angle,
const std::string& imgFile,
bool relativePath);
Base class for objects which have an id.
void setAlpha(unsigned char alpha)
Sets a new alpha value.
std::string myImgFile
The img file (include path)
static const bool DEFAULT_RELATIVEPATH
const RGBColor & getShapeColor() const
Returns the color of the Shape.
void setShapeAlpha(unsigned char alpha)
Sets a new alpha value.
static const double DEFAULT_LAYER
static const double DEFAULT_LAYER_POI
const std::string & getShapeImgFile() const
Returns the imgFile of the Shape.
Shape(const std::string &id, const std::string &type, const RGBColor &color, double layer, double angle, const std::string &imgFile, bool relativePath)
Constructor.
void setShapeLayer(const double layer)
Sets a new layer.
static const double DEFAULT_IMG_WIDTH
bool myRelativePath
Enable or disable save imgFile as relative path.
bool getShapeRelativePath() const
Returns the relativePath of the Shape.
std::string myType
The type of the Shape.
static const std::string DEFAULT_IMG_FILE
static const double DEFAULT_LINEWIDTH
void setShapeType(const std::string &type)
Sets a new type.
static const double DEFAULT_ANGLE
void setShapeRelativePath(bool relativePath)
Sets a new relativePath value.
virtual void setShapeNaviDegree(const double angle)
Sets a new angle in navigational degrees.
virtual ~Shape()
Destructor.
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.
double myLayer
The layer of the Shape.
double myNaviDegreeAngle
The angle of the Shape.
double getShapeNaviDegree() const
Returns the angle of the Shape in navigational degrees.
RGBColor myColor
The color of the Shape.
const std::string & getShapeType() const
Returns the (abstract) type of the Shape.