class OEBondGlyphCurvedArrow : public OEBondGlyphBase
By using the OEBondGlyphCurvedArrow class, bonds can be annotated by drawing a curved arrow across them.
See also
The following methods are publicly inherited from OEBondGlyphBase:
CreateCopy | RenderGlyph |
OEBondGlyphCurvedArrow(const OEDepict::OEPen &pen, double arrowRadiusScale=1.0,
bool clockwise=true, double arcAngle=270.0,
unsigned int layer=OEDepict::OELayerPosition::Above)
Creates an OEBondGlyphCurvedArrow object with the specified parameters.
Example of bond annotations
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.
The multiplier used to modify the radius of the drawn arc.
See examples (A) and (C) in Figure: Example of bond annotations.
The direction of the arrow.
See examples (A) and (D) in Figure: Example of bond annotations.
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.
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.
OEBondGlyphBase *CreateCopy() const
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.
bool RenderGlyph(OEDepict::OE2DMolDisplay &disp,
const OEChem::OEBondBase *bond) const
Draws a glyph (in this case a curved arrow) in the middle of the given bond.