7ba #ifndef MAPPLOT_H #define MAPPLOT_H #include #include #include "resource.h" #define PLATE_CARREE 0 #define D2R 1.745329251994328e-2 /* Degrees to radians */ #define R2D 57.2957795131 /* Radians to degrees */ #define FEAT_COAST 1 #define FEAT_COUNTRY 2 #define FEAT_STATE 4 #define FEAT_ISLAND 5 #define FEAT_LAKE 6 #define FEAT_RIVER 7 #define SHW_COAST 1 #define SHW_COUNTRY 2 #define SHW_STATE 4 #define SHW_ISLAND 8 #define SHW_LAKE 16 #define SHW_RIVER 32 #define SHW_GRID 64 #define SHW_DEGREES 128 #define CLR_COAST 0 #define CLR_COUNTRY 1 #define CLR_STATE 2 #define CLR_ISLAND 3 #define CLR_LAKE 4 #define CLR_RIVER 5 #define CLR_BACKGR 6 #define CLR_GRID 7 typedef struct wdbIIMap { char name[256]; struct wdbIIMap *next; } WDBII_MAP; typedef struct { short code; short lat; short lon; } MAP_REC; typedef struct { float lon; float lat; } DPOINT; typedef struct { float lon; float lat; char level; } MAP_POINT; typedef struct mapPoly { char feature; unsigned short nPoints; MAP_POINT *points; struct mapPoly *next; } MAP_POLY; typedef struct { double minLon; double maxLon; double minLat; double maxLat; } MINMAX; typedef struct { HINSTANCE hInst; HWND hwndMain, hwndCont, hwndStatus, hwndLabel[3], hwndEdit[3]; HWND oldFocus; HMENU hMenu; int statusHeight; char dataDir[256]; int project; WDBII_MAP *wdbIIMaps; BOOL wdbIIMode; MAP_POLY *mapData, *prevPoly; double origLon, origLat, zoom; MINMAX minMax; long (*ForTrans[MAXPROJ + 1])(double, double, double *, double *); long (*InvTrans[MAXPROJ + 1])(double, double, double *, double *); double scale; int shwFeatures; char wdbShwBdyFeatures[20]; char wdbShwCilFeatures[20]; char wdbShwRivFeatures[20]; int gridDeg; COLORREF colors[20], defColors[20]; } VARS; void DoExitStuff(VARS *v); #endif . 0