16 #ifndef MOLDRAW2DSVG_H 17 #define MOLDRAW2DSVG_H 30 MolDraw2DSVG(
int width,
int height, std::ostream &os,
int panelWidth = -1,
32 :
MolDraw2D(width, height, panelWidth, panelHeight), d_os(os) {
36 MolDraw2DSVG(
int width,
int height,
int panelWidth = -1,
int panelHeight = -1)
37 :
MolDraw2D(width, height, panelWidth, panelHeight), d_os(d_ss) {
44 void setFontSize(
double new_size);
53 void drawString(
const std::string &str,
const Point2D &cds);
54 void drawPolygon(
const std::vector<Point2D> &cds);
60 unsigned int nSegments = 16,
double vertOffset = 0.05);
64 void getStringSize(
const std::string &label,
double &label_width,
65 double &label_height)
const;
70 void tagAtoms(
const ROMol &mol);
72 void addMoleculeMetadata(
const ROMol &mol,
int confId = -1)
const;
73 void addMoleculeMetadata(
const std::vector<ROMol *> &mols,
74 const std::vector<int> confIds = {})
const;
78 std::stringstream d_ss;
80 void drawChar(
char c,
const Point2D &cds);
84 #endif // MOLDRAW2DSVG_H
MolDraw2DSVG(int width, int height, int panelWidth=-1, int panelHeight=-1)
MolDraw2D is the base class for doing 2D renderings of molecules.
std::string getDrawingText() const
#define RDKIT_MOLDRAW2D_EXPORT
MolDraw2DSVG(int width, int height, std::ostream &os, int panelWidth=-1, int panelHeight=-1)
boost::tuple< float, float, float > DrawColour