30 MolDraw2DSVG(
int width,
int height, std::ostream &os,
int panelWidth = -1,
31 int panelHeight = -1,
bool noFreetype =
false);
34 MolDraw2DSVG(
int width,
int height,
int panelWidth = -1,
int panelHeight = -1,
35 bool noFreetype =
false);
49 bool rawCoords =
false)
override;
51 bool rawCoords =
false)
override;
53 bool rawCoords =
false)
override;
58 unsigned int nSegments = 16,
double vertOffset = 0.05,
59 bool rawCoords =
false)
override;
66 using MolDraw2D::tagAtoms;
69 const std::map<std::string, std::string> &events = {});
75 const std::vector<int> confIds = {});
79 std::stringstream d_ss;
81 void initDrawing()
override;
82 void initTextDrawer(
bool noFreetype)
override;
void drawEllipse(const Point2D &cds1, const Point2D &cds2, bool rawCoords=false) override
draw an ellipse
void setColour(const DrawColour &col) override
sets the current draw color
MolDraw2DSVG(MolDraw2DSVG &&)=delete
MolDraw2DSVG & operator=(MolDraw2DSVG &&)=delete
MolDraw2DSVG(int width, int height, int panelWidth=-1, int panelHeight=-1, bool noFreetype=false)
void clearDrawing() override
clears the contents of the drawing
void drawPolygon(const std::vector< Point2D > &cds, bool rawCoords=false) override
void tagAtoms(const ROMol &mol) override
void drawWavyLine(const Point2D &cds1, const Point2D &cds2, const DrawColour &col1, const DrawColour &col2, unsigned int nSegments=16, double vertOffset=0.05, bool rawCoords=false) override
draw a wavy line like that used to indicate unknown stereochemistry
MolDraw2DSVG(int width, int height, std::ostream &os, int panelWidth=-1, int panelHeight=-1, bool noFreetype=false)
MolDraw2DSVG(const MolDraw2DSVG &)=delete
void drawLine(const Point2D &cds1, const Point2D &cds2, bool rawCoords=false) override
void addMoleculeMetadata(const ROMol &mol, int confId=-1) const
void tagAtoms(const ROMol &mol, double radius, const std::map< std::string, std::string > &events={})
void addMoleculeMetadata(const std::vector< ROMol * > &mols, const std::vector< int > confIds={})
MolDraw2DSVG & operator=(const MolDraw2DSVG &)=delete
std::string getDrawingText() const
MolDraw2D is the base class for doing 2D renderings of molecules.
#define RDKIT_MOLDRAW2D_EXPORT