OERenderShapeQuery¶
void OERenderShapeQuery(OEDepict::OEImageBase &image,
const OEShapeQueryDisplay &disp)
Renders the reference molecule of the shape overlap.
- image
The image on which the reference molecule is rendered.
- disp
The OEShapeQueryDisplay object that holds the data necessary to depict the reference molecule of a shape overlap.
The following code snippet shows how to use the OERenderShapeQuery
function. The image created is shown in
Figure: Example of using the OERenderShapeQuery function.
OEShapeQueryDisplayOptions opts = new OEShapeQueryDisplayOptions();
opts.SetTitleLocation(OETitleLocation.Hidden);
OEPen arcpen = new OEPen(OEChem.OEWhite, OEChem.OELightGrey, OEFill.On, 2.0);
opts.SetSurfaceArcFxn(new OEDefaultArcFxn(arcpen));
OEColorForceField cff = new OEColorForceField();
cff.Init(OEColorFFType.ImplicitMillsDean);
OEShapeQueryDisplay qdisp = new OEShapeQueryDisplay(refmol, cff, opts);
OEImage image = new OEImage(420.0, 280.0);
OEGrapheme.OERenderShapeQuery(image, qdisp);
See also
OERenderColorOverlap
functionOERenderShapeOverlap
function
Code Example
Visualizing Shape and Color Overlap OpenEye Python Cookbook recipe