OEBondGlyphStitch

class OEBondGlyphStitch : public OEBondGlyphBase

By using the OEBondGlyphStitch class, bonds can be annotated by drawing perpendicular lines across them.

The following methods are publicly inherited from OEBondGlyphBase:

CreateCopy

RenderGlyph

Constructors

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.

../../_images/OEBondGlyphStitch.png

Example of bond annotations

pen

The pen used when drawing the perpendicular lines across the bond.

See examples (A) and (B) in Figure: Example of bond annotations.

nrstitches

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.

stitchLengthScale

The multiplier used to modify the length of the drawn perpendicular lines.

See examples (A) and (D) in Figure: Example of bond annotations.

layer

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.

CreateCopy

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.

RenderGlyph

bool RenderGlyph(OEDepict::OE2DMolDisplay &disp,
                 const OEChem::OEBondBase *bond) const