www.pudn.com > easygis.rar > EG_DataStruct.h


#ifndef __EG_DataStruct_h__ 
#define __EG_DataStruct_h__ 
 
#include "EasyGisDoc.h" 
 
typedef CArrayEGA_IntArray; 
typedef CArrayEGA_StringArray; 
typedef CArrayEGA_PointArray; 
 
class EGS_DPOINT  
{ 
public: 
	double X; 
	double Y; 
}; 
typedef CArrayEGA_DPointArray; 
 
class EGS_RECT  
{ 
public: 
	double X1; 
	double Y1; 
	double X2; 
	double Y2; 
}; 
 
class EGS_BasicAttri  
{ 
public: 
	//񅧏 
	int m_id; 
 
	//ÒªËØ±àÂë 
	int m_iCode; 
 
	//Ãû³Æ 
	CString m_sName; 
	 
	//¿í¶È 
	double m_dWidth; 
 
}; 
typedef CArrayEGA_BasicAttriArray; 
 
class EGC_PointInfo  
{ 
public: 
 
	EGS_BasicAttri m_Attri; 
 
	EGS_DPOINT m_EGSPosXY; 
 
	EGS_DPOINT m_EGSDirectionXY; 
 
	BOOL DrawPoint(CDC * pDC); 
 
}; 
typedef CTypedPtrListEGL_PointInfoList; 
 
class EGC_LineInfo  
{ 
public: 
	 
	int m_iPosPointNumber; 
 
	EGS_BasicAttri m_Attri; 
 
    EGA_DPointArray PtArray; 
 
	BOOL DrawLine(CDC * pDC,double m_ZoomValue,double offset,POINT m_off); 
 
}; 
typedef CTypedPtrListEGL_LineInfoList; 
 
 
class EGC_RegionInfo  
{ 
public: 
    int m_iRegPointNumber; 
 
	EGS_BasicAttri m_Attri; 
 
	EGA_DPointArray PtArray; 
 
	BOOL DrawRegion(CDC * pDC,double m_ZoomValue,double offset,POINT m_off,bool b_QuerryRegion); 
 
}; 
typedef CTypedPtrListEGL_RegionInfoList; 
 
class EGC_RectInfo  
{ 
public: 
   
 
	EGS_BasicAttri m_Attri; 
 
	EGS_RECT  RectArray; 
 
	BOOL DrawRect(CDC * pDC,double m_ZoomValue,double offset,POINT m_off); 
 
}; 
typedef CTypedPtrListEGL_RectInfoList; 
 
 
 
class EGC_Layer  
{ 
public: 
 
	CString m_sLayerName; 
 
	EGL_PointInfoList m_EGLPointInfoList; 
 
	EGL_LineInfoList m_EGLLineInfoList; 
 
	EGL_RegionInfoList m_EGLRegionInfoList; 
 
    EGL_RectInfoList m_EGLRectInfoList; 
 
	BOOL DrawLayer(CDC * pDC); 
}; 
typedef CTypedPtrListEGL_LayerList; 
 
 
class EGC_Map  
{ 
public: 
 
    CString m_sMapName; 
 
    BOOL m_bCanView; 
 
	EGL_LayerList m_EGLLayerList; 
 
	BOOL DrawMap(CDC * pDC); 
 
}; 
typedef CTypedPtrListEGL_MapList; 
 
class EGC_WorkSpace  
{ 
public: 
	CString m_sWorkSpaceName; 
 
 
	double m_dMaxView; 
 
	double m_dMinView; 
 
	EGL_MapList m_EGLMapList; 
	 
	BOOL DrawWorkSpace(CDC * pDC); 
}; 
 
 
#endif