5 #ifndef BPP_GRAPHICS_FIG_XFIGGRAPHICDEVICE_H 6 #define BPP_GRAPHICS_FIG_XFIGGRAPHICDEVICE_H 9 #include "../AbstractGraphicDevice.h" 10 #include "../ColorManager.h" 45 postscriptFontManager_(),
73 void drawLine(
double x1,
double y1,
double x2,
double y2);
74 void drawRect(
double x,
double y,
double width,
double height,
short fill =
FILL_EMPTY);
79 content_.push_back(
"#" + text);
93 #endif // BPP_GRAPHICS_FIG_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.
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_
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_
Exception base class. Overload exception constructor (to control the exceptions mechanism). Destructor is already virtual (from std::exception)
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_
std::string toString(T t)
General template method to convert to a string.
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