GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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
 
#define round(x)   ((int) floor(0.5 + (x)))
 

Functions

void add_coor (SYMBCHAIN *chain, int x, int y)
 
int stroke_chain (SYMBPART *part, int ch, double s, double rotation)
 
void S_stroke (SYMBOL *Symb, int size, double rotation, int tolerance)
 

Macro Definition Documentation

#define PI   M_PI

Definition at line 22 of file stroke.c.

Referenced by stroke_chain().

#define round (   x)    ((int) floor(0.5 + (x)))

Definition at line 24 of file stroke.c.

Referenced by stroke_chain().

Function Documentation

void add_coor ( SYMBCHAIN *  chain,
int  x,
int  y 
)

Definition at line 27 of file stroke.c.

References G_debug(), and y.

Referenced by stroke_chain().

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

Definition at line 154 of file stroke.c.

References G_debug(), dialogs::s, and stroke_chain().

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

Definition at line 45 of file stroke.c.

References add_coor(), first, G_debug(), G_rotate_around_point(), l, PI, r, round, and y.

Referenced by S_stroke().