ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/gen/mkillum.h
Revision: 2.19
Committed: Sat Oct 13 20:15:43 2012 UTC (11 years, 6 months ago) by greg
Content type: text/plain
Branch: MAIN
Changes since 2.18: +1 -12 lines
Log Message:
Corrected errors in XML interpreter and genBSDF and removed mkillum BSDF code

File Contents

# User Rev Content
1 greg 2.19 /* RCSid: $Id: mkillum.h,v 2.18 2010/09/03 23:53:50 greg Exp $ */
2 greg 1.1 /*
3     * Common definitions for mkillum
4     */
5 schorsch 2.3 #ifndef _RAD_MKILLUM_H_
6     #define _RAD_MKILLUM_H_
7 greg 1.2
8 greg 2.8 #include "ray.h"
9     #include "otypes.h"
10 greg 2.14 #include "random.h"
11 schorsch 2.4
12     #ifdef __cplusplus
13     extern "C" {
14     #endif
15 greg 1.1 /* illum flags */
16 greg 1.3 #define IL_LIGHT 0x1 /* light rather than illum */
17     #define IL_COLDST 0x2 /* use color distribution */
18     #define IL_COLAVG 0x4 /* use average color */
19     #define IL_DATCLB 0x8 /* OK to clobber data file */
20 greg 1.1
21     struct illum_args {
22     int flags; /* flags from list above */
23 greg 2.11 double thick; /* object thickness */
24 greg 1.1 char matname[MAXSTR]; /* illum material name */
25     char datafile[MAXSTR]; /* distribution data file name */
26     int dfnum; /* data file number */
27 greg 1.2 char altmat[MAXSTR]; /* alternate material name */
28 greg 1.3 int sampdens; /* point sample density */
29 greg 1.1 int nsamps; /* # of samples in each direction */
30 greg 1.5 float minbrt; /* minimum average brightness */
31 greg 2.9 COLOR col; /* computed average color */
32 greg 1.1 }; /* illum options */
33    
34 greg 2.10 extern void printobj(char *mod, OBJREC *obj);
35     extern int average(struct illum_args *il, COLORV *da, int n);
36 greg 2.9 extern void flatout(struct illum_args *il, COLORV *da, int n, int m,
37     FVECT u, FVECT v, FVECT w);
38 greg 2.10 extern void illumout(struct illum_args *il, OBJREC *ob);
39 greg 2.9 extern void roundout(struct illum_args *il, COLORV *da, int n, int m);
40 schorsch 2.3
41 greg 2.11 extern void newdist(int siz);
42     extern int process_ray(RAY *r, int rv);
43     extern void raysamp(int ndx, FVECT org, FVECT dir);
44     extern void rayclean(void);
45    
46 greg 2.13 extern void flatdir(FVECT dv, double alt, double azi);
47 greg 2.16 extern int flatindex(FVECT dv, int nalt, int nazi);
48 greg 2.13
49 greg 2.8 extern int my_default(OBJREC *, struct illum_args *, char *);
50     extern int my_face(OBJREC *, struct illum_args *, char *);
51     extern int my_sphere(OBJREC *, struct illum_args *, char *);
52     extern int my_ring(OBJREC *, struct illum_args *, char *);
53 greg 2.7
54 greg 2.11 extern COLORV * distarr; /* distribution array */
55     extern int distsiz;
56    
57 greg 2.8 extern char *progname;
58 greg 2.7
59     #ifdef __cplusplus
60     }
61     #endif
62 greg 2.6
63 schorsch 2.3 #endif /* _RAD_MKILLUM_H_ */
64