65 Shape(
const std::string&
id,
const std::string& type,
const RGBColor& color,
double layer,
66 double angle,
const std::string& imgFile,
const std::string& name,
bool relativePath);
Base class for objects which have an id.
std::map< std::string, std::string > Map
parameters map
void setAlpha(unsigned char alpha)
Sets a new alpha value.
const std::string getShapeName() const
Returns the name of the Shape.
std::string myImgFile
The img file (include path)
static const bool DEFAULT_RELATIVEPATH
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.
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
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
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.
static const std::string DEFAULT_NAME
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.
double myLayer
The layer 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.