OEDrawBFactorMapLegend

bool OEDrawBFactorMapLegend(OEDepict::OEImageBase &image,
                           const OE2DActiveSiteDisplay &adisp)

Draws the color gradient that is used to visualize B-factor information of an active site by the OERenderBFactorMap function.

image

The image in which the color gradient is drawn.

adisp

The OE2DActiveSiteDisplay object that holds the data necessary to depict the B-factor information of an active site.

Example:

// initialize OE2DActiveSiteDisplay

OEImage cgimage = new OEImage(300.0, 100.0);
OEGrapheme.OEDrawBFactorMapLegend(cgimage, adisp);
OEDepict.OEWriteImage("DrawBFactorMapLegend.svg", cgimage);
../../_images/DrawBFactorMapLegend.png

Example of using the OEDrawBFactorMapLegend function

See also

Code Example