資源簡介
離散點構建TIN,TIN生成DEM,算法還可以,需要繼續優化(只是程序,無源碼)

代碼片段和文件信息
//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//
#include?“T_point.h“
#include?“stdafx.h“
#include?“tin64_14_92.h“
#include?
#include?
#include?“MainFrm.h“
#include?“PATHdlg.h“
using?namespace?std;
extern?CFile?file;
#include?“T_TIN.h“
#include?“tin64_14_92Doc.h“
#include?“tin64_14_92View.h“
CPATHdlg?path;
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMainframe
bool?point;
bool?ok;
IMPLEMENT_DYNCREATE(CMainframe?CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe?CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
ON_WM_CREATE()
ON_COMMAND(ID_PATH?OnPath)
//}}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
void?CMainframe::OnPath()?
{
T_TIN?tin;
if(path.DoModal()==IDOK)
{??
tin.createpoint(0);
//?
//? fstream?fp(“dlg.m_pathshow“ios::in);
//? string?str;
//? fp>>str;
//? cptr*?cpoint?=?new?cptr[9897];
//? for?(int?i=0;i<9897;i++)
//? {
//? ? fp>>cpoint[i].x>>cpoint[i].y>>cpoint[i].z;
//? T_point?point;
//?
//? poi
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????9109??2010-01-16?21:33??tin64_14_92\113.txt
?????文件??????36072??2010-01-17?18:16??tin64_14_92\Debug\MainFrm.obj
?????文件?????295603??2010-01-17?18:16??tin64_14_92\Debug\MainFrm.sbr
?????文件??????16045??2010-01-17?18:20??tin64_14_92\Debug\PATHdlg.obj
?????文件???????2385??2010-01-17?18:20??tin64_14_92\Debug\PATHdlg.sbr
?????文件?????105510??2010-01-16?21:01??tin64_14_92\Debug\StdAfx.obj
?????文件????1374844??2010-01-16?21:01??tin64_14_92\Debug\StdAfx.sbr
?????文件????4244480??2010-01-16?21:43??tin64_14_92\Debug\tin64_14_92.bsc
?????文件?????163900??2010-01-17?21:29??tin64_14_92\Debug\tin64_14_92.exe
?????文件?????403580??2010-01-17?21:29??tin64_14_92\Debug\tin64_14_92.ilk
?????文件??????28835??2010-01-16?21:01??tin64_14_92\Debug\tin64_14_92.obj
?????文件????6878152??2010-01-16?21:01??tin64_14_92\Debug\tin64_14_92.pch
?????文件?????664576??2010-01-17?21:29??tin64_14_92\Debug\tin64_14_92.pdb
?????文件???????7720??2010-01-17?18:36??tin64_14_92\Debug\tin64_14_92.res
?????文件??????????0??2010-01-16?21:01??tin64_14_92\Debug\tin64_14_92.sbr
?????文件??????14847??2010-01-16?21:01??tin64_14_92\Debug\tin64_14_92Doc.obj
?????文件??????????0??2010-01-16?21:01??tin64_14_92\Debug\tin64_14_92Doc.sbr
?????文件??????34559??2010-01-17?18:29??tin64_14_92\Debug\tin64_14_92View.obj
?????文件?????119726??2010-01-17?18:29??tin64_14_92\Debug\tin64_14_92View.sbr
?????文件???????5634??2010-01-16?21:01??tin64_14_92\Debug\T_line.obj
?????文件??????????0??2010-01-16?21:01??tin64_14_92\Debug\T_line.sbr
?????文件???????3957??2010-01-16?21:01??tin64_14_92\Debug\T_point.obj
?????文件??????????0??2010-01-16?21:01??tin64_14_92\Debug\T_point.sbr
?????文件?????139538??2010-01-17?21:29??tin64_14_92\Debug\T_TIN.obj
?????文件?????346014??2010-01-17?21:29??tin64_14_92\Debug\T_TIN.sbr
?????文件???????3878??2010-01-16?21:01??tin64_14_92\Debug\T_tri.obj
?????文件??????????0??2010-01-16?21:01??tin64_14_92\Debug\T_tri.sbr
?????文件?????279552??2010-01-17?21:29??tin64_14_92\Debug\vc60.idb
?????文件?????479232??2010-01-17?21:29??tin64_14_92\Debug\vc60.pdb
?????文件?????435468??2010-01-16?19:30??tin64_14_92\facePoints.xyztri
............此處省略46個文件信息
評論
共有 條評論