OEDrawMonomerGraph

Attention

This is a preliminary API and may be improved based on user feedback. It is currently available in C++ and Python.

bool OEDrawMonomerGraph(OEDepict::OEImageBase& image,
                        const OEChem::OEMolBase& mol)
bool OEDrawMonomerGraph(OEDepict::OEImageBase& image,
                        const OEChem::OEMolBase& mol,
                        const OEMonomerGraphDisplayOptions& opts)

The OEDrawMonomerGraph function is designed to depict the monomer graph of a molecule initialized from a HELM string.

image

The image on which the molecule is drawn.

mol

The molecule being depicted.

opts

The OEMonomerGraphDisplayOptions object that stores properties that determine the styles of the molecule depiction.

Example:

hover cursor over graph

Example of using the OEDrawMonomerGraph function

../../_images/DrawMonomerGraph.svg

See also

Code Example