40 #ifndef _XFIGGRAPHICDEVICE_H_ 41 #define _XFIGGRAPHICDEVICE_H_ 43 #include "../AbstractGraphicDevice.h" 44 #include "../ColorManager.h" 108 void drawLine(
double x1,
double y1,
double x2,
double y2);
109 void drawRect(
double x,
double y,
double width,
double height,
short fill =
FILL_EMPTY);
131 #endif //_XFIGGRAPHICDEVICE_H_
void end()
End the painting.
void comment(const std::string &text)
Add a comment in the output.
void setCurrentLineType(short type)
Data structure for fonts.
This class allows to perform a correspondence analysis.
void setCurrentBackgroundColor(const RGBColor &color)
Describe a color according to its red, green and blue componants.
static const unsigned int FONTFLAG_LATEX
unsigned int bgColorCode_
static std::string toString(T t)
General template method to convert to a string.
void drawCircle(double x, double y, double radius, short fill=FILL_EMPTY)
Draw a circle.
static const unsigned int FONTFLAG_POSTSCRIPT
LaTeX font manager for the XFig format.
Color manager for the XFig format.
XFigGraphicDevice(std::ostream &out)
virtual ~XFigGraphicDevice()
int getFillCode(short fill)
void drawLine(double x1, double y1, double x2, double y2)
Draw a line between two points.
void setCurrentForegroundColor(const RGBColor &color)
Partial implementation of the GraphicDevice interface.
void setFontFlag(unsigned int flag)
void setCurrentFont(const Font &font)
void begin()
Start the painting.
void setCurrentLayer(int layerIndex)
Postscript font manager for the XFig format.
unsigned int fgColorCode_
XFigLaTeXFontManager latexFontManager_
void drawText(double x, double y, const std::string &text, short hpos=TEXT_HORIZONTAL_LEFT, short vpos=TEXT_VERTICAL_BOTTOM, double angle=0)
Draw some characters.
static short TEXT_VERTICAL_BOTTOM
XFigColorManager colorManager_
XFigPostscriptFontManager postscriptFontManager_
void setCurrentLineType(short type)
std::vector< std::string > content_
void drawRect(double x, double y, double width, double height, short fill=FILL_EMPTY)
Draw a rectangle.
static short TEXT_HORIZONTAL_LEFT