GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
psdriver.h
Go to the documentation of this file.
1 #ifndef __PSDRIVER_H__
2 #define __PSDRIVER_H__
3 
4 #include <stdio.h>
5 
6 #include <grass/config.h>
7 #include "driver.h"
8 
9 #define FILE_NAME "map.ps"
10 
11 extern const char *file_name;
12 extern FILE *outfp;
13 extern int true_color;
14 extern int width, height;
15 extern int encapsulated;
16 extern int no_header, no_trailer;
17 
18 extern void output(const char *, ...);
19 
20 extern void init_color_table(void);
21 
22 extern const struct driver *PS_Driver(void);
23 
24 extern void PS_Box_abs(int, int, int, int);
25 extern void PS_Client_Close(void);
26 extern void PS_Erase(void);
27 extern void PS_Graph_close(void);
28 extern int PS_Graph_set(int, char **);
29 extern void PS_Line_width(int);
30 extern void PS_Respond(void);
31 extern void PS_Set_window(int, int, int, int);
32 extern void PS_color(int);
33 extern void PS_draw_bitmap(int, int, int, const unsigned char *);
34 extern void PS_draw_line(int, int, int, int);
35 extern void PS_draw_point(int, int);
36 extern int PS_lookup_color(int, int, int);
37 extern void PS_begin_scaled_raster(int, int[2][2], int[2][2]);
38 extern int PS_scaled_raster(int, int, const unsigned char *,
39  const unsigned char *, const unsigned char *,
40  const unsigned char *);
41 extern void PS_end_scaled_raster(void);
42 extern void PS_Polygon_abs(const int *, const int *, int);
43 extern void PS_Polyline_abs(const int *, const int *, int);
44 
45 #endif /* __PSDRIVER_H__ */
void PS_Set_window(int, int, int, int)
void PS_begin_scaled_raster(int, int[2][2], int[2][2])
tuple width
int no_header
int true_color
struct driver * PS_Driver(void)
void PS_color(int number)
Definition: psdriver/Color.c:5
void init_color_table(void)
void PS_draw_line(int x1, int y1, int x2, int y2)
char * file_name
void PS_Line_width(int width)
void PS_Polygon_abs(const int *xarray, const int *yarray, int number)
int PS_scaled_raster(int, int, const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *)
int PS_Graph_set(int argc, char **argv)
void PS_Respond(void)
void PS_end_scaled_raster(void)
void PS_Client_Close(void)
int PS_lookup_color(int r, int g, int b)
Definition: driver.h:25
void PS_Graph_close(void)
void PS_draw_point(int x, int y)
void PS_Polyline_abs(const int *xarray, const int *yarray, int number)
void PS_Box_abs(int x1, int y1, int x2, int y2)
Definition: psdriver/Box.c:4
int height
void PS_draw_bitmap(int ncols, int nrows, int threshold, const unsigned char *buf)
int no_trailer
void output(const char *fmt,...)
int encapsulated
FILE * outfp
void PS_Erase(void)
Definition: psdriver/Erase.c:3