void OERenderShapeQuery(OEDepict::OEImageBase &image,
                        const OEShapeQueryDisplay &disp)

Renders the reference molecule of the shape overlap.


The image on which the reference molecule is rendered.


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();
OEPen arcpen = new OEPen(OEChem.OEWhite, OEChem.OELightGrey, OEFill.On, 2.0);
opts.SetSurfaceArcFxn(new OEDefaultArcFxn(arcpen));

OEColorForceField cff = new OEColorForceField();
OEShapeQueryDisplay qdisp = new OEShapeQueryDisplay(refmol, cff, opts);

OEImage image = new OEImage(420.0, 280.0);
OEGrapheme.OERenderShapeQuery(image, qdisp);

Example of using the OERenderShapeQuery function

Code Example