Data.h
资源名称:基本GIS系统开发.rar [点击查看]
上传用户:yklx818
上传日期:2013-04-13
资源大小:459k
文件大小:1k
源码类别:
GIS编程
开发平台:
Visual C++
- #ifndef _H_DATA_H_
- #define _H_DATA_H_
- typedef struct PointStruct
- {
- float x;
- float y;
- float z;
- }PointStruct;
- typedef struct LayerStruct
- {
- char m_Name[21];
- BOOL b_Display;
- int reserved;
- }LayerStruct;
- typedef struct ScreenStruct
- {
- float blc; //显示比例
- float sx; //屏幕左下角横坐标
- float sy; // 纵
- }ScreenStruct;
- class CGraphPara
- {
- protected:
- int n_ColorNumbAll;
- int n_LayerNumbAll;
- int n_ColorNumb;
- int n_LayerNumb;
- long * m_ColorList;
- LayerStruct* m_LayerList;
- BOOL b_Delete;
- public:
- CGraphPara()
- {
- n_ColorNumb=500;
- n_LayerNumb=100;
- m_ColorList=new long[n_ColorNumb];
- m_LayerList=new LayerStruct[n_LayerNumb];
- n_ColorNumb=4;
- n_LayerNumb=1;
- m_ColorList[0]=RGB(0,0,0);
- m_ColorList[1]=RGB(255,0,0);
- m_ColorList[2]=RGB(0,255,0);
- m_ColorList[3]=RGB(0,0,255);
- m_LayerList[0].b_Display=1;
- strcpy(m_LayerList[0].m_Name,"Layer 0");
- }
- ~CGraphPara()
- {
- delete m_LayerList;
- delete m_ColorList;
- }
- public:
- COLORREF GetColor(int n);
- BOOL GetDisplayStatue(int n);
- };
- //CGraphPara m_GraphPara;
- //CGraphPara *p_GraphPara;
- #endif