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.

opts = OEShapeQueryDisplayOptions()
opts.SetTitleLocation(OETitleLocation_Hidden)
arcpen = OEPen(OEWhite, OELightGrey, OEFill_On, 2.0)
opts.SetSurfaceArcFxn(OEDefaultArcFxn(arcpen))

cff = OEColorForceField()
cff.Init(OEColorFFType_ImplicitMillsDean)
disp = OEShapeQueryDisplay(refmol, cff, opts)

image = OEImage(420.0, 280.0)
OERenderShapeQuery(image, disp)
../../_images/RenderShapeQuery.png

Example of using the OERenderShapeQuery function