1 |
< |
/* Copyright (c) 1986 Regents of the University of California */ |
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 |
– |
* 6/4/86 |
7 |
|
*/ |
8 |
|
|
9 |
< |
#define MAXDDIM 8 /* maximum dimensions for data array */ |
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 |
|
|
15 |
– |
#define DSCANF "%f" /* scan format for DATATYPE */ |
16 |
– |
|
14 |
|
typedef struct datarray { |
15 |
|
char *name; /* name of our data */ |
16 |
< |
int nd; /* number of dimensions */ |
16 |
> |
short type; /* DATATY, RED, GRN or BLU */ |
17 |
> |
short nd; /* number of dimensions */ |
18 |
|
struct { |
19 |
< |
double org, siz; /* coordinate domain */ |
19 |
> |
DATATYPE org, siz; /* coordinate domain */ |
20 |
|
int ne; /* number of elements */ |
21 |
< |
double *p; /* point locations */ |
21 |
> |
DATATYPE *p; /* point locations */ |
22 |
|
} dim[MAXDDIM]; /* dimension specifications */ |
23 |
< |
DATATYPE *arr; /* the data */ |
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 |
|
|