www.pudn.com > UCGUI390a.rar > GPS_TypeDefine.h
//
//
#include "GUI.h"
#ifndef _GPS_TYPEDEF
#define _GPS_TYPEDEF
#define CONF_TABLE_SIZE 20
#define GPS_WIN_WIDTH 960
#define GPS_WIN_HEIGHT 720
#define lonsub 15114
#define latsub 7890
//定义点坐标数据结构
//typedef struct{
// GUI_POINT Posit;
// int Cx;
// int Cy;
//
//}TRACK;
//折线数据结构,用于存储道路,河流等
typedef struct {
GUI_POINT* points; //指向存储坐标的数组
int count; //构成折线的点数
char* name; //名称
} PolyLine;
//折线集合
typedef struct {
PolyLine* pPLs;
int iPLCount; //多少条折线
int color; //线条的颜色
int type_id; //线条的类型,如:高速公路,铁路,街道等
char* type_name;
} PolyLineSet;
//点
typedef struct {
int x;
int y;
int sharp; //在屏幕中画点的形式,如圆,三角形等
char* name;
} Position;
//点集合
typedef struct {
Position* pPts;
int iPtsCount;
int color;
int type_id; //商店,学校等
char* type_name;
} PositionSet;
//区域
typedef struct {
PolyLine* outline; //区域的轮廓
char* name;
} Polygon;
//区域集合
typedef struct {
Polygon* pPoly;
int iPolyCount;
int color; //区域要填充的颜色
int type_id; //广场,湖泊
char* type_name;
} PolygonSet;
//显示配置单元
typedef struct {
int type_id;
char* type_name;
char* show_figure; // 值为:y/n
char* show_name; // 值为:y/n
} Configure;
#endif