GRASS GIS 7 Programmer's Manual  7.7.svn(2018)-r73364
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
path.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  vertex
 
struct  path
 

Enumerations

enum  path_mode { P_MOVE, P_CONT, P_CLOSE }
 

Functions

void path_init (struct path *)
 
void path_free (struct path *)
 
void path_alloc (struct path *, int)
 
void path_reset (struct path *)
 
void path_append (struct path *, double, double, int)
 
void path_copy (struct path *, const struct path *)
 
void path_begin (struct path *)
 
void path_move (struct path *, double, double)
 
void path_cont (struct path *, double, double)
 
void path_close (struct path *)
 
void path_stroke (struct path *, void(*)(double, double, double, double))
 

Enumeration Type Documentation

enum path_mode
Enumerator
P_MOVE 
P_CONT 
P_CLOSE 

Definition at line 5 of file path.h.

Function Documentation

void path_alloc ( struct path ,
int   
)

Definition at line 23 of file driver/path.c.

References path::alloc, and path::vertices.

Referenced by path_append(), and path_copy().

void path_append ( struct path ,
double  ,
double  ,
int   
)
void path_begin ( struct path )

Definition at line 67 of file driver/path.c.

References path::count, and path::start.

Referenced by D_begin(), HTML_Begin(), and PNG_Begin().

void path_close ( struct path )
void path_cont ( struct path ,
double  ,
double   
)

Definition at line 79 of file driver/path.c.

References P_CONT, and path_append().

Referenced by D_cont_abs(), HTML_Cont(), PNG_Cont(), and png_draw_line().

void path_copy ( struct path ,
const struct path  
)
void path_free ( struct path )

Definition at line 13 of file driver/path.c.

References path::alloc, path::count, G_free(), path::start, and path::vertices.

Referenced by D__clip_path(), and D__cull_path().

void path_init ( struct path )

Definition at line 5 of file driver/path.c.

References path::alloc, path::count, NULL, path::start, and path::vertices.

Referenced by D__clip_path(), and D__cull_path().

void path_move ( struct path ,
double  ,
double   
)

Definition at line 73 of file driver/path.c.

References path::count, P_MOVE, path_append(), and path::start.

Referenced by D_move_abs(), HTML_Move(), png_draw_line(), and PNG_Move().

void path_reset ( struct path )

Definition at line 32 of file driver/path.c.

References path::count, and path::start.

Referenced by HTML_Stroke(), path_copy(), and path_stroke().

void path_stroke ( struct path ,
void(*)(double, double, double, double)   
)

Definition at line 97 of file driver/path.c.

References path::count, vertex::mode, P_MOVE, path_reset(), path::vertices, vertex::x, and vertex::y.

Referenced by PNG_Stroke().