1 |
/* Copyright (c) 1996 Regents of the University of California */ |
2 |
|
3 |
/* SCCSid "$SunId$ LBL" */ |
4 |
|
5 |
/* |
6 |
* data.h - header file for routines which interpolate data. |
7 |
*/ |
8 |
|
9 |
#define MAXDDIM 5 /* maximum data dimensions */ |
10 |
|
11 |
#define DATATYPE float /* single precision to save space */ |
12 |
#define DATATY 'f' /* format for DATATYPE */ |
13 |
|
14 |
typedef struct datarray { |
15 |
char *name; /* name of our data */ |
16 |
short type; /* DATATY, RED, GRN or BLU */ |
17 |
short nd; /* number of dimensions */ |
18 |
struct { |
19 |
DATATYPE org, siz; /* coordinate domain */ |
20 |
int ne; /* number of elements */ |
21 |
DATATYPE *p; /* point locations */ |
22 |
} dim[MAXDDIM]; /* dimension specifications */ |
23 |
union { |
24 |
DATATYPE *d; /* float data */ |
25 |
COLR *c; /* RGB data */ |
26 |
} arr; /* the data */ |
27 |
struct datarray *next; /* next array in list */ |
28 |
} DATARRAY; /* a data array */ |
29 |
|
30 |
extern DATARRAY *getdata(), *getpict(); |
31 |
|
32 |
extern double datavalue(); |