GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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.

Macros

#define FILE_NAME   "map.ps"
 

Functions

void output (const char *,...)
 
void init_color_table (void)
 
struct driverPS_Driver (void)
 
void PS_Box_abs (int, int, int, int)
 
void PS_Client_Close (void)
 
void PS_Erase (void)
 
void PS_Graph_close (void)
 
int PS_Graph_set (int, char **)
 
void PS_Line_width (int)
 
void PS_Respond (void)
 
void PS_Set_window (int, int, int, int)
 
void PS_color (int)
 
void PS_draw_bitmap (int, int, int, const unsigned char *)
 
void PS_draw_line (int, int, int, int)
 
void PS_draw_point (int, int)
 
int PS_lookup_color (int, int, int)
 
void PS_begin_scaled_raster (int, int[2][2], int[2][2])
 
int PS_scaled_raster (int, int, const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *)
 
void PS_end_scaled_raster (void)
 
void PS_Polygon_abs (const int *, const int *, int)
 
void PS_Polyline_abs (const int *, const int *, int)
 

Variables

const char * file_name
 
FILE * outfp
 
int true_color
 
int width
 
int height
 
int encapsulated
 
int no_header
 
int no_trailer
 

Macro Definition Documentation

#define FILE_NAME   "map.ps"

Definition at line 9 of file psdriver.h.

Function Documentation

void init_color_table ( void  )

Definition at line 77 of file pngdriver/Color_table.c.

References NCOLORS, and true_color.

Referenced by PNG_Graph_set(), and PS_Graph_set().

void PS_begin_scaled_raster ( int  ,
int  [2][2],
int  [2][2] 
)

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

References output(), true_color, and dialogs::type.

Referenced by PS_Driver().

void PS_Box_abs ( int  ,
int  ,
int  ,
int   
)

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

References output().

Referenced by PS_Driver().

void PS_Client_Close ( void  )

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

References outfp.

Referenced by PS_Driver().

void PS_color ( int  )

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

References b, g, G_warning(), NCOLORS, output(), r, and true_color.

Referenced by PS_Driver().

void PS_draw_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_draw_line ( int  ,
int  ,
int  ,
int   
)

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

References output().

Referenced by PS_Driver().

void PS_draw_point ( int  ,
int   
)

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

References output().

Referenced by PS_Driver().

struct driver* PS_Driver ( void  )

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

void PS_end_scaled_raster ( void  )

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

References output().

Referenced by PS_Driver().

void PS_Erase ( void  )

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

References encapsulated, output(), screen_bottom, screen_left, screen_right, and screen_top.

Referenced by PS_Driver().

void PS_Graph_close ( void  )

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

References fclose(), no_trailer, outfp, and output().

Referenced by PS_Driver().

void PS_Line_width ( int  )

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

References output().

Referenced by PS_Driver().

int PS_lookup_color ( int  ,
int  ,
int   
)

Definition at line 24 of file psdriver/Color_table.c.

References true_color.

Referenced by PS_Driver().

void PS_Polygon_abs ( const int ,
const int ,
int   
)

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

References output().

Referenced by PS_Driver().

void PS_Polyline_abs ( const int ,
const int ,
int   
)

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

References output().

Referenced by PS_Driver().

void PS_Respond ( void  )

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

References outfp.

Referenced by PS_Driver().

int PS_scaled_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, n, output(), and true_color.

Referenced by PS_Driver().

void PS_Set_window ( int  ,
int  ,
int  ,
int   
)

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

References encapsulated, and output().

Referenced by PS_Driver().

Variable Documentation

int encapsulated

Definition at line 27 of file psdriver/Graph_set.c.

Referenced by PS_Erase(), PS_Graph_set(), and PS_Set_window().

const char* file_name

Definition at line 46 of file cairodriver/Graph.c.

int height

Definition at line 49 of file cairodriver/Graph.c.

int no_header

Definition at line 28 of file psdriver/Graph_set.c.

Referenced by PS_Graph_set().

int no_trailer

Definition at line 28 of file psdriver/Graph_set.c.

Referenced by PS_Graph_close(), and PS_Graph_set().

FILE* outfp