demdata.h

来自「关于地理高程坐标的转换程序」· C头文件 代码 · 共 53 行

H
53
字号
// DemData.h: interface for the CDem class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DEMDATA_H__4515BB06_7C67_49BE_8DB7_9B3A68D87EF1__INCLUDED_)
#define AFX_DEMDATA_H__4515BB06_7C67_49BE_8DB7_9B3A68D87EF1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CObject;
/*struct Point3D
{
	double x;
	double y;
	float  z;
};
*/
class CDem : public CObject  
{
public:
	CDem( CProgressCtrl* pProgress = NULL);
	virtual ~CDem();

public:
	double m_X0;
	double m_Y0;
	float  m_deltaX;
	float  m_deltaY;
	int m_nRow;
	int m_nColumn;
	int m_nHZoom;

private:
	int** m_pHList;

	CProgressCtrl*	m_pProgress;

public:

	void ImportFromDemFile( const CString& strDemFile);
	void ExportToStrFile( const CString& strStrFile,int nFactor);

private:
	BOOL ReadFileHead( CStdioFile& DemFile );
	void FreeHList();
	int DivideString(const CString& strBuf,CStringArray& sttArray);

};

#endif // !defined(AFX_DEMDATA_H__4515BB06_7C67_49BE_8DB7_9B3A68D87EF1__INCLUDED_)

⌨️ 快捷键说明

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