从DEM数据中提取等高线——MFC编写


基于vc++6.0MFC平台下从文本形式存储的栅格DEM数据生成等高线,包括等高线的二维和三维显示。
资源截图
代码片段和文件信息
// 3DContourDoc.cpp : implementation file
//

#include “stdafx.h“
#include “WaferPainter.h“
#include “3DContourDoc.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// C3DContourDoc

IMPLEMENT_DYNCREATE(C3DContourDoc CDocument)

C3DContourDoc::C3DContourDoc()
{
}

BOOL C3DContourDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
return TRUE;
}

C3DContourDoc::~C3DContourDoc()
{
}


BEGIN_MESSAGE_MAP(C3DContourDoc CDocument)
//{{AFX_MSG_MAP(C3DContourDoc)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// C3DContourDoc diagnostics

#ifdef _DEBUG
void C3DContourDoc::AssertValid() const
{
CDocument::AssertValid();
}

void C3DContourDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// C3DContourDoc serialization

void C3DContourDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}

/////////////////////////////////////////////////////////////////////////////
// C3DContourDoc commands

void C3DContourDoc::Init(LPCTSTR lpszPathName)
{
m_ir.Read(lpszPathName);
Settitle(_T(“Untitled.3dc“));
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1558  2008-05-26 22:06  WaferPainter3DContourDoc.cpp

     文件       1499  2002-06-12 18:27  WaferPainter3DContourDoc.h

     文件       8526  2008-05-29 20:07  WaferPainter3DContourView.cpp

     文件       2289  2003-12-07 19:00  WaferPainter3DContourView.h

     文件       1602  2003-12-07 18:56  WaferPainter3DData.h

     文件       5863  2008-05-26 22:07  WaferPainter3DGrapher.cpp

     文件       4144  2003-12-07 21:52  WaferPainter3DGrapher.h

     文件        895  2002-06-12 18:37  WaferPainteraseData.h

     文件       1244  2003-12-07 18:55  WaferPainteraseException.h

     文件       1539  2002-06-05 16:23  WaferPainterChildFrm.cpp

     文件       1397  2002-06-05 16:23  WaferPainterChildFrm.h

     文件       1626  2002-06-08 16:21  WaferPainterContourDoc.cpp

     文件       1477  2002-06-06 20:03  WaferPainterContourDoc.h

     文件       9132  2003-12-07 19:09  WaferPainterContourView.cpp

     文件       2166  2002-06-08 16:29  WaferPainterContourView.h

     文件       9238  2002-06-12 15:58  WaferPainterDib.cpp

     文件       1795  2003-12-07 21:53  WaferPainterDib.h

     文件       5013  2003-12-03 14:36  WaferPainterGLSurfaceView.cpp

     文件       2135  2002-06-20 12:05  WaferPainterGLSurfaceView.h

     文件        825  2003-12-07 18:56  WaferPainterGrapher.h

     文件       1750  2003-12-07 18:59  WaferPainterImage.h

     文件        257  2002-06-21 15:16  WaferPainterInCell1.txt

     文件        977  2003-12-07 18:53  WaferPainterInputReader.cpp

     文件        856  2002-06-05 10:35  WaferPainterInputReader.h

     文件       1112  2003-12-03 11:25  WaferPainterInterpolater.h

     文件       1920  2003-12-02 14:35  WaferPainterInverseDist.h

     文件       2458  2003-12-07 22:07  WaferPainterKriging.h

     文件       3679  2002-06-21 16:44  WaferPainterMainFrm.cpp

     文件       1515  2002-06-21 16:44  WaferPainterMainFrm.h

     文件       7662  2003-12-07 18:26  WaferPainterMatrix.h

............此处省略60个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)