15 #ifndef MOLDRAW2DSVG_H 16 #define MOLDRAW2DSVG_H 31 MolDraw2D( width , height ) , d_os( os ) { initDrawing(); };
34 MolDraw2D( width , height ) , d_os(d_ss) { initDrawing(); };
49 void drawPolygon(
const std::vector<Point2D > &cds );
55 void getStringSize(
const std::string &label ,
double &label_width ,
56 double &label_height )
const;
64 std::stringstream d_ss;
66 void drawChar(
char c ,
const Point2D &cds );
72 #endif // MOLDRAW2DSVG_H virtual int height() const
void setColour(const DrawColour &col)
void getStringSize(const std::string &label, double &label_width, double &label_height) const
boost::tuple< float, float, float > DrawColour
void tagAtoms(const ROMol &mol)
ROMol is a molecule class that is intended to have a fixed topology.
void drawLine(const Point2D &cds1, const Point2D &cds2)
void drawString(const std::string &str, const Point2D &cds)
void drawPolygon(const std::vector< Point2D > &cds)
std::string getDrawingText() const
MolDraw2DSVG(int width, int height, std::ostream &os)
void drawEllipse(const Point2D &cds1, const Point2D &cds2)
void setFontSize(double new_size)
Includes a bunch of functionality for handling Atom and Bond queries.
virtual int width() const
MolDraw2DSVG(int width, int height)