5 #ifndef BPP_GRAPHICS_LATEX_PGFGRAPHICDEVICE_H 6 #define BPP_GRAPHICS_LATEX_PGFGRAPHICDEVICE_H 9 #include "../AbstractGraphicDevice.h" 10 #include "../ColorTools.h" 64 void drawLine(
double x1,
double y1,
double x2,
double y2);
65 void drawRect(
double x,
double y,
double width,
double height,
short fill =
FILL_EMPTY);
70 content_.push_back(
"%" + text);
77 #endif // BPP_GRAPHICS_LATEX_PGFGRAPHICDEVICE_H 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.
const std::string & getFontShape(const Font &font)
void drawRect(double x, double y, double width, double height, short fill=FILL_EMPTY)
Draw a rectangle.
Data structure for fonts.
void end()
End the painting.
std::map< const RGBColor, std::string > colorIndex_
void drawCircle(double x, double y, double radius, short fill=FILL_EMPTY)
Draw a circle.
std::map< short int, std::string > fontShapes_
void setCurrentFont(const Font &font)
void setCurrentBackgroundColor(const RGBColor &color)
Describe a color according to its red, green and blue componants.
void setCurrentLineType(short type)
std::vector< std::string > content_
void setCurrentLayer(int layerIndex)
virtual ~PgfGraphicDevice()
void setCurrentForegroundColor(const RGBColor &color)
Partial implementation of the GraphicDevice interface.
std::map< short int, std::string > fontSeries_
void comment(const std::string &text)
Add a comment in the output.
static short TEXT_VERTICAL_BOTTOM
LaTeX Portable Graphic Format (Pgf) plotting format.
void begin()
Start the painting.
std::vector< int > layers_
void setCurrentPointSize(unsigned int size)
PgfGraphicDevice(std::ostream &out, double unit)
Build a new Pgf device object.
void drawLine(double x1, double y1, double x2, double y2)
Draw a line between two points.
static short TEXT_HORIZONTAL_LEFT