| 1 |
/* RCSid: $Id: plot.h,v 1.4 2003/11/15 02:13:37 schorsch Exp $ */
|
| 2 |
/*
|
| 3 |
* Definitions for plotting routines
|
| 4 |
*/
|
| 5 |
#ifndef _RAD_PLOT_H_
|
| 6 |
#define _RAD_PLOT_H_
|
| 7 |
|
| 8 |
#ifdef __cplusplus
|
| 9 |
extern "C" {
|
| 10 |
#endif
|
| 11 |
|
| 12 |
#define NPATS 9 /* number of fill patterns */
|
| 13 |
|
| 14 |
#define PATSIZE 16 /* pattern size (square) */
|
| 15 |
|
| 16 |
|
| 17 |
extern int dxsiz, dysiz; /* device size */
|
| 18 |
|
| 19 |
extern int pati[];
|
| 20 |
|
| 21 |
extern unsigned char pattern[][PATSIZE/8][PATSIZE]; /* fill patterns */
|
| 22 |
|
| 23 |
/* macplot.c, plot.c, psplot.c */
|
| 24 |
extern void set(int attrib, char *value);
|
| 25 |
extern void reset(int attrib);
|
| 26 |
extern void unset(int attrib);
|
| 27 |
|
| 28 |
/* xxxplot.c */
|
| 29 |
extern void plot(FILE *fp);
|
| 30 |
extern void fillpoly(PRIMITIVE *p);
|
| 31 |
extern void filltri(PRIMITIVE *p);
|
| 32 |
extern void printstr(PRIMITIVE *p);
|
| 33 |
extern void fillrect(PRIMITIVE *p);
|
| 34 |
extern void plotlseg(PRIMITIVE *p);
|
| 35 |
|
| 36 |
/* meta2tga.c <-> rplot.c */
|
| 37 |
extern void nextblock(void);
|
| 38 |
extern void outputblock(void);
|
| 39 |
extern void printblock(void);
|
| 40 |
|
| 41 |
/* primout.c */
|
| 42 |
extern void pglob(int co, int a0, char *s);
|
| 43 |
extern void pprim(int co,int a0,int xmin,int ymin,int xmax,int ymax,char *s);
|
| 44 |
extern void plseg(int a0, int xstart, int ystart, int xend, int yend);
|
| 45 |
|
| 46 |
/* psplot, x11plot.c, xplot.c */
|
| 47 |
extern void thispage(void);
|
| 48 |
extern void nextpage(void);
|
| 49 |
extern void contpage(void);
|
| 50 |
extern void printspan(void);
|
| 51 |
extern void endpage(void);
|
| 52 |
|
| 53 |
|
| 54 |
#ifdef __cplusplus
|
| 55 |
}
|
| 56 |
#endif
|
| 57 |
#endif /* _RAD_PLOT_H_ */
|
| 58 |
|