-
大小: 1.86MB文件類型: .rar金幣: 2下載: 0 次發(fā)布日期: 2023-09-30
- 語言: C/C++
- 標(biāo)簽: 掃描轉(zhuǎn)換??
資源簡介
用VC++完成的多邊形掃描轉(zhuǎn)換算法,對多邊形內(nèi)部節(jié)點(diǎn)進(jìn)行掃描

代碼片段和文件信息
//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//
#include?“stdafx.h“
#include?“polygon.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.cx?=?800;
cs.cy?=?800;
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í)間???名稱
-----------?---------??----------?-----??----
?????文件??????19872??2012-09-04?18:56??polygon\Debug\MainFrm.obj
?????文件?????122941??2012-09-06?19:45??polygon\Debug\polygon.exe
?????文件?????382764??2012-09-06?19:45??polygon\Debug\polygon.ilk
?????文件??????22960??2012-09-06?19:40??polygon\Debug\polygon.obj
?????文件????5494640??2012-09-04?18:55??polygon\Debug\polygon.pch
?????文件?????476160??2012-09-06?19:45??polygon\Debug\polygon.pdb
?????文件???????7288??2012-09-04?18:54??polygon\Debug\polygon.res
?????文件??????14691??2012-09-04?18:55??polygon\Debug\polygonDoc.obj
?????文件??????28452??2012-09-06?19:45??polygon\Debug\polygonView.obj
?????文件?????105563??2012-09-04?18:55??polygon\Debug\StdAfx.obj
?????文件?????222208??2012-09-06?19:45??polygon\Debug\vc60.idb
?????文件?????372736??2012-09-06?19:45??polygon\Debug\vc60.pdb
?????文件???????2538??2012-09-04?18:56??polygon\MainFrm.cpp
?????文件???????1581??2012-09-04?18:31??polygon\MainFrm.h
?????文件???????1970??2012-09-04?18:31??polygon\polygon.clw
?????文件???????4227??2012-09-04?18:31??polygon\polygon.cpp
?????文件???????4576??2012-09-04?18:31??polygon\polygon.dsp
?????文件????????522??2012-09-04?18:31??polygon\polygon.dsw
?????文件???????1367??2012-09-04?18:31??polygon\polygon.h
?????文件??????58368??2012-09-06?19:46??polygon\polygon.ncb
?????文件??????53760??2012-09-06?19:46??polygon\polygon.opt
?????文件???????1799??2012-09-06?19:45??polygon\polygon.plg
?????文件??????10567??2012-09-04?18:31??polygon\polygon.rc
?????文件???????1762??2012-09-04?18:31??polygon\polygonDoc.cpp
?????文件???????1486??2012-09-04?18:31??polygon\polygonDoc.h
?????文件???????6783??2012-09-06?19:45??polygon\polygonView.cpp
?????文件???????2041??2012-09-06?19:40??polygon\polygonView.h
?????文件???????4335??2012-09-04?18:31??polygon\ReadMe.txt
?????文件???????1078??2012-09-04?18:31??polygon\res\polygon.ico
?????文件????????399??2012-09-04?18:31??polygon\res\polygon.rc2
............此處省略11個(gè)文件信息
- 上一篇:超級瑪麗增強(qiáng)版源碼
- 下一篇:遙感圖像融合C++代碼
評論
共有 條評論