GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-d6dec75dd4
|
Go to the source code of this file.
Data Structures | |
struct | ps_state |
Macros | |
#define | FILE_NAME "map.ps" |
Functions | |
void | output (const char *,...) |
void | init_color_table (void) |
int | lookup_color (int, int, int) |
const struct driver * | PS_Driver (void) |
void | PS_Box (double, double, double, double) |
void | PS_Client_Close (void) |
void | PS_Erase (void) |
void | PS_Graph_close (void) |
int | PS_Graph_set (void) |
const char * | PS_Graph_get_file (void) |
Get render file. More... | |
void | PS_Line_width (double) |
void | PS_Set_window (double, double, double, double) |
void | PS_Color (int, int, int) |
void | PS_Bitmap (int, int, int, const unsigned char *) |
void | PS_begin_raster (int, int[2][2], double[2][2]) |
int | PS_raster (int, int, const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *) |
void | PS_end_raster (void) |
void | PS_Begin (void) |
void | PS_Move (double, double) |
void | PS_Cont (double, double) |
void | PS_Close (void) |
void | PS_Stroke (void) |
void | PS_Fill (void) |
void | PS_Point (double, double) |
Variables | |
struct ps_state | ps |
#define FILE_NAME "map.ps" |
Definition at line 9 of file psdriver.h.
void init_color_table | ( | void | ) |
int lookup_color | ( | int | , |
int | , | ||
int | |||
) |
void output | ( | const char * | fmt, |
... | |||
) |
Definition at line 232 of file psdriver/graph_set.c.
References ps, and ps_state::tempfp.
Referenced by cairo_write_bmp(), cairo_write_ppm(), PS_Begin(), PS_Close(), PS_Color(), PS_Cont(), PS_end_raster(), PS_Erase(), PS_Fill(), PS_Graph_close(), PS_Move(), PS_Point(), PS_Set_window(), PS_Stroke(), write_bmp(), write_pgm(), write_png(), write_ppm(), and write_setup().
void PS_Begin | ( | void | ) |
Definition at line 16 of file psdriver/draw.c.
References output().
void PS_begin_raster | ( | int | mask, |
int | src[2][2], | ||
double | dst[2][2] | ||
) |
Definition at line 7 of file psdriver/raster.c.
void PS_Bitmap | ( | int | ncols, |
int | nrows, | ||
int | threshold, | ||
const unsigned char * | buf | ||
) |
Definition at line 3 of file psdriver/draw_bitmap.c.
void PS_Box | ( | double | x1, |
double | y1, | ||
double | x2, | ||
double | y2 | ||
) |
Definition at line 3 of file psdriver/box.c.
void PS_Client_Close | ( | void | ) |
void PS_Close | ( | void | ) |
Definition at line 31 of file psdriver/draw.c.
References output().
void PS_Color | ( | int | r, |
int | g, | ||
int | b | ||
) |
Definition at line 4 of file psdriver/color.c.
void PS_Cont | ( | double | x, |
double | y | ||
) |
Definition at line 26 of file psdriver/draw.c.
const struct driver* PS_Driver | ( | void | ) |
Definition at line 21 of file psdriver/driver.c.
void PS_end_raster | ( | void | ) |
Definition at line 59 of file psdriver/raster.c.
References output().
void PS_Erase | ( | void | ) |
Definition at line 3 of file psdriver/erase.c.
References ps_state::bot, ps_state::encapsulated, ps_state::left, output(), ps, ps_state::right, and ps_state::top.
void PS_Fill | ( | void | ) |
Definition at line 41 of file psdriver/draw.c.
References output().
void PS_Graph_close | ( | void | ) |
Definition at line 9 of file psdriver/graph_close.c.
References G_rename_file(), ps_state::no_trailer, ps_state::outfile, output(), ps, ps_state::tempfile, and ps_state::tempfp.
const char* PS_Graph_get_file | ( | void | ) |
Get render file.
Definition at line 227 of file psdriver/graph_set.c.
References ps_state::outfile, and ps.
int PS_Graph_set | ( | void | ) |
Definition at line 169 of file psdriver/graph_set.c.
References ps_state::encapsulated, FILE_NAME, G_gisinit, G_strcasecmp(), ps_state::outfile, ps, and ps_state::true_color.
void PS_Line_width | ( | double | width | ) |
Definition at line 3 of file psdriver/line_width.c.
void PS_Move | ( | double | x, |
double | y | ||
) |
Definition at line 21 of file psdriver/draw.c.
void PS_Point | ( | double | x, |
double | y | ||
) |
Definition at line 46 of file psdriver/draw.c.
int PS_raster | ( | int | n, |
int | row, | ||
const unsigned char * | red, | ||
const unsigned char * | grn, | ||
const unsigned char * | blu, | ||
const unsigned char * | nul | ||
) |
Definition at line 29 of file psdriver/raster.c.
References ps, and ps_state::true_color.
void PS_Set_window | ( | double | t, |
double | b, | ||
double | l, | ||
double | r | ||
) |
Definition at line 21 of file psdriver/set_window.c.
References b, ps_state::encapsulated, l, output(), ps, r, and t.
void PS_Stroke | ( | void | ) |
Definition at line 36 of file psdriver/draw.c.
References output().
|
extern |
Definition at line 1 of file psdriver/graph_set.c.
Referenced by gs_get_prev_surface(), gs_init_surf(), output(), PS_Color(), PS_Erase(), PS_Graph_close(), PS_Graph_get_file(), PS_Graph_set(), PS_raster(), PS_Set_window(), and write_setup().