OEBondGlyphScissors

class OEBondGlyphScissors : public OEBondGlyphBase

By using the OEBondGlyphCross class, bonds can be annotated by drawing a cross in the middle of them.

The following methods are publicly inherited from OEBondGlyphBase:

CreateCopy

RenderGlyph

Constructors

OEBondGlyphScissors(pen: OEPen, scissorsLengthScale: float = 1.0,
                    layer: int) -> OEBondGlyphScissors

Creates an OEBondGlyphCross object with the specified parameters.

../../_images/OEBondGlyphScissors.png

Example of bond annotations

pen

The pen used when drawing scissors across the middle of the bond.

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

scissorsLengthScale

The multiplier used to modify the length of the drawn scissors.

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

layer

Specifies whether the scissors are drawn above (OELayerPosition_Above) or below (OELayerPosition_Below) the molecule.

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

CreateCopy

CreateCopy() -> OEBondGlyphScissors

Deep copy constructor that returns a copy of the object. The memory for the returned OEBondGlyphScissors object is dynamically allocated and owned by the caller.

RenderGlyph

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

Draws a glyph (in this case a scissors) in the middle of the given bond.

disp

The OE2DMolDisplay object that is modified to annotate the specified bond.

bond

The OEBondBase object being annotated.