15 #ifndef MOLDRAW2DSVG_H 16 #define MOLDRAW2DSVG_H 59 unsigned int nSegments = 16,
double vertOffset = 0.05);
63 void getStringSize(
const std::string &label,
double &label_width,
64 double &label_height)
const;
73 std::stringstream d_ss;
75 void drawChar(
char c,
const Point2D &cds);
79 #endif // MOLDRAW2DSVG_H virtual int height() const
return the height of the drawing area.
void setColour(const DrawColour &col)
sets the current draw color
void getStringSize(const std::string &label, double &label_width, double &label_height) const
virtual int panelHeight() const
return the height of the drawing panels.
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)
draws a line from cds1 to cds2 using the current drawing style
MolDraw2DSVG(int width, int height, int panelWidth=-1, int panelHeight=-1)
void drawString(const std::string &str, const Point2D &cds)
drawString centres the string on cds.
void drawPolygon(const std::vector< Point2D > &cds)
draw a polygon
std::string getDrawingText() const
void drawEllipse(const Point2D &cds1, const Point2D &cds2)
draw an ellipse
void setFontSize(double new_size)
void drawWavyLine(const Point2D &cds1, const Point2D &cds2, const DrawColour &col1, const DrawColour &col2, unsigned int nSegments=16, double vertOffset=0.05)
draw a wavy line like that used to indicate unknown stereochemistry
void clearDrawing()
clears the contes of the drawingd]
virtual int width() const
return the width of the drawing area.
virtual int panelWidth() const
return the width of the drawing panels.
MolDraw2D is the base class for doing 2D renderings of molecules.
MolDraw2DSVG(int width, int height, std::ostream &os, int panelWidth=-1, int panelHeight=-1)
boost::tuple< float, float, float > DrawColour