OEDrawUnpairedInteractionMapLegend

bool OEDrawUnpairedInteractionMapLegend(OEDepict::OEImageBase &image,
                                  const OE2DActiveSiteDisplay &adisp,
                                  const OE2DActiveSiteLegendDisplayOptions &opts)

Draws legend for unpaired interaction map.

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.

opts

The OE2DActiveSiteLegendDisplayOptions object that determines how the legend is depicted.

Example:

// initailize OE2DActiveSiteDisplay

OEImage cgimage = new OEImage(400.0, 200.0);
OE2DActiveSiteLegendDisplayOptions lopts = new OE2DActiveSiteLegendDisplayOptions(3, 2);
OEGrapheme.OEDrawUnpairedInteractionMapLegend(cgimage, adisp, lopts);
OEDepict.OEWriteImage("DrawUnpairedMapLegend.svg", cgimage);
../../_images/DrawUnpairedMapLegend.png

Example of using the OEDrawUnpairedInteractionMapLegend function

See also

Code Example