double OEGetMoleculeSurfaceScale(const OEChem::OEMolBase &mol,
                                 const OEDepict::OE2DMolDisplayOptions &opts,
                                 double maxRadiusScale = OESurfaceArcScale::Default)

Estimates the scaling factor of the molecule depiction considering the size of the molecule surface being drawn around the molecule diagram. See Figure: Example of using the OEGetMoleculeSurfaceScale function.

The molecule for which the scaling factor is determined.
The OE2DMolDisplayOptions object that stores the parameters which influence the calculated scaling factor (such as the width and the height of the image).
The maximum radius multiplier used to generate the arcs of the 2D molecule surface.

Example of using the OEGetMoleculeSurfaceScale function

See also