18 #ifndef OB_COMMANDPAINTER_H 19 #define OB_COMMANDPAINTER_H 32 void NewCanvas(
double width,
double height);
41 void DrawLine(
double x1,
double y1,
double x2,
double y2,
const std::vector<double> & dashes=std::vector<double>());
42 void DrawPolygon(
const std::vector<std::pair<double,double> > &points);
44 void DrawBall(
double x,
double y,
double r,
double opacity = 1.0);
45 void DrawText(
double x,
double y,
const std::string &text);
55 std::streamsize m_oldprec;
Abstract painter base class used by OBDepict.
Definition: painter.h:128
Definition: commandpainter.h:25
void SetFillRadial(const OBColor &start, const OBColor &end)
Definition: commandpainter.cpp:60
double GetPenWidth()
Definition: commandpainter.cpp:78
void DrawLine(double x1, double y1, double x2, double y2, const std::vector< double > &dashes=std::vector< double >())
Definition: commandpainter.cpp:83
void DrawBall(double x, double y, double r, double opacity=1.0)
Definition: commandpainter.cpp:115
void DrawPolygon(const std::vector< std::pair< double, double > > &points)
Definition: commandpainter.cpp:98
~CommandPainter()
Definition: commandpainter.cpp:34
Color class used by OBDepict.
Definition: painter.h:37
void SetFontSize(int pointSize)
Definition: commandpainter.cpp:50
Font metrics class used by OBDepict.
Definition: painter.h:116
void SetFillColor(const OBColor &color)
Definition: commandpainter.cpp:55
OBFontMetrics GetFontMetrics(const std::string &text)
Definition: commandpainter.cpp:125
void DrawCircle(double x, double y, double r)
Definition: commandpainter.cpp:110
void DrawText(double x, double y, const std::string &text)
Definition: commandpainter.cpp:120
CommandPainter(std::ostream &ofs)
Definition: commandpainter.cpp:28
Base class for graphical 2D depiction classes (e.g., "paint" to SVG)
void NewCanvas(double width, double height)
Definition: commandpainter.cpp:40
void SetPenColor(const OBColor &color)
Definition: commandpainter.cpp:67
void SetFontFamily(const std::string &fontFamily)
Definition: commandpainter.h:34
bool IsGood() const
Definition: commandpainter.cpp:45
void SetPenWidth(double width)
Definition: commandpainter.cpp:72
Global namespace for all Open Babel code.
Definition: alias.h:22