| 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 { |
| 47 |
|
|
| 48 |
|
extern struct driver *dev; /* driver functions */ |
| 49 |
|
|
| 50 |
< |
extern PNODE *findrect(); |
| 50 |
> |
/* defined in rview.c */ |
| 51 |
> |
extern void devopen(char *dname); |
| 52 |
> |
extern void devclose(void); |
| 53 |
> |
extern void printdevices(void); |
| 54 |
> |
extern void fillreserves(void); |
| 55 |
> |
extern void freereserves(void); |
| 56 |
> |
extern void command(char *prompt); |
| 57 |
> |
extern void rsample(void); |
| 58 |
> |
extern int refine(PNODE *p, int xmin, int ymin, |
| 59 |
> |
int xmax, int ymax, int pd); |
| 60 |
> |
/* defined in rv2.c */ |
| 61 |
> |
extern void getframe(char *s); |
| 62 |
> |
extern void getrepaint(char *s); |
| 63 |
> |
extern void getview(char *s); |
| 64 |
> |
extern void lastview(char *s); |
| 65 |
> |
extern void saveview(char *s); |
| 66 |
> |
extern void loadview(char *s); |
| 67 |
> |
extern void getfocus(char *s); |
| 68 |
> |
extern void getaim(char *s); |
| 69 |
> |
extern void getmove(char *s); |
| 70 |
> |
extern void getrotate(char *s); |
| 71 |
> |
extern void getpivot(char *s); |
| 72 |
> |
extern void getexposure(char *s); |
| 73 |
> |
extern int getparam(char *str, char *dsc, int typ, void *p); |
| 74 |
> |
extern void setparam(char *s); |
| 75 |
> |
extern void traceray(char *s); |
| 76 |
> |
extern void writepict(char *s); |
| 77 |
> |
/* defined in rv3.c */ |
| 78 |
> |
extern int getrect(char *s, RECT *r); |
| 79 |
> |
extern int getinterest(char *s, int direc, FVECT vec, double *mp); |
| 80 |
> |
extern float *greyof(COLOR col); |
| 81 |
> |
extern void paint(PNODE *p, int xmin, int ymin, int xmax, int ymax); |
| 82 |
> |
extern void newimage(void); |
| 83 |
> |
extern void redraw(void); |
| 84 |
> |
extern void repaint(int xmin, int ymin, int xmax, int ymax); |
| 85 |
> |
extern void paintrect(PNODE *p, int xmin, int ymin, |
| 86 |
> |
int xmax, int ymax, RECT *r); |
| 87 |
> |
extern PNODE *findrect(int x, int y, PNODE *p, RECT *r, int pd); |
| 88 |
> |
extern void scalepict(PNODE *p, double sf); |
| 89 |
> |
extern void getpictcolrs(int yoff, COLR *scan, PNODE *p, |
| 90 |
> |
int xsiz, int ysiz); |
| 91 |
> |
extern void freepkids(PNODE *p); |
| 92 |
> |
extern void newview(VIEW *vp); |
| 93 |
> |
extern void moveview(double angle, double elev, double mag, FVECT vc); |
| 94 |
> |
extern void pcopy(PNODE *p1, PNODE *p2); |
| 95 |
> |
extern void zoomview(VIEW *vp, double zf); |
| 96 |
> |
|
| 97 |
> |
|
| 98 |
> |
#ifdef __cplusplus |
| 99 |
> |
} |
| 100 |
> |
#endif |
| 101 |
> |
#endif /* _RAD_RPAINT_H_ */ |
| 102 |
> |
|