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

Comparing ray/src/common/view.h (file contents):
Revision 2.6 by greg, Tue Jan 9 12:21:13 1996 UTC vs.
Revision 2.14 by greg, Fri Oct 24 05:29:42 2003 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1994 Regents of the University of California */
2 <
3 < /* SCCSid "$SunId$ LBL" */
4 <
1 > /* RCSid $Id$ */
2   /*
3   *  view.h - header file for image generation.
4   *
5 < *     9/19/88
5 > *  Include after stdio.h and fvect.h
6 > *  Includes resolu.h
7   */
8 + #ifndef _RAD_VIEW_H_
9 + #define _RAD_VIEW_H_
10  
11 + #include  <time.h>
12 + #include  "resolu.h"
13 +
14 + #ifdef __cplusplus
15 + extern "C" {
16 + #endif
17 +
18                                  /* view types */
19   #define  VT_PER         'v'             /* perspective */
20   #define  VT_PAR         'l'             /* parallel */
# Line 34 | Line 41 | typedef struct {
41  
42   extern VIEW  stdview;
43  
37 extern char  *setview();
38
39 extern double  viewray();
40
41 extern char  *viewopt();
42
44   #define  viewaspect(v)  sqrt((v)->vn2/(v)->hn2)
45  
46   #define  STDVIEW        {VT_PER,{0.,0.,0.},{0.,1.,0.},{0.,0.,1.}, \
# Line 48 | Line 49 | extern char  *viewopt();
49  
50   #define  VIEWSTR        "VIEW="
51   #define  VIEWSTRL       5
52 +
53 +
54 + extern char     *setview(VIEW *v);
55 + extern void     normaspect(double va, double *ap, int *xp, int *yp);
56 + extern double   viewray(FVECT orig, FVECT direc, VIEW *v, double x, double y);
57 + extern void     viewloc(FVECT ip, VIEW *v, FVECT p);
58 + extern void     pix2loc(RREAL loc[2], RESOLU *rp, int px, int py);
59 + extern void     loc2pix(int pp[2], RESOLU *rp, double lx, double ly);
60 + extern int      getviewopt(VIEW *v, int ac, char *av[]);
61 + extern int      sscanview(VIEW *vp, char *s);
62 + extern void     fprintview(VIEW *vp, FILE *fp);
63 + extern char     *viewopt(VIEW *vp);
64 + extern int      isview(char *s);
65 + extern int      viewfile(char *fname, VIEW *vp, RESOLU *rp);
66 +
67 +
68 + #ifdef __cplusplus
69 + }
70 + #endif
71 + #endif /* _RAD_VIEW_H_ */
72 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines