40 #ifndef _GRAPHICDEVICE_H_ 41 #define _GRAPHICDEVICE_H_ 72 virtual void begin() = 0;
81 virtual void end() = 0;
86 virtual void setXUnit(
double xu) = 0;
91 virtual void setYUnit(
double yu) = 0;
101 virtual double getYUnit()
const = 0;
128 virtual void drawLine(
double x1,
double y1,
double x2,
double y2) = 0;
142 virtual void drawRect(
double x,
double y,
double width,
double height,
short fill =
FILL_EMPTY) = 0;
197 #endif //_GRAPHICDEVICE_H_ UnvalidFlagException(const std::string &message)
virtual void setCurrentBackgroundColor(const RGBColor &color)=0
virtual void setCurrentForegroundColor(const RGBColor &color)=0
virtual const RGBColor & getCurrentForegroundColor() const =0
virtual void drawCircle(double x, double y, double radius, short fill=FILL_EMPTY)=0
Draw a circle.
Data structure for fonts.
static short TEXT_VERTICAL_TOP
virtual void end()=0
End the painting.
virtual void begin()=0
Start the painting.
This class allows to perform a correspondence analysis.
virtual double getXUnit() const =0
virtual void setCurrentFont(const Font &font)=0
Describe a color according to its red, green and blue componants.
virtual void drawLine(double x1, double y1, double x2, double y2)=0
Draw a line between two points.
virtual const Font & getCurrentFont() const =0
static short TEXT_HORIZONTAL_RIGHT
static short FILL_PATTERN
virtual int getCurrentLayer() const =0
Interface for all plotting devices.
virtual const RGBColor & getCurrentBackgroundColor() const =0
virtual void drawRect(double x, double y, double width, double height, short fill=FILL_EMPTY)=0
Draw a rectangle.
virtual void setXUnit(double xu)=0
static short TEXT_HORIZONTAL_CENTER
virtual void setCurrentLayer(int layerIndex)=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.
virtual void setCurrentPointSize(unsigned int size)=0
static short TEXT_VERTICAL_BOTTOM
virtual unsigned int getCurrentPointSize() const =0
virtual short getCurrentLineType() const =0
virtual void comment(const std::string &comment)=0
Add a comment in the output.
virtual double getYUnit() const =0
static short TEXT_VERTICAL_CENTER
virtual void setYUnit(double yu)=0
virtual void setCurrentLineType(short type)=0
static short TEXT_HORIZONTAL_LEFT