資源簡介
利用C++實現(xiàn)道格拉斯算法,簡化過程需要去找標(biāo)準(zhǔn)三角高程網(wǎng)的TXT文本數(shù)據(jù)
代碼片段和文件信息
//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//
#include?“stdafx.h“
#include?“Map.h“
#include?“MainFrm.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMainframe
IMPLEMENT_DYNCREATE(CMainframe?CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe?CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code?!
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static?UINT?indicators[]?=
{
ID_SEPARATOR???????????//?status?line?indicator
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?construction/destruction
CMainframe::CMainframe()
{
//?TODO:?add?member?initialization?code?here
}
CMainframe::~CMainframe()
{
}
int?CMainframe::OnCreate(LPCREATESTRUCT?lpCreateStruct)
{
if?(CframeWnd::OnCreate(lpCreateStruct)?==?-1)
return?-1;
if?(!m_wndToolBar.CreateEx(this?TBstyle_FLAT?WS_CHILD?|?WS_VISIBLE?|?CBRS_TOP
|?CBRS_GRIPPER?|?CBRS_TOOLTIPS?|?CBRS_FLYBY?|?CBRS_SIZE_DYNAMIC)?||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“Failed?to?create?toolbar\n“);
return?-1;??????//?fail?to?create
}
if?(!m_wndStatusBar.Create(this)?||
!m_wndStatusBar.SetIndicators(indicators
??sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed?to?create?status?bar\n“);
return?-1;??????//?fail?to?create
}
//?TODO:?Delete?these?three?lines?if?you?don‘t?want?the?toolbar?to
//??be?dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return?0;
}
BOOL?CMainframe::PreCreateWindow(CREATESTRUCT&?cs)
{
if(?!CframeWnd::PreCreateWindow(cs)?)
return?FALSE;
//?TODO:?Modify?the?Window?class?or?styles?here?by?modifying
//??the?CREATESTRUCT?cs
cs.style?=?WS_OVERLAPPED?|?WS_CAPTION?|?FWS_ADDTOtitle
|?WS_THICKframe?|?WS_SYSMENU?|?WS_MINIMIZEBOX?|?WS_MAXIMIZEBOX?|?WS_MAXIMIZE;
return?TRUE;
}
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?diagnostics
#ifdef?_DEBUG
void?CMainframe::AssertValid()?const
{
CframeWnd::AssertValid();
}
void?CMainframe::Dump(CDumpContext&?dc)?const
{
CframeWnd::Dump(dc);
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?message?handlers
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????..A..H.?????31232??2018-03-27?18:57??Map\.vs\Map\v15\.suo
?????文件???69095424??2018-03-27?18:57??Map\.vs\Map\v15\Browse.VC.db
?????文件???86704128??2018-03-27?18:49??Map\.vs\Map\v15\ipch\b2dc3c4f9e5ae0fc.ipch
?????文件??????22481??2018-03-22?20:24??Map\data.poy
?????文件??????64993??2018-03-27?15:47??Map\Debug\MainFrm.obj
?????文件?????296448??2018-03-27?18:49??Map\Debug\Map.exe
?????文件????2199948??2018-03-27?18:49??Map\Debug\Map.ilk
?????文件???????1471??2018-03-27?18:49??Map\Debug\Map.log
?????文件??????54661??2018-03-27?15:47??Map\Debug\Map.obj
?????文件???34013184??2018-03-27?15:47??Map\Debug\Map.pch
?????文件????6819840??2018-03-27?18:49??Map\Debug\Map.pdb
?????文件???????8640??2018-03-27?15:47??Map\Debug\Map.res
?????文件???????5016??2018-03-27?18:49??Map\Debug\Map.tlog\CL.command.1.tlog
?????文件??????63028??2018-03-27?18:49??Map\Debug\Map.tlog\CL.read.1.tlog
?????文件???????2184??2018-03-27?18:49??Map\Debug\Map.tlog\CL.write.1.tlog
?????文件???????1648??2018-03-27?18:49??Map\Debug\Map.tlog\li
?????文件???????6592??2018-03-27?18:49??Map\Debug\Map.tlog\li
?????文件????????752??2018-03-27?18:49??Map\Debug\Map.tlog\li
?????文件????????192??2018-03-27?18:49??Map\Debug\Map.tlog\Map.lastbuildstate
?????文件????????282??2018-03-27?15:47??Map\Debug\Map.tlog\rc.command.1.tlog
?????文件???????3198??2018-03-27?15:47??Map\Debug\Map.tlog\rc.read.1.tlog
?????文件????????122??2018-03-27?15:47??Map\Debug\Map.tlog\rc.write.1.tlog
?????文件??????83285??2018-03-27?15:47??Map\Debug\MapDoc.obj
?????文件?????354637??2018-03-27?18:49??Map\Debug\MapView.obj
?????文件???????5852??2018-03-27?15:47??Map\Debug\Polygon.obj
?????文件?????831057??2018-03-27?15:47??Map\Debug\StdAfx.obj
?????文件?????117695??2018-03-27?15:47??Map\Debug\Tin.obj
?????文件????1698816??2018-03-27?18:49??Map\Debug\vc141.idb
?????文件????4427776??2018-03-27?18:49??Map\Debug\vc141.pdb
?????文件???????2644??2018-03-22?20:24??Map\MainFrm.cpp
............此處省略44個文件信息
- 上一篇:計算機圖形學(xué)實踐教程第2版源程序
- 下一篇:vc6.0絕對純凈版
評論
共有 條評論