ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/data.h
Revision: 2.3
Committed: Thu Feb 15 18:46:56 1996 UTC (28 years, 2 months ago) by greg
Content type: text/plain
Branch: MAIN
Changes since 2.2: +10 -8 lines
Log Message:
made pictures use RGBE storage r.t. float
reduced MAXDDIM to 5

File Contents

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