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(pen: OEPen, nrstitches: int = 2,
                  stitchLengthScale: float = 1.0, layer: int) -> OEBondGlyphStitch

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

CreateCopy() -> OEBondGlyphStitch

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

RenderGlyph(disp: OE2DMolDisplay, bond: OEBondBase) -> bool