道格拉斯算法C++实现


利用C++实现道格拉斯算法,简化过程需要去找标准三角高程网的TXT文本数据
资源截图
代码片段和文件信息
// 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
“);
return -1;      // fail to create
}

if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators
  sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed to create status bar
“);
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.vsMapv15.suo

     文件   69095424  2018-03-27 18:57  Map.vsMapv15Browse.VC.db

     文件   86704128  2018-03-27 18:49  Map.vsMapv15ipch2dc3c4f9e5ae0fc.ipch

     文件      22481  2018-03-22 20:24  Mapdata.poy

     文件      64993  2018-03-27 15:47  MapDebugMainFrm.obj

     文件     296448  2018-03-27 18:49  MapDebugMap.exe

     文件    2199948  2018-03-27 18:49  MapDebugMap.ilk

     文件       1471  2018-03-27 18:49  MapDebugMap.log

     文件      54661  2018-03-27 15:47  MapDebugMap.obj

     文件   34013184  2018-03-27 15:47  MapDebugMap.pch

     文件    6819840  2018-03-27 18:49  MapDebugMap.pdb

     文件       8640  2018-03-27 15:47  MapDebugMap.res

     文件       5016  2018-03-27 18:49  MapDebugMap.tlogCL.command.1.tlog

     文件      63028  2018-03-27 18:49  MapDebugMap.tlogCL.read.1.tlog

     文件       2184  2018-03-27 18:49  MapDebugMap.tlogCL.write.1.tlog

     文件       1648  2018-03-27 18:49  MapDebugMap.tloglink.command.1.tlog

     文件       6592  2018-03-27 18:49  MapDebugMap.tloglink.read.1.tlog

     文件        752  2018-03-27 18:49  MapDebugMap.tloglink.write.1.tlog

     文件        192  2018-03-27 18:49  MapDebugMap.tlogMap.lastbuildstate

     文件        282  2018-03-27 15:47  MapDebugMap.tlog
c.command.1.tlog

     文件       3198  2018-03-27 15:47  MapDebugMap.tlog
c.read.1.tlog

     文件        122  2018-03-27 15:47  MapDebugMap.tlog
c.write.1.tlog

     文件      83285  2018-03-27 15:47  MapDebugMapDoc.obj

     文件     354637  2018-03-27 18:49  MapDebugMapView.obj

     文件       5852  2018-03-27 15:47  MapDebugPolygon.obj

     文件     831057  2018-03-27 15:47  MapDebugStdAfx.obj

     文件     117695  2018-03-27 15:47  MapDebugTin.obj

     文件    1698816  2018-03-27 18:49  MapDebugvc141.idb

     文件    4427776  2018-03-27 18:49  MapDebugvc141.pdb

     文件       2644  2018-03-22 20:24  MapMainFrm.cpp

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

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

发表评论

评论列表(条)