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