Back to index

radiance  4R0+20100331
plot.h
Go to the documentation of this file.
00001 /* RCSid: $Id: plot.h,v 1.4 2003/11/15 02:13:37 schorsch Exp $ */
00002 /*
00003  *   Definitions for plotting routines
00004  */
00005 #ifndef _RAD_PLOT_H_
00006 #define _RAD_PLOT_H_
00007 
00008 #ifdef __cplusplus
00009 extern "C" {
00010 #endif
00011 
00012 #define  NPATS  9           /* number of fill patterns */
00013 
00014 #define  PATSIZE  16        /* pattern size (square) */
00015 
00016 
00017 extern int  dxsize, dysize; /* device size */
00018 
00019 extern int  pati[];
00020 
00021 extern unsigned char  pattern[][PATSIZE/8][PATSIZE];    /* fill patterns */
00022 
00023        /* macplot.c, plot.c, psplot.c */
00024 extern void set(int attrib, char *value);
00025 extern void reset(int attrib);
00026 extern void unset(int attrib);
00027 
00028        /* xxxplot.c */
00029 extern void plot(FILE *fp);
00030 extern void fillpoly(PRIMITIVE *p);
00031 extern void filltri(PRIMITIVE *p);
00032 extern void printstr(PRIMITIVE *p);
00033 extern void fillrect(PRIMITIVE *p);
00034 extern void plotlseg(PRIMITIVE *p);
00035 
00036        /* meta2tga.c <-> rplot.c */
00037 extern void nextblock(void);
00038 extern void outputblock(void);
00039 extern void printblock(void);
00040 
00041        /* primout.c */
00042 extern void pglob(int co, int a0, char *s);
00043 extern void pprim(int co,int a0,int xmin,int ymin,int xmax,int ymax,char *s);
00044 extern void plseg(int a0, int xstart, int ystart, int xend, int yend);
00045 
00046        /* psplot, x11plot.c, xplot.c */
00047 extern void thispage(void);
00048 extern void nextpage(void);
00049 extern void contpage(void);
00050 extern void printspan(void);
00051 extern void endpage(void);
00052 
00053 
00054 #ifdef __cplusplus
00055 }
00056 #endif
00057 #endif /* _RAD_PLOT_H_ */
00058