OEBondGlyphCurvedArrow

class OEBondGlyphCurvedArrow : public OEBondGlyphBase

By using the OEBondGlyphCurvedArrow class, bonds can be annotated by drawing a curved arrow across them.

The following methods are publicly inherited from OEBondGlyphBase:

CreateCopy

RenderGlyph

Constructors

OEBondGlyphCurvedArrow(pen: OEPen, arrowRadiusScale: float = 1.0,
                       clockwise: bool = True,
                       arcAngle: float = 270.0, layer: int) -> OEBondGlyphCurvedArrow

Creates an OEBondGlyphCurvedArrow object with the specified parameters.

../../_images/OEBondGlyphCurvedArrow.png

Example of bond annotations

pen

The pen used when drawing a curved arrow at the middle of the bond.

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

arrowRadiusScale

The multiplier used to modify the radius of the drawn arc.

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

clockwise

The direction of the arrow.

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

arcAngle

The angel of the arc in degrees. The value has to be in a range of \([0.0^{\circ}, 360.0^{\circ}]\).

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

layer

Specifies whether the curved arrow is drawn above (OELayerPosition_Above) or below (OELayerPosition_Below) the molecule.

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

CreateCopy

CreateCopy() -> OEBondGlyphCurvedArrow

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

RenderGlyph

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

Draws a glyph (in this case a curved arrow) 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.