GRASS GIS 7 Programmer's Manual  7.5.svn(2018)-r72251
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
symbol/read.c File Reference
#include <stdlib.h>
#include <string.h>
#include <dirent.h>
#include <grass/gis.h>
#include <grass/symbol.h>
#include <grass/glocale.h>
Include dependency graph for symbol/read.c:

Go to the source code of this file.

Macros

#define OBJ_NONE   0
 
#define OBJ_STRING   1
 
#define OBJ_POLYGON   2
 
#define OBJ_RING   3
 

Functions

void get_key_data (char *buf)
 
SYMBOLnew_symbol (void)
 
void add_part (SYMBOL *s, SYMBPART *p)
 
SYMBPARTnew_part (int type)
 
void add_chain (SYMBPART *p, SYMBCHAIN *s)
 
SYMBCHAINnew_chain (void)
 
void add_element (SYMBCHAIN *s, SYMBEL *e)
 
SYMBELnew_line (void)
 
void add_point (SYMBEL *el, double x, double y)
 
SYMBELnew_arc (double x, double y, double r, double a1, double a2, int c)
 
void read_coor (FILE *fp, SYMBEL *e)
 
SYMBOLerr (FILE *fp, SYMBOL *s, char *msg)
 
SYMBOLS_read (const char *sname)
 

Macro Definition Documentation

#define OBJ_NONE   0

Definition at line 27 of file symbol/read.c.

Referenced by S_read().

#define OBJ_POLYGON   2

Definition at line 29 of file symbol/read.c.

Referenced by S_read().

#define OBJ_RING   3

Definition at line 30 of file symbol/read.c.

Referenced by S_read().

#define OBJ_STRING   1

Definition at line 28 of file symbol/read.c.

Referenced by S_read().

Function Documentation

void add_chain ( SYMBPART p,
SYMBCHAIN s 
)

Definition at line 99 of file symbol/read.c.

References SYMBPART::alloc, SYMBPART::chain, and SYMBPART::count.

Referenced by S_read().

void add_element ( SYMBCHAIN s,
SYMBEL e 
)

Definition at line 130 of file symbol/read.c.

References SYMBCHAIN::alloc, SYMBCHAIN::count, and SYMBCHAIN::elem.

Referenced by S_read().

void add_part ( SYMBOL s,
SYMBPART p 
)

Definition at line 71 of file symbol/read.c.

References SYMBOL::alloc, SYMBOL::count, and SYMBOL::part.

Referenced by S_read().

void add_point ( SYMBEL el,
double  x,
double  y 
)

Definition at line 156 of file symbol/read.c.

References SYMBEL::coor, SYMBEL::line, and x.

Referenced by read_coor().

void get_key_data ( char *  buf)

Definition at line 33 of file symbol/read.c.

References RB_NODE::data, G_chop(), G_debug(), and NULL.

Referenced by read_coor(), and S_read().

SYMBEL* new_arc ( double  x,
double  y,
double  r,
double  a1,
double  a2,
int  c 
)

Definition at line 173 of file symbol/read.c.

References SYMBEL::arc, SYMBEL::coor, r, S_ARC, SYMBEL::type, and x.

Referenced by S_read().

SYMBCHAIN* new_chain ( void  )
SYMBEL* new_line ( void  )

Definition at line 142 of file symbol/read.c.

References SYMBEL::coor, SYMBEL::line, NULL, S_LINE, and SYMBEL::type.

Referenced by S_read().

SYMBOL* new_symbol ( void  )

Definition at line 58 of file symbol/read.c.

References SYMBOL::alloc, SYMBOL::count, NULL, SYMBOL::part, and SYMBOL::scale.

Referenced by S_read().

void read_coor ( FILE *  fp,
SYMBEL e 
)

Definition at line 189 of file symbol/read.c.

References _, add_point(), G_chop(), G_debug(), G_getl2(), G_warning(), get_key_data(), and x.

Referenced by S_read().