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 1.2 by greg, Mon Jan 8 13:37:52 1990 UTC vs.
Revision 2.8 by greg, Thu Aug 21 07:05:59 2008 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   typedef short  COORD;           /* an image coordinate */
16  
17   typedef struct pnode {
18          struct pnode  *kid;             /* children */
19          COORD  x, y;                    /* position */
20 +        COORD  xmin, ymin, xmax, ymax;  /* rectangle */
21          COLOR  v;                       /* value */
22   }  PNODE;                       /* a paint node */
23  
# Line 38 | Line 39 | extern VIEW  ourview;          /* current view parameters */
39   extern VIEW  oldview;           /* previous view parameters */
40   extern int  hresolu, vresolu;   /* image resolution */
41  
42 + extern int  newparam;           /* parameter setting changed */
43 +
44 + extern char  *dvcname;          /* output device name */
45 +
46 + extern char  rifname[];         /* rad input file name */
47 +
48 + extern int  psample;            /* pixel sample size */
49 + extern double  maxdiff;         /* max. sample difference */
50 +
51   extern int  greyscale;          /* map colors to brightness? */
52  
53   extern int  pdepth;             /* image depth in current frame */
# Line 47 | Line 57 | extern double  exposure;       /* exposure for scene */
57  
58   extern struct driver  *dev;     /* driver functions */
59  
60 < extern PNODE  *findrect();
60 > extern int  nproc;              /* number of processes */
61 >
62 >                                /* defined in rview.c */
63 > extern void     devopen(char *dname);
64 > extern void     devclose(void);
65 > extern void     printdevices(void);
66 > extern void     command(char *prompt);
67 > extern void     rsample(void);
68 > extern int      refine(PNODE *p, int pd);
69 >                                /* defined in rv2.c */
70 > extern void     getframe(char *s);
71 > extern void     getrepaint(char *s);
72 > extern void     getview(char *s);
73 > extern void     lastview(char *s);
74 > extern void     saveview(char *s);
75 > extern void     loadview(char *s);
76 > extern void     getfocus(char *s);
77 > extern void     getaim(char *s);
78 > extern void     getmove(char *s);
79 > extern void     getrotate(char *s);
80 > extern void     getpivot(char *s);
81 > extern void     getexposure(char *s);
82 > extern int      getparam(char *str, char *dsc, int typ, void *p);
83 > extern void     setparam(char *s);
84 > extern void     traceray(char *s);
85 > extern void     writepict(char *s);
86 >                                /* defined in rv3.c */
87 > extern int      getrect(char *s, RECT *r);
88 > extern int      getinterest(char *s, int direc, FVECT vec, double *mp);
89 > extern float    *greyof(COLOR col);
90 > extern int      paint(PNODE *p);
91 > extern int      waitrays(void);
92 > extern void     newimage(char *s);
93 > extern void     redraw(void);
94 > extern void     repaint(int xmin, int ymin, int xmax, int ymax);
95 > extern void     paintrect(PNODE *p, RECT *r);
96 > extern PNODE    *findrect(int x, int y, PNODE *p, int pd);
97 > extern void     scalepict(PNODE *p, double sf);
98 > extern void     getpictcolrs(int yoff, COLR *scan, PNODE *p,
99 >                        int xsiz, int ysiz);
100 > extern void     freepkids(PNODE *p);
101 > extern void     newview(VIEW *vp);
102 > extern void     moveview(double angle, double elev, double mag, FVECT vc);
103 > extern void     pcopy(PNODE *p1, PNODE *p2);
104 > extern void     zoomview(VIEW *vp, double zf);
105 >
106 >
107 > #ifdef __cplusplus
108 > }
109 > #endif
110 > #endif /* _RAD_RPAINT_H_ */
111 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines