awips2/ncep/gov.noaa.nws.ncep.viz.rsc.ncgrid/dgdriv_c/drwtbl.h
Steve Harris 8485b90ff8 12.4.1-10 baseline
Former-commit-id: bf53d06834caa780226121334ac1bcf0534c3f16
2012-05-01 18:06:13 -05:00

94 lines
1.8 KiB
C

/************************************************************************
* drwtbl.h *
* *
* This file contains structure definitions used by GEMPAK to store *
* drawing settings for different types of elements *
* *
** *
* E. Wehner/EAi 3/97 Created *
* D. Keiser/GSC 4/97 Added new attributes *
* D. Keiser/GSC 7/97 Redesigned setting structure *
* increase MAX_TYPES *
***********************************************************************/
#define MAX_TYPES 40
/*
* Settings info - Settings information - colors, width, height, etc
* for each drawable element
*/
typedef struct frnttyp
{
int size;
int strk;
int dir;
} FrntTyp;
typedef struct mrkrtyp
{
int type;
int mkhw;
float size;
int width;
} MrkrTyp;
typedef struct linetyp
{
int type;
int lthw;
int width;
int lwhw;
} LineTyp;
typedef struct texttyp
{
int txfn;
int txhw;
float size;
int width;
float rotat;
int xoff;
int yoff;
int alin;
} TextTyp;
typedef struct splntyp
{
int type;
int strk;
int dir;
float size;
int width;
} SplnTyp;
typedef struct symbtyp
{
int width;
float size;
} SymbTyp;
typedef struct windtyp
{
int type;
} WindTyp;
typedef struct setting
{
char gemtyp[8];
char vgtyp[10];
int maj_col;
int min_col;
union
{
FrntTyp frnt;
MrkrTyp mrkr;
LineTyp line;
TextTyp text;
SplnTyp spln;
SymbTyp symb;
WindTyp wind;
} atttyp;
} setting_t[MAX_TYPES], sglset_t;