www.pudn.com > DEM_TDS.rar > DEMdata.h, change:2007-05-30,size:1711b


// DEMdata.h: interface for the DEMdata class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_DEMDATA_H__6EA0384E_29E7_4813_A473_A75406A73E3C__INCLUDED_) 
#define AFX_DEMDATA_H__6EA0384E_29E7_4813_A473_A75406A73E3C__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
class DEMdata   
{ 
public: 
	GLdouble arrow_size; 
	GLdouble arrow_dis; 
	void DrawAxis(); 
	GLdouble s; 
	int Com_3D; 
	void Draw3DSurf(); 
	void Draw3DMesh(); 
	void Draw3DSkirt(); 
	COLORREF GetAveColor(int i,int j); 
	int windoworg_dy; 
	int windoworg_dx; 
	int clientheight; 
	int clientwidth; 
    CString DataMark; 
	float Version; 
	char Unit; 
	float Alpha; 
	float Compress; 
	int Row,Col;//Row行数,Col列数,Col行Size,Row列Size 
	CString ValueType; 
	int MaxH; 
	int MinH; 
	COLORREF **color; 
	int **data; 
	void DeleteDEM(); 
	int linewidth; 
	COLORREF GetLengendColor(int linecode); 
	COLORREF Get2ColorGraduateWithH(int ,COLORREF cr1,COLORREF cr2); 
	COLORREF Get2ColorGraduateWithH(float aveH,COLORREF cr1,COLORREF cr2); 
	CString mapcolor; 
	int SizeH; 
	int Hzoom; 
	COLORREF DEMdata::GetLinesColor(int linecode); 
	void matchcolor(); 
	COLORREF GetLinesColorWithH(float aveH); 
	int SizeX,SizeY; 
	float X0,Y0,DX,DY; 
	void DrawDEM(CDC*pDC); 
	void SetH(); 
	void GetSizeZ(int &minH,int &maxH,int &sizeH); 
	int GetSizeY(); 
	int GetSizeX(); 
	bool ReadDEMdata(ifstream &); 
	DEMdata(); 
	virtual ~DEMdata(); 
	COLORREF cr2; 
	COLORREF cr1; 
private: 
	float scalex; 
	float scaley; 
	float scale; 
	void Readdata(ifstream &is); 
	void ReadHead(ifstream &); 
}; 
 
#endif // !defined(AFX_DEMDATA_H__6EA0384E_29E7_4813_A473_A75406A73E3C__INCLUDED_)