OEDrawIridiumData

Attention

This API is currently available in C++ and Python.

bool OEDrawIridiumData(OEDepict::OEImageBase &image,
                       const OEBio::OEDesignUnit &du)
bool OEDrawIridiumData(OEDepict::OEImageBase &image,
                       const OEBio::OEIridiumData &iridium)

Renders the Iridium data into an easily interpretable graph.

image

The image on which the Iridium data graph is drawn.

du

The OEDesignUnit object of which Iridium data is being rendered.

iridium

The OEIridiumData object that is being rendered.

Example:

The following code snippet shows how to use the OEDrawIridiumData function. The image created is shown in Figure: Example of using the OEDrawIridiumData function.

OEDesignUnit du;
if (!OEReadDesignUnit(filename, du))
  OEThrow.Fatal("Cannot read design unit!");

OEImage image(250u, 250u);

OEDrawIridiumData(image, du);
OEDrawBorder(image, OELightGreyPen);
OEWriteImage("DrawIridiumData.svg", image);

hover cursor over graph

Example of using the OEDrawIridiumData function

../../_images/DrawIridiumData.svg

Note

When generating .svg image, the output will be interactive. With any other image file format it will be static. See also Generating Interactive SVG Images chapter in OEDepict TK manual.

See also