ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/hd/rholo.h
(Generate patch)

Comparing ray/src/hd/rholo.h (file contents):
Revision 3.18 by gwlarson, Sun Jan 31 10:56:57 1999 UTC vs.
Revision 3.24 by schorsch, Thu Jan 1 11:21:55 2004 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1998 Silicon Graphics, Inc. */
2 <
3 < /* SCCSid "$SunId$ SGI" */
4 <
1 > /* RCSid: $Id$ */
2   /*
3   * Header file for rholo program
4   */
5 + #ifndef _RAD_RHOLO_H_
6 + #define _RAD_RHOLO_H_
7  
8 + #include <stdio.h>
9 +
10 + #include "view.h"
11   #include "holo.h"
12   #include "vars.h"
13  
14 + #ifdef __cplusplus
15 + extern "C" {
16 + #endif
17 +
18   #ifndef RPACKSIZ
19   #define RPACKSIZ        21              /* good packet size */
20   #endif
21  
22   typedef struct packet {
23 <        int2    hd;             /* holodeck section (first) */
24 <        int4    bi;             /* beam index (second) */
25 <        int4    nr;             /* number of rays (third) */
26 <        int4    nc;             /* number calculated (fourth) */
23 >        int16   hd;             /* holodeck section (first) */
24 >        int32   bi;             /* beam index (second) */
25 >        int32   nr;             /* number of rays (third) */
26 >        int32   nc;             /* number calculated (fourth) */
27          RAYVAL  ra[RPACKSIZ];   /* ray values (fifth) */
28          float   *offset;        /* offset array if !vbool(OBSTRUCTIONS) */
29          struct packet   *next;  /* next in packet list */
30   } PACKET;               /* a beam packet */
31  
32   typedef struct {
33 <        int2    hd;             /* holodeck section (first) */
34 <        int4    bi;             /* beam index (second) */
35 <        int4    nr;             /* number of rays (third) */
36 <        int4    nc;             /* number calculated (fourth) */
33 >        int16   hd;             /* holodeck section (first) */
34 >        int32   bi;             /* beam index (second) */
35 >        int32   nr;             /* number of rays (third) */
36 >        int32   nc;             /* number calculated (fourth) */
37   } PACKHEAD;             /* followed by ray values */
38  
39   #define packsiz(nr)     (sizeof(PACKHEAD)+(nr)*sizeof(RAYVAL))
40   #define packra(p)       ((RAYVAL *)((p)+1))
41  
42   typedef struct {
43 +        int     nb;             /* number of beams in list */
44 +        PACKHEAD        *bl;    /* allocated beam list */
45 + } BEAMLIST;             /* a list of beam requests */
46 +
47 + typedef struct {
48          FVECT   vpt;            /* view (eye point) position */
49          double  rng;            /* desired mean radius for sample rays */
50   } VIEWPOINT;            /* target eye position */
# Line 78 | Line 89 | typedef struct {
89   #define BS_ADD          2               /* add to current set */
90   #define BS_ADJ          3               /* adjust current set quantities */
91   #define BS_DEL          4               /* delete from current set */
92 + #define BS_MAX          5               /* set to max of old and new */
93  
94   extern char     *progname;      /* our program name */
95   extern char     *hdkfile;       /* holodeck file name */
# Line 94 | Line 106 | extern int     nowarn;         /* turn warnings off? */
106   extern int      ncprocs;        /* number of requested compute processes */
107   extern int      nprocs;         /* number of running compute processes */
108  
109 < extern double   expval;         /* global exposure value */
109 > extern int      chunkycmp;      /* using "chunky" comparison mode */
110  
111   extern VIEWPOINT        myeye;  /* target view position */
112  
# Line 108 | Line 120 | extern long    npacksdone;     /* number of packets done */
120   extern int      rtargc;         /* rtrace command */
121   extern char     *rtargv[];
122  
123 < extern PACKET   *do_packets(), *get_packets(), *flush_queue();
123 >        /* rholo.c */
124 > extern void done_packets(PACKET *pl);
125 >        /* rholo2.c */
126 > extern void new_rtrace(void);
127 > extern int done_rtrace(void);
128 > extern void packrays(float *rod, PACKET *p);
129 > extern void donerays(PACKET *p, float *rvl);
130 > extern int getradfile(void);
131 > extern void report(time_t t);
132 >        /* rholo2l.c */
133 > extern int start_rtrace(void);
134 > extern int end_rtrace(void);
135 > extern PACKET *do_packets(PACKET *pl);
136 > extern PACKET *flush_queue(void);
137 >        /* rholo3.c */
138 > extern void init_global(void);
139 > extern int next_packet(PACKET *p, int   n);
140 > extern void bundle_set(int op, PACKHEAD *clist, int nents);
141 >        /* rholo4.c */
142 > extern void disp_open(char *dname);
143 > extern void disp_packet(register PACKHEAD *p);
144 > extern int disp_check(int block);
145 > extern int disp_close(void);
146 >        /* viewbeams.c */
147 > extern int nextview(VIEW *vp, FILE *fp);
148 > extern int16 * viewbeams(VIEW *vp, int hr, int vr, BEAMLIST *blp);
149 >
150 > #ifdef __cplusplus
151 > }
152 > #endif
153 > #endif /* _RAD_RHOLO_H_ */
154 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines