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

Comparing ray/src/rt/rpaint.h (file contents):
Revision 2.1 by greg, Tue Nov 12 17:09:28 1991 UTC vs.
Revision 2.10 by greg, Wed Oct 5 17:20:55 2011 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1987 Regents of the University of California */
2 <
3 < /* SCCSid "$SunId$ LBL" */
4 <
1 > /* RCSid $Id$ */
2   /*
3   *  rpaint.h - header file for image painting.
7 *
8 *     1/30/87
4   */
5 + #ifndef _RAD_RPAINT_H_
6 + #define _RAD_RPAINT_H_
7  
8   #include  "driver.h"
12
9   #include  "view.h"
10  
11 + #ifdef __cplusplus
12 + extern "C" {
13 + #endif
14 +
15 + #ifdef _WIN32           /* stupid Windows name collisions */
16 + #undef COORD
17 + #define COORD   radCOORD
18 + #undef RECT
19 + #define RECT    radRECT
20 + #endif
21 +
22   typedef short  COORD;           /* an image coordinate */
23  
24   typedef struct pnode {
25          struct pnode  *kid;             /* children */
26          COORD  x, y;                    /* position */
27 +        COORD  xmin, ymin, xmax, ymax;  /* rectangle */
28          COLOR  v;                       /* value */
29   }  PNODE;                       /* a paint node */
30  
# Line 38 | Line 46 | extern VIEW  ourview;          /* current view parameters */
46   extern VIEW  oldview;           /* previous view parameters */
47   extern int  hresolu, vresolu;   /* image resolution */
48  
49 + extern int  newparam;           /* parameter setting changed */
50 +
51 + extern char  *dvcname;          /* output device name */
52 +
53 + extern char  rifname[];         /* rad input file name */
54 +
55 + extern int  psample;            /* pixel sample size */
56 + extern double  maxdiff;         /* max. sample difference */
57 +
58   extern int  greyscale;          /* map colors to brightness? */
59  
60   extern int  pdepth;             /* image depth in current frame */
# Line 47 | Line 64 | extern double  exposure;       /* exposure for scene */
64  
65   extern struct driver  *dev;     /* driver functions */
66  
67 < extern PNODE  *findrect();
67 > extern int  nproc;              /* number of processes */
68 >
69 >                                /* defined in rview.c */
70 > extern void     devopen(char *dname);
71 > extern void     devclose(void);
72 > extern void     printdevices(void);
73 > extern void     command(char *prompt);
74 > extern void     rsample(void);
75 > extern int      refine(PNODE *p, int pd);
76 >                                /* defined in rv2.c */
77 > extern void     getframe(char *s);
78 > extern void     getrepaint(char *s);
79 > extern void     getview(char *s);
80 > extern void     lastview(char *s);
81 > extern void     saveview(char *s);
82 > extern void     loadview(char *s);
83 > extern void     getfocus(char *s);
84 > extern void     getaim(char *s);
85 > extern void     getmove(char *s);
86 > extern void     getrotate(char *s);
87 > extern void     getpivot(char *s);
88 > extern void     getexposure(char *s);
89 > extern int      getparam(char *str, char *dsc, int typ, void *p);
90 > extern void     setparam(char *s);
91 > extern void     traceray(char *s);
92 > extern void     writepict(char *s);
93 >                                /* defined in rv3.c */
94 > extern int      getrect(char *s, RECT *r);
95 > extern int      getinterest(char *s, int direc, FVECT vec, double *mp);
96 > extern float    *greyof(COLOR col);
97 > extern int      paint(PNODE *p);
98 > extern int      waitrays(void);
99 > extern void     newimage(char *s);
100 > extern void     redraw(void);
101 > extern void     repaint(int xmin, int ymin, int xmax, int ymax);
102 > extern void     paintrect(PNODE *p, RECT *r);
103 > extern PNODE    *findrect(int x, int y, PNODE *p, int pd);
104 > extern void     compavg(PNODE *p);
105 > extern void     scalepict(PNODE *p, double sf);
106 > extern void     getpictcolrs(int yoff, COLR *scan, PNODE *p,
107 >                        int xsiz, int ysiz);
108 > extern void     freepkids(PNODE *p);
109 > extern void     newview(VIEW *vp);
110 > extern void     moveview(double angle, double elev, double mag, FVECT vc);
111 > extern void     pcopy(PNODE *p1, PNODE *p2);
112 > extern void     zoomview(VIEW *vp, double zf);
113 >
114 >
115 > #ifdef __cplusplus
116 > }
117 > #endif
118 > #endif /* _RAD_RPAINT_H_ */
119 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines