Contour Widget Class


Data Structures

The Contour widget defines several data structures that are used to export contour level information.

XintContourPoint Structure

Structure XintContourPoint is used to store contour points. This structure is referenced in structure XintContour, described below.

   typedef struct {
                   float x;
                   float y;
   } XintContourPoint;


XintContour Structure

Structure XintContour is used to store a contour description, which is defined as an array of contour points. The structure contains the number and the list of points comprising the contour. A contour is closed when the first and last point specifications are identical.

   typedef struct {
                   int npoints;
                   XintContourPoint *points
   } XintContour;


XintContourLevel Structure

Structure XintContourLevel is used to store the description of a contour level. The structure members include the contour Zvalue, the number of contour levels, and a pointer to the list of contours.

   typedef struct {
                   float zvalue;
                   int ncontours;
                   XintContour *contours
   } XintContourLevel;