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(400.0, 200.0);
OE2DActiveSiteLegendDisplayOptions lopts(3, 2);
OEDrawUnpairedInteractionMapLegend(cgimage, adisp, lopts);
OEWriteImage("DrawUnpairedMapLegend.svg", cgimage);
../../_images/DrawUnpairedMapLegend.png

Example of using the OEDrawUnpairedInteractionMapLegend function

See also