awips2/ncep/gov.noaa.nws.ncep.ui.nsharp/AwcNsharp/expdraw.h
Steve Harris 676ea3192f 12.5.1-15 baseline
Former-commit-id: b13cbb7e00 [formerly 4909e0dd166e43c22a34d96aa744f51db8a7d6c0]
Former-commit-id: 3904c4ccf5
2012-06-08 13:39:48 -05:00

59 lines
2 KiB
C

/*Preliminary Header file for Turtle Graphics*/
#include <X11/Intrinsic.h>
#include <X11/X.h>
#include <Xm/Xm.h>
#define CIRCUMFERENCE 360
#define HALFCIRCUMFERENCE 180
#define FALSE 0
#define TRUE 1
#define WIDTH 640
#define HEIGHT 480
/***************************************************************************/
/*Vector Graphic Drawing Routines Header File */
/*Derived From Microsoft Quick C Turtle Demo Programs */
/*Developed/Integrated to Emulate Microsoft/GW-BASIC graphic DRAW function */
/* in X-Windows Motif by: */
/*Larry J. Hinson AWC/KCMO */
/***************************************************************************/
Display* g_display;
Window g_window;
GC g_gc;
/*************************************************************************/
/*Symbols for Icing for use by DRAW function in EXPDRAW.C */
/*************************************************************************/
static char Trace_Ice_Sym[] = {"D2F4R6E4U2"};
static char Light_Ice_Sym[] = {"D2F4R6E4U2BL7D8"};
static char Moderate_Ice_Sym[] = {"D2F4R6E4U2BL6ND8BL2ND8"};
static char Severe_Ice_Sym[] = {"D2F4R6E4U2BL5ND8BL2ND8BL2ND8"};
int initturtle(int width,int height);
int OnScreen();
int PenDown( int fPenDown );
short PenColor( short ciCur );
short Turn( short angCur );
short TurnTo( short angCur );
short MoveToP( short x, short y );
short MoveP( double dxy);
short nMoveP( double dxy);
short MovePD(short dx,short dy);
short nMovePD(short dx,short dy);
short SetEndPix(short dx,short dy,int op);
void qckprnt(int x,int y, char *wrk, int colr);
int draw(char *string);
void execdraw(char *string);
void drawloc(int x, int y, int color);
void drawwind(int x,int y,int dir,int speed,int color);
int getmaxx();
int getmaxy();
static double correction;
/*enum logical{FALSE,TRUE};*/
extern struct turtle{
int fPenDown;
int ciCur;
int angCur;
float xCur;
float yCur;
int xmax;
int ymax;
} tc;