-
大小: 130KB文件類(lèi)型: .rar金幣: 2下載: 0 次發(fā)布日期: 2021-05-25
- 語(yǔ)言: 其他
- 標(biāo)簽:
資源簡(jiǎn)介
TIN三角型網(wǎng)格產(chǎn)生算法源碼,具體使用“三角形由內(nèi)而外生成”算法實(shí)現(xiàn)的TIN網(wǎng)格形成,運(yùn)算量小,Tin三角網(wǎng)產(chǎn)生迅捷準(zhǔn)確。

代碼片段和文件信息
//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//
#include?“stdafx.h“
#include?“tin2.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
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
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄??????????0??2009-09-21?21:16??delauney_Tin\Debug
?????文件???????2505??2003-10-29?14:15??delauney_Tin\MainFrm.cpp
?????文件???????1581??2003-10-29?14:15??delauney_Tin\MainFrm.h
?????文件???????1379??2008-11-04?12:02??delauney_Tin\PointInfo_123
?????文件???????4263??2003-10-29?14:15??delauney_Tin\ReadMe.txt
????..A.SH.??????6656??2006-07-15?22:27??delauney_Tin\res\Thumbs.db
?????文件???????1078??2003-10-29?14:15??delauney_Tin\res\tin2.ico
?????文件????????396??2003-10-29?14:15??delauney_Tin\res\tin2.rc2
?????文件???????1078??2003-10-29?14:15??delauney_Tin\res\tin2Doc.ico
?????文件???????1078??2003-10-29?14:15??delauney_Tin\res\Toolbar.bmp
?????目錄??????????0??2008-10-17?10:43??delauney_Tin\res
?????文件????????779??2003-10-29?14:35??delauney_Tin\Resource.h
?????文件????????206??2003-10-29?14:15??delauney_Tin\StdAfx.cpp
?????文件???????1054??2003-10-29?14:15??delauney_Tin\StdAfx.h
?????文件??????29040??2008-11-05?22:52??delauney_Tin\tin2.aps
?????文件???????2318??2009-09-21?21:16??delauney_Tin\tin2.clw
?????文件???????4173??2003-10-29?14:15??delauney_Tin\tin2.cpp
?????文件???????5127??2008-11-05?20:38??delauney_Tin\tin2.dsp
?????文件????????533??2003-10-29?14:15??delauney_Tin\tin2.dsw
?????文件???????1334??2003-10-29?14:15??delauney_Tin\tin2.h
?????文件?????541696??2009-09-21?21:16??delauney_Tin\tin2.ncb
?????文件??????57856??2009-09-21?21:16??delauney_Tin\tin2.opt
?????文件???????1561??2009-09-21?21:16??delauney_Tin\tin2.plg
?????文件??????11833??2005-12-25?12:03??delauney_Tin\tin2.rc
?????文件???????1702??2003-10-29?14:15??delauney_Tin\tin2Doc.cpp
?????文件???????1453??2003-10-29?14:15??delauney_Tin\tin2Doc.h
?????文件???????3497??2008-11-05?23:57??delauney_Tin\tin2View.cpp
?????文件???????2006??2008-10-17?11:11??delauney_Tin\tin2View.h
?????文件??????39090??2009-09-21?21:16??delauney_Tin\TriInfo
?????文件???????4328??2008-11-04?12:10??delauney_Tin\TriInfo_P122
............此處省略13個(gè)文件信息
評(píng)論
共有 條評(píng)論