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