GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71817
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
psdriver.h File Reference
#include <stdio.h>
#include <grass/config.h>
#include "driver.h"
Include dependency graph for psdriver.h:
This graph shows which files directly or indirectly include this file:

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)
 
struct driverPS_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
 

Macro Definition Documentation

#define FILE_NAME   "map.ps"

Definition at line 9 of file psdriver.h.

Function Documentation

void init_color_table ( void  )
int lookup_color ( int  ,
int  ,
int   
)
void PS_Begin ( void  )

Definition at line 16 of file psdriver/draw.c.

References output().

Referenced by PS_Driver().

void PS_begin_raster ( int  ,
int  [2][2],
double  [2][2] 
)

Definition at line 8 of file psdriver/raster.c.

References output(), ps, and ps_state::true_color.

Referenced by PS_Driver().

void PS_Bitmap ( int  ,
int  ,
int  ,
const unsigned char *   
)

Definition at line 4 of file psdriver/draw_bitmap.c.

References cur_x, cur_y, and output().

Referenced by PS_Driver().

void PS_Box ( double  ,
double  ,
double  ,
double   
)

Definition at line 4 of file psdriver/box.c.

References output().

Referenced by PS_Driver().

void PS_Client_Close ( void  )
void PS_Close ( void  )

Definition at line 31 of file psdriver/draw.c.

References output().

Referenced by PS_Driver().

void PS_Color ( int  ,
int  ,
int   
)

Definition at line 5 of file psdriver/color.c.

References output(), ps, and ps_state::true_color.

Referenced by PS_Driver().

void PS_Cont ( double  ,
double   
)

Definition at line 26 of file psdriver/draw.c.

References output().

Referenced by PS_Driver().

void PS_end_raster ( void  )

Definition at line 62 of file psdriver/raster.c.

References output().

Referenced by PS_Driver().

void PS_Erase ( void  )
void PS_Fill ( void  )

Definition at line 41 of file psdriver/draw.c.

References output().

Referenced by PS_Driver().

void PS_Graph_close ( void  )

Definition at line 8 of file psdriver/graph_close.c.

References fclose(), ps_state::no_trailer, ps_state::outfp, output(), and ps.

Referenced by PS_Driver().

const char* PS_Graph_get_file ( void  )

Get render file.

Returns
file name

Definition at line 228 of file psdriver/graph_set.c.

Referenced by PS_Driver().

void PS_Line_width ( double  )

Definition at line 3 of file psdriver/line_width.c.

References output().

Referenced by PS_Driver().

void PS_Move ( double  ,
double   
)

Definition at line 21 of file psdriver/draw.c.

References output().

Referenced by PS_Driver().

void PS_Point ( double  ,
double   
)

Definition at line 46 of file psdriver/draw.c.

References output().

Referenced by PS_Driver().

int PS_raster ( int  ,
int  ,
const unsigned char *  ,
const unsigned char *  ,
const unsigned char *  ,
const unsigned char *   
)

Definition at line 31 of file psdriver/raster.c.

References int, output(), ps, and ps_state::true_color.

Referenced by PS_Driver().

void PS_Set_window ( double  ,
double  ,
double  ,
double   
)

Definition at line 22 of file psdriver/set_window.c.

References ps_state::encapsulated, output(), and ps.

Referenced by PS_Driver().

void PS_Stroke ( void  )

Definition at line 36 of file psdriver/draw.c.

References output().

Referenced by PS_Driver().

Variable Documentation