OEMonomerGraphDisplayOptions

Attention

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

class OEMonomerGraphDisplayOptions

The OEMonomerGraphDisplayOptions class is used to customize molecule depiction when using OEDrawMonomerGraph function.

hover cursor over graph

Example of using the OEDrawMonomerGraph function

../../_images/DrawMonomerGraph.svg

Constructors

OEMonomerGraphDisplayOptions() -> OEMonomerGraphDisplayOptions

Default constructor.

OEMonomerGraphDisplayOptions(rhs: OEMonomerGraphDisplayOptions) -> OEMonomerGraphDisplayOptions

Copy constructor.

GetInteractiveEffect

GetInteractiveEffect() -> int

Returns the interactive effect of the generated svg image.

GetMonomerColorFunctor

GetMonomerColorFunctor() -> OEMonomerColorBase

Returns the functor that is used to determine the color used to draw the glyph representing the monomer. By default, the OEMonomerColorDefault functor is used.

GetMonomerScale

GetMonomerScale() -> float

Returns the scaling factor of monomer components in interactive mode.

GetMonomerGlyphStyleFunctor

GetMonomerGlyphStyleFunctor() -> OEMonomerGlyphStyleBase

Returns the functor that is used to determine the circle style used to draw the glyph representing the monomer. By default, the OEMonomerGlyphStyleDefault functor is used.

GetMonomerLabelColorFunctor

GetMonomerLabelColorFunctor() -> OEMonomerColorBase

Returns the functor that is used to determine the color of the font used to depict the monomer code. By default, the OEMonomerColorMonochrome functor is used to set all monomer code fonts to black.

SetInteractiveEffect

SetInteractiveEffect(effect: int) -> None

Sets the interactive effect of the generated svg image. In interactive mode, the structures of the monomers that make up the molecule are shown on mouse-over or mouse-click.

See also

SetMonomerColorFunctor

SetMonomerColorFunctor(func: OEMonomerColorBase) -> None

Sets the functor that is used to determine the color used to draw the glyph representing the monomer.

SetMonomerScale

SetMonomerScale(scale: float) -> None

Sets the scaling factor of monomer components in interactive mode.

scale

This value has to be in a range of [0.25, 0.75]. The default value is 0.50.

Note

This option has to be used along with the OEMonomerGraphDisplayOptions.SetInteractiveEffect method

SetMonomerGlyphStyleFunctor

SetMonomerGlyphStyleFunctor(func: OEMonomerGlyphStyleBase) -> None

Sets the functor that is used to determine the circle style used to draw the glyph representing the monomer.

SetMonomerLabelColorFunctor

SetMonomerLabelColorFunctor(func: OEMonomerColorBase) -> None

Sets the functor that is used to determine the color of the font used to depict the monomer code.