资源简介
离散点构建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个文件信息
相关资源
- 易语言播放器组件无缝转换(Demo2.e)
- cc2541 BLE DEMO
- Reparatory Effects of Nicotine on NMDA Recepto
- LenovoTinkPad; Marker 5.01
- Rtx51_tiny_RTOS中文版.pdf
- porting.RTEMS移植指南.双语.V20131224.pdf
- stm32f030 IAP Demo(原创)
-
开源tinyxm
l - 一个测试报告的模板,有点用
- 代码客:G-TcpServer(IOCP) 1.0 正式版及
- CListCtrlExDemo.rar
- 串口操作类(justinio)
- 多普达USB Modem驱动(适用于818、828、
- SentinelRMSToolkitv2.0.rar
- Synthesis Characterization and in vitro Antitu
- In vitro screening of lactobacilli with antago
- powerpaste-4.0.1-317(兼容最新tinymce5.2.
- 易语言-海康威视SDK-DEMO
- ssm框架登录注册demo
- RK3399 DEMO官方原厂 PCB 原理图以及周边
- MQTT推送Demo
- 微信小程序驾照考试题库demo完整
- redisson的demo
- bootstrap demo 源码大全
- springboot+rabbitmq项目demo(亲测可正常运
- 美松打印机SDK MsPrintSDK-Demo-DLL-CShare-
- 基于pytorch的UNet_demo实现及训练自己的
- 百度API车牌识别DEMO.rar
- stm32f105-usart-DMA收发demo
- Continuum of positive solutions for discrete &
川公网安备 51152502000135号
评论
共有 条评论