GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-d6dec75dd4
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

◆ path_mode

enum path_mode
Enumerator
P_MOVE 
P_CONT 
P_CLOSE 

Definition at line 4 of file path.h.

Function Documentation

◆ path_alloc()

void path_alloc ( struct path p,
int  n 
)

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

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

Referenced by path_copy().

◆ path_append()

void path_append ( struct path p,
double  x,
double  y,
int  mode 
)

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

Referenced by path_close(), path_cont(), path_copy(), and path_move().

◆ path_begin()

void path_begin ( struct path p)

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

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

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

◆ path_close()

void path_close ( struct path p)

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

References P_CLOSE, path_append(), path::start, path::vertices, vertex::x, and vertex::y.

Referenced by D_close(), HTML_Close(), PNG_Close(), and png_polygon().

◆ path_cont()

void path_cont ( struct path p,
double  x,
double  y 
)

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

References P_CONT, path_append(), x, and vertex::y.

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

◆ path_copy()

void path_copy ( struct path dst,
const struct path src 
)

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

References dst, vertex::mode, path_alloc(), path_append(), path_reset(), src, vertex::x, and vertex::y.

◆ path_free()

void path_free ( struct path p)

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

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

◆ path_init()

void path_init ( struct path p)

Definition at line 4 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().

◆ path_move()

void path_move ( struct path p,
double  x,
double  y 
)

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

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

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

◆ path_reset()

void path_reset ( struct path p)

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

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

Referenced by HTML_Stroke(), and path_copy().

◆ path_stroke()

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

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

Referenced by PNG_Stroke().