5 #ifndef BPP_GRAPHICS_ABSTRACTGRAPHICDEVICE_H 6 #define BPP_GRAPHICS_ABSTRACTGRAPHICDEVICE_H 33 fgColor_(0, 0, 0), bgColor_(0, 0, 0), font_(), pointSize_(1), lineType_(
LINE_SOLID), currentLayer_(-1)
65 double x_(
double x)
const {
return x *
xUnit_; }
66 double y_(
double y)
const {
return y *
yUnit_; }
72 #endif // BPP_GRAPHICS_ABSTRACTGRAPHICDEVICE_H
Data structure for fonts.
double revx_(double x) const
void setCurrentForegroundColor(const RGBColor &color)
Describe a color according to its red, green and blue componants.
double x_(double x) const
unsigned int getCurrentPointSize() const
const RGBColor & getCurrentForegroundColor() const
Interface for all plotting devices.
int getCurrentLayer() const
short getCurrentLineType() const
double revy_(double y) const
void setCurrentPointSize(unsigned int size)
const Font & getCurrentFont() const
Partial implementation of the GraphicDevice interface.
double y_(double y) const
void setCurrentLayer(int layerIndex)
virtual ~AbstractGraphicDevice()
const RGBColor & getCurrentBackgroundColor() const
Exception base class. Overload exception constructor (to control the exceptions mechanism). Destructor is already virtual (from std::exception)
std::string toString(T t)
General template method to convert to a string.
void setCurrentBackgroundColor(const RGBColor &color)
void setCurrentLineType(short type)
void setCurrentFont(const Font &font)