Data Structures

 

Overview

    TAL classes use data structures to simplify the management of related data. All data structures have public members, and are declared in namespace tal.

RANGE

Declared in "soiltex.h"

Range of values

typedef struct
{
   double mMin; // minimum value; default is 0.0
   double mMax; // maximum value; default is 100.0
} RANGE;

TEXTURE

Declared in "soiltex.h"

Soil texture class definition

typedef struct
{
   std::string mName; // name of texture; default is ""
   int mCode;         // code of texture; default is -1
   polygon mPolygon;  // polygon coordinates
} TEXTURE;

MODBOD

Declared in "soiltex.h"

Modified border definition

typedef struct
{
   std::vector<int> mFrom; // default borders
   std::vector<int> mTo;   // desired border result
} MODBOD;

POINT

Declared in "polygon.h"

A point in a two-dimensional Cartesian coordinate system

typedef struct
{
   double x; // x coordinate; default is 0.0
   double y; // y coordinate; default is 0.0
} POINT;

POSITION

Declared in "polygon.h"

Position of a point within a polygon, where INTERIOR is within the polygon; EXTERIOR is completely outside the polygon; VERTEX is at the polygon vertex; EDGE is at the polygon boundary (border); and NONE denotes error.

typedef struct
{
   int mPos; // position of a point; default is NONE
} POSITION;

 

 
 
TAL Home | Code Main Page | email
 
  updated: 02-Mar-2001