1 #ifndef OB_CAIROPAINTER_H 2 #define OB_CAIROPAINTER_H 16 void NewCanvas(
double width,
double height);
25 void DrawLine(
double x1,
double y1,
double x2,
double y2,
const std::vector<double> & dashes=std::vector<double>());
26 void DrawPolygon(
const std::vector<std::pair<double,double> > &points);
28 void DrawBall(
double x,
double y,
double r,
double opacity);
29 void DrawText(
double x,
double y,
const std::string &text);
39 void SetTitle(std::string title) {m_title=title;}
41 void SetTableSize(
int nrows,
int ncols) {m_nrows=nrows; m_ncols=ncols;}
49 cairo_surface_t *m_surface;
58 std::string m_fillcolor, m_bondcolor;
59 bool m_transparent, m_cropping;
void SetBackground(std::string color)
Definition: cairopainter.h:42
void SetPenColor(const OBColor &color)
Definition: cairopainter.cpp:107
Abstract painter base class used by OBDepict.
Definition: painter.h:128
OBFontMetrics GetFontMetrics(const std::string &text)
Definition: cairopainter.cpp:154
void SetFontSize(int pointSize)
Definition: cairopainter.cpp:91
void SetTitle(std::string title)
Definition: cairopainter.h:39
void SetBondColor(std::string color)
Definition: cairopainter.h:43
Definition: cairopainter.h:9
bool IsGood() const
Definition: cairopainter.cpp:82
CairoPainter()
Definition: cairopainter.cpp:11
void SetFillRadial(const OBColor &start, const OBColor &end)
Definition: cairopainter.cpp:102
Color class used by OBDepict.
Definition: painter.h:37
Font metrics class used by OBDepict.
Definition: painter.h:116
void SetPenWidth(double width)
Definition: cairopainter.cpp:112
void SetFillColor(const OBColor &color)
Definition: cairopainter.cpp:97
void SetFontFamily(const std::string &fontFamily)
Definition: cairopainter.h:18
void DrawText(double x, double y, const std::string &text)
Definition: cairopainter.cpp:148
double GetPenWidth()
Definition: cairopainter.cpp:117
void DrawPolygon(const std::vector< std::pair< double, double > > &points)
Definition: cairopainter.cpp:132
void SetTransparent(bool tr)
Definition: cairopainter.h:44
void DrawLine(double x1, double y1, double x2, double y2, const std::vector< double > &dashes=std::vector< double >())
Definition: cairopainter.cpp:122
void SetWidth(int width)
Definition: cairopainter.h:37
void DrawCircle(double x, double y, double r)
Definition: cairopainter.cpp:142
Base class for graphical 2D depiction classes (e.g., "paint" to SVG)
~CairoPainter()
Definition: cairopainter.cpp:17
void DrawBall(double x, double y, double r, double opacity)
Definition: cairopainter.cpp:186
void NewCanvas(double width, double height)
Definition: cairopainter.cpp:25
void SetTableSize(int nrows, int ncols)
Definition: cairopainter.h:41
void SetIndex(int index)
Definition: cairopainter.h:40
void WriteImage(const std::string &filename)
Definition: cairopainter.cpp:170
void SetHeight(int height)
Definition: cairopainter.h:38
void SetCropping(bool cr)
Definition: cairopainter.h:45
Global namespace for all Open Babel code.
Definition: alias.h:22