grass  7.8.6
About: GRASS (Geographic Resources Analysis Support System) is a raster- and vector-based GIS, image processing system, graphics production system and spatial modeling system.
  Fossies Dox: grass-7.8.6.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

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.


#define PI   M_PI


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

MODULE: Symbol library

AUTHOR(S): Radim Blazek

PURPOSE: Stroke symbol

COPYRIGHT: (C) 2001 by the GRASS Development Team

          This program is free software under the GNU General Public
        License (>=v2). Read the file COPYING that comes with GRASS
        for details.

Definition at line 22 of file stroke.c.

Function Documentation

◆ add_coor()

void add_coor ( SYMBCHAIN chain,
double  x,
double  y 

Definition at line 25 of file stroke.c.

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

Referenced by stroke_chain().

◆ S_stroke()

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

Stroke symbol to form used for Xdriver.

tolerance currently not supported

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

Definition at line 158 of file stroke.c.

References SYMBPART::count, SYMBOL::count, G_debug(), SYMBOL::part, s, S_POLYGON, S_STRING, SYMBOL::scale, stroke_chain(), tolerance, and SYMBPART::type.

◆ stroke_chain()

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