ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/data.h
Revision: 2.2
Committed: Fri Jun 30 16:07:42 1995 UTC (28 years, 10 months ago) by greg
Content type: text/plain
Branch: MAIN
Changes since 2.1: +1 -2 lines
Log Message:
added comments to data files using new fgetval() function

File Contents

# User Rev Content
1 greg 1.1 /* Copyright (c) 1986 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
9     */
10    
11 greg 1.3 #define MAXDDIM 8 /* maximum dimensions for data array */
12 greg 1.1
13     #define DATATYPE float /* single precision to save space */
14 greg 2.2 #define DATATY 'f' /* format for DATATYPE */
15 greg 1.1
16     typedef struct datarray {
17     char *name; /* name of our data */
18     int nd; /* number of dimensions */
19     struct {
20     double org, siz; /* coordinate domain */
21     int ne; /* number of elements */
22 greg 1.2 double *p; /* point locations */
23 greg 1.3 } dim[MAXDDIM]; /* dimension specifications */
24 greg 1.1 DATATYPE *arr; /* the data */
25     struct datarray *next; /* next array in list */
26     } DATARRAY; /* a data array */
27    
28     extern DATARRAY *getdata(), *getpict();
29    
30     extern double datavalue();