Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F87350807
data.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Oct 12, 03:53
Size
1 KB
Mime Type
text/x-c
Expires
Mon, Oct 14, 03:53 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
21581504
Attached To
R10977 RADIANCE Photon Map
data.h
View Options
/* RCSid $Id: data.h,v 2.7 2003/06/27 06:53:22 greg Exp $ */
/*
* Header for data file loading and computation routines.
*/
#ifndef _RAD_DATA_H_
#define _RAD_DATA_H_
#ifdef __cplusplus
extern
"C"
{
#endif
#define MAXDDIM 5
/* maximum data dimensions */
#define DATATYPE float
/* single precision to save space */
#define DATATY 'f'
/* format for DATATYPE */
typedef
struct
datarray
{
char
*
name
;
/* name of our data */
short
type
;
/* DATATY, RED, GRN or BLU */
short
nd
;
/* number of dimensions */
struct
{
DATATYPE
org
,
siz
;
/* coordinate domain */
int
ne
;
/* number of elements */
DATATYPE
*
p
;
/* point locations */
}
dim
[
MAXDDIM
];
/* dimension specifications */
union
{
DATATYPE
*
d
;
/* float data */
COLR
*
c
;
/* RGB data */
}
arr
;
/* the data */
struct
datarray
*
next
;
/* next array in list */
}
DATARRAY
;
/* a data array */
extern
DATARRAY
*
getdata
(
char
*
dname
);
extern
DATARRAY
*
getpict
(
char
*
pname
);
extern
void
freedata
(
DATARRAY
*
dta
);
extern
double
datavalue
(
DATARRAY
*
dp
,
double
*
pt
);
#ifdef __cplusplus
}
#endif
#endif
/* _RAD_DATA_H_ */
Event Timeline
Log In to Comment