Loading...
Searching...
No Matches
psdriver.h
Go to the documentation of this file.
#ifndef __PSDRIVER_H__
#define __PSDRIVER_H__
#include <stdio.h>
#include <grass/config.h>
#include "driver.h"
#define FILE_NAME "map.ps"
struct ps_state {
const char *tempfile, *outfile;
FILE *tempfp;
int true_color;
int encapsulated;
int no_header, no_trailer;
double left, right, bot, top;
};
extern struct ps_state ps;
extern void output(const char *, ...);
extern void init_color_table(void);
extern int lookup_color(int, int, int);
extern const struct driver *PS_Driver(void);
extern void PS_Box(double, double, double, double);
extern void PS_Client_Close(void);
extern void PS_Erase(void);
extern void PS_Graph_close(void);
extern int PS_Graph_set(void);
extern const char *PS_Graph_get_file(void);
extern void PS_Line_width(double);
extern void PS_Set_window(double, double, double, double);
extern void PS_Color(int, int, int);
extern void PS_Bitmap(int, int, int, const unsigned char *);
extern void PS_begin_raster(int, int[2][2], double[2][2]);
extern int PS_raster(int, int, const unsigned char *, const unsigned char *,
const unsigned char *, const unsigned char *);
extern void PS_end_raster(void);
extern void PS_Begin(void);
extern void PS_Move(double, double);
extern void PS_Cont(double, double);
extern void PS_Close(void);
extern void PS_Stroke(void);
extern void PS_Fill(void);
extern void PS_Point(double, double);
#endif /* __PSDRIVER_H__ */
driver.h
ps
struct ps_state ps
Definition psdriver/graph_set.c:26
PS_Bitmap
void PS_Bitmap(int, int, int, const unsigned char *)
Definition psdriver/draw_bitmap.c:3
PS_raster
int PS_raster(int, int, const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *)
Definition psdriver/raster.c:29
PS_Stroke
void PS_Stroke(void)
Definition psdriver/draw.c:36
PS_Set_window
void PS_Set_window(double, double, double, double)
Definition psdriver/set_window.c:21
PS_Fill
void PS_Fill(void)
Definition psdriver/draw.c:41
PS_Point
void PS_Point(double, double)
Definition psdriver/draw.c:46
PS_Erase
void PS_Erase(void)
Definition psdriver/erase.c:3
PS_Line_width
void PS_Line_width(double)
Definition psdriver/line_width.c:3
PS_Close
void PS_Close(void)
Definition psdriver/draw.c:31
PS_Move
void PS_Move(double, double)
Definition psdriver/draw.c:21
PS_Cont
void PS_Cont(double, double)
Definition psdriver/draw.c:26
PS_Begin
void PS_Begin(void)
Definition psdriver/draw.c:16
PS_Color
void PS_Color(int, int, int)
Definition psdriver/color.c:4
PS_begin_raster
void PS_begin_raster(int, int[2][2], double[2][2])
Definition psdriver/raster.c:7
PS_Graph_set
int PS_Graph_set(void)
Definition psdriver/graph_set.c:170
PS_Client_Close
void PS_Client_Close(void)
PS_end_raster
void PS_end_raster(void)
Definition psdriver/raster.c:59
PS_Graph_close
void PS_Graph_close(void)
Definition psdriver/graph_close.c:9
PS_Box
void PS_Box(double, double, double, double)
Definition psdriver/box.c:3
PS_Driver
const struct driver * PS_Driver(void)
Definition psdriver/driver.c:21
PS_Graph_get_file
const char * PS_Graph_get_file(void)
Get render file.
Definition psdriver/graph_set.c:228
output
void output(const char *,...)
Definition psdriver/graph_set.c:233
lookup_color
int lookup_color(int, int, int)
init_color_table
void init_color_table(void)
driver
Definition driver.h:27
ps_state
Definition psdriver.h:11
ps_state::tempfp
FILE * tempfp
Definition psdriver.h:13
ps_state::left
double left
Definition psdriver.h:17
ps_state::no_trailer
int no_trailer
Definition psdriver.h:16
ps_state::no_header
int no_header
Definition psdriver.h:16
ps_state::true_color
int true_color
Definition psdriver.h:14
ps_state::top
double top
Definition psdriver.h:17
ps_state::encapsulated
int encapsulated
Definition psdriver.h:15
ps_state::bot
double bot
Definition psdriver.h:17
ps_state::outfile
const char * outfile
Definition psdriver.h:12
ps_state::tempfile
const char * tempfile
Definition psdriver.h:12
ps_state::right
double right
Definition psdriver.h:17