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.12 by greg, Mon Jun 30 19:04:29 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 + #ifdef __cplusplus
11 + extern "C" {
12 + #endif
13  
14 + #include  "resolu.h"
15 +
16                                  /* view types */
17   #define  VT_PER         'v'             /* perspective */
18   #define  VT_PAR         'l'             /* parallel */
# Line 34 | Line 39 | typedef struct {
39  
40   extern VIEW  stdview;
41  
37 extern char  *setview();
38
39 extern double  viewray();
40
41 extern char  *viewopt();
42
42   #define  viewaspect(v)  sqrt((v)->vn2/(v)->hn2)
43  
44   #define  STDVIEW        {VT_PER,{0.,0.,0.},{0.,1.,0.},{0.,0.,1.}, \
# Line 48 | Line 47 | extern char  *viewopt();
47  
48   #define  VIEWSTR        "VIEW="
49   #define  VIEWSTRL       5
50 +
51 +
52 + extern char     *setview(VIEW *v);
53 + extern void     normaspect(double va, double *ap, int *xp, int *yp);
54 + extern double   viewray(FVECT orig, FVECT direc, VIEW *v, double x, double y);
55 + extern void     viewloc(FVECT ip, VIEW *v, FVECT p);
56 + extern void     pix2loc(RREAL loc[2], RESOLU *rp, int px, int py);
57 + extern void     loc2pix(int pp[2], RESOLU *rp, double lx, double ly);
58 + extern int      getviewopt(VIEW *v, int ac, char *av[]);
59 + extern int      sscanview(VIEW *vp, char *s);
60 + extern void     fprintview(VIEW *vp, FILE *fp);
61 + extern char     *viewopt(VIEW *vp);
62 + extern int      isview(char *s);
63 + extern int      viewfile(char *fname, VIEW *vp, RESOLU *rp);
64 +
65 +
66 + #ifdef __cplusplus
67 + }
68 + #endif
69 + #endif /* _RAD_VIEW_H_ */
70 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines