⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 maptypes.h

📁 GPS导航的源代码
💻 H
字号:
#ifndef MAPTYPES_H
#define MAPTYPES_H

#pragma pack(8)

//
struct MapPosition
{
	double x;
	double y;
};

//
struct MapRect
{
	MapPosition pt1;
	MapPosition pt2;
};

//
struct MapFeatureIDStr
{
	long int id;
	int type;
	char name[50];
	MapRect bound;
	unsigned long int offmap;
	unsigned long int offprop;
};

//
struct MapFeaturePart
{
	MapRect bound;
	unsigned long int npt;
	MapPosition pts[1];
};

//
struct MapFeatureData
{
	unsigned long int npart;
	MapFeaturePart parts[1];
};

//
struct MapFeatureProp
{
	unsigned int symbol;
	unsigned long int color;
	unsigned int width;
	unsigned long int style;
};

//
struct MapLayer
{
	TCHAR name[20];
	TCHAR file[MAX_PATH];
	BOOL visible;
	double scaleMin,scaleMax;
	BOOL label;
	double labelScaleMin,lableScaleMax;
};

//
struct MapSelection
{
	MapLayer *pLayer;
	MapFeatureIDStr *pidstr;
//	long int id;
//	unsigned long int offid;
};

#endif //MAPTYPES_H


/*  Data structure
1. ID
 MapFeatureIDStr | [MapFeatureIDStr] | ...

2. Map
 Dot
  MapPosition
  -----------
  point

 Line or Region
  unsigned long int | MapRect | unsigned long int | MapPosition
  -----------------   -----------------------------------------
  part number         [MapPart                                ] 
  -----------------   -------   -----------------   -----------
  npart               [bound    npt                 [points]  ]

(where [] means repeat zero or more times)
*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -