41 #ifndef BPP_GRAPHICS_GRAPHICDEVICE_H
42 #define BPP_GRAPHICS_GRAPHICDEVICE_H
81 virtual void end() = 0;
128 virtual void drawLine(
double x1,
double y1,
double x2,
double y2) = 0;
Exception base class. Overload exception constructor (to control the exceptions mechanism)....
Data structure for fonts.
Interface for all plotting devices.
virtual void setCurrentFont(const Font &font)=0
virtual void drawText(double x, double y, const std::string &text, short hpos=TEXT_HORIZONTAL_LEFT, short vpos=TEXT_VERTICAL_BOTTOM, double angle=0)=0
Draw some characters.
static short TEXT_HORIZONTAL_LEFT
virtual void setCurrentLayer(int layerIndex)=0
virtual void setCurrentForegroundColor(const RGBColor &color)=0
virtual void setCurrentPointSize(unsigned int size)=0
virtual void drawRect(double x, double y, double width, double height, short fill=FILL_EMPTY)=0
Draw a rectangle.
virtual void begin()=0
Start the painting.
static short TEXT_HORIZONTAL_CENTER
static short TEXT_VERTICAL_TOP
virtual int getCurrentLayer() const =0
virtual void setXUnit(double xu)=0
static short TEXT_HORIZONTAL_RIGHT
virtual unsigned int getCurrentPointSize() const =0
static short FILL_PATTERN
virtual void comment(const std::string &comment)=0
Add a comment in the output.
virtual void setCurrentLineType(short type)=0
virtual void end()=0
End the painting.
virtual void setCurrentBackgroundColor(const RGBColor &color)=0
virtual double getXUnit() const =0
static short TEXT_VERTICAL_CENTER
virtual void drawLine(double x1, double y1, double x2, double y2)=0
Draw a line between two points.
virtual double getYUnit() const =0
virtual const RGBColor & getCurrentBackgroundColor() const =0
virtual short getCurrentLineType() const =0
virtual void drawCircle(double x, double y, double radius, short fill=FILL_EMPTY)=0
Draw a circle.
virtual const Font & getCurrentFont() const =0
virtual void setYUnit(double yu)=0
virtual const RGBColor & getCurrentForegroundColor() const =0
static short TEXT_VERTICAL_BOTTOM
Describe a color according to its red, green and blue componants.
UnvalidFlagException(const std::string &text)