GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-d6dec75dd4
stroke.c File Reference
#include <stdlib.h>
#include <math.h>
#include <grass/gis.h>
#include <grass/symbol.h>
Include dependency graph for stroke.c:

Go to the source code of this file.

Macros

#define PI   M_PI
 

Functions

void add_coor (SYMBCHAIN *chain, double x, double y)
 
int stroke_chain (SYMBPART *part, int ch, double s, double rotation)
 
void S_stroke (SYMBOL *Symb, double size, double rotation, int tolerance)
 Stroke symbol to form used for Xdriver. More...
 

Macro Definition Documentation

◆ PI

#define PI   M_PI

Definition at line 22 of file stroke.c.

Function Documentation

◆ add_coor()

void add_coor ( SYMBCHAIN chain,
double  x,
double  y 
)

Definition at line 24 of file stroke.c.

References G_debug(), G_realloc, SYMBCHAIN::salloc, SYMBCHAIN::scount, SYMBCHAIN::sx, SYMBCHAIN::sy, and x.

◆ S_stroke()

void S_stroke ( SYMBOL Symb,
double  size,
double  rotation,
int  tolerance 
)

Stroke symbol to form used for Xdriver.

tolerance currently not supported

Parameters
Symbpointer to
sizesymbol size
rotationsymbol rotation, degrees CCW from East
tolerancecurrently not supported

Definition at line 158 of file stroke.c.

◆ stroke_chain()

int stroke_chain ( SYMBPART part,
int  ch,
double  s,
double  rotation 
)

Definition at line 44 of file stroke.c.