class OEBondGlyphStitch : public OEBondGlyphBase
By using the OEBondGlyphStitch class, bonds can be annotated by drawing perpendicular lines across them.
See also
The following methods are publicly inherited from OEBondGlyphBase:
CreateCopy | RenderGlyph |
OEBondGlyphStitch(const OEDepict::OEPen &pen, unsigned int nrstitches=2u,
double stitchLengthScale=1.0,
unsigned int layer=OEDepict::OELayerPosition::Above)
Creates an OEBondGlyphZigZag object with the specified parameters.
Example of bond annotations
The pen used when drawing the perpendicular lines across the bond.
See examples (A) and (B) in Figure: Example of bond annotations.
The number of perpendicular lines drawn across the bond. This value has to be in the range of [1, 5].
See examples (A) and (C) in Figure: Example of bond annotations.
The multiplier used to modify the length of the drawn perpendicular lines.
See examples (A) and (D) in Figure: Example of bond annotations.
Specifies whether the perpendicular lines are drawn above (OELayerPosition.Above) or below (OELayerPosition.Below) the molecule.
See examples (B) and (E) in Figure: Example of bond annotations.
OEBondGlyphBase *CreateCopy() const
Deep copy constructor that returns a copy of the object. The memory for the returned OEBondGlyphStitch object is dynamically allocated and owned by the caller.
bool RenderGlyph(OEDepict::OE2DMolDisplay &disp,
const OEChem::OEBondBase *bond) const