資源簡介
根據(jù)計(jì)算機(jī)圖形學(xué)描算的有效邊填充算法,來實(shí)現(xiàn),使用vs2013編寫。
關(guān)鍵函數(shù)用純C實(shí)現(xiàn),附加本人對此算法的一些理解
代碼片段和文件信息
//?AET_FILL.cpp?:?定義應(yīng)用程序的類行為。
//
#include?“stdafx.h“
#include?“AET_FILL.h“
#include?“AET_FILLDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif
//?CAET_FILLApp
BEGIN_MESSAGE_MAP(CAET_FILLApp?CWinApp)
ON_COMMAND(ID_HELP?&CWinApp::onhelp)
END_MESSAGE_MAP()
//?CAET_FILLApp?構(gòu)造
CAET_FILLApp::CAET_FILLApp()
{
//?支持重新啟動管理器
m_dwRestartManagerSupportFlags?=?AFX_RESTART_MANAGER_SUPPORT_RESTART;
//?TODO:??在此處添加構(gòu)造代碼,
//?將所有重要的初始化放置在?InitInstance?中
}
//?唯一的一個?CAET_FILLApp?對象
CAET_FILLApp?theApp;
//?CAET_FILLApp?初始化
BOOL?CAET_FILLApp::InitInstance()
{
//?如果一個運(yùn)行在?Windows?XP?上的應(yīng)用程序清單指定要
//?使用?ComCtl32.dll?版本?6?或更高版本來啟用可視化方式,
//則需要?InitCommonControlsEx()。??否則,將無法創(chuàng)建窗口。
INITCOMMONCONTROLSEX?InitCtrls;
InitCtrls.dwSize?=?sizeof(InitCtrls);
//?將它設(shè)置為包括所有要在應(yīng)用程序中使用的
//?公共控件類。
InitCtrls.dwICC?=?ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);
CWinApp::InitInstance();
AfxEnableControlContainer();
//?創(chuàng)建?shell?管理器,以防對話框包含
//?任何?shell?樹視圖控件或?shell?列表視圖控件。
CShellManager?*pShellManager?=?new?CShellManager;
//?激活“Windows?Native”視覺管理器,以便在?MFC?控件中啟用主題
CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(CMFCVisualManagerWindows));
//?標(biāo)準(zhǔn)初始化
//?如果未使用這些功能并希望減小
//?最終可執(zhí)行文件的大小,則應(yīng)移除下列
//?不需要的特定初始化例程
//?更改用于存儲設(shè)置的注冊表項(xiàng)
//?TODO:??應(yīng)適當(dāng)修改該字符串,
//?例如修改為公司或組織名
SetRegistryKey(_T(“應(yīng)用程序向?qū)傻谋镜貞?yīng)用程序“));
CAET_FILLDlg?dlg;
m_pMainWnd?=?&dlg;
INT_PTR?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:??在此放置處理何時用
//??“確定”來關(guān)閉對話框的代碼
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:??在此放置處理何時用
//??“取消”來關(guān)閉對話框的代碼
}
else?if?(nResponse?==?-1)
{
TRACE(traceAppMsg?0?“警告:?對話框創(chuàng)建失敗,應(yīng)用程序?qū)⒁馔饨K止。\n“);
TRACE(traceAppMsg?0?“警告:?如果您在對話框上使用?MFC?控件,則無法?#define?_AFX_NO_MFC_CONTROLS_IN_DIALOGS。\n“);
}
//?刪除上面創(chuàng)建的?shell?管理器。
if?(pShellManager?!=?NULL)
{
delete?pShellManager;
}
//?由于對話框已關(guān)閉,所以將返回?FALSE?以便退出應(yīng)用程序,
//??而不是啟動應(yīng)用程序的消息泵。
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????108436??2016-04-11?16:56??有效邊多邊形填充算法\AET_FILL\AET_FILL\AET_FILL.APS
?????文件???????2400??2016-04-09?14:09??有效邊多邊形填充算法\AET_FILL\AET_FILL\AET_FILL.cpp
?????文件????????455??2016-04-09?14:09??有效邊多邊形填充算法\AET_FILL\AET_FILL\AET_FILL.h
?????文件??????10482??2016-04-11?16:56??有效邊多邊形填充算法\AET_FILL\AET_FILL\AET_FILL.rc
?????文件???????6148??2016-04-09?14:16??有效邊多邊形填充算法\AET_FILL\AET_FILL\AET_FILL.vcxproj
?????文件???????2062??2016-04-09?14:09??有效邊多邊形填充算法\AET_FILL\AET_FILL\AET_FILL.vcxproj.filters
?????文件???????7772??2016-04-12?16:34??有效邊多邊形填充算法\AET_FILL\AET_FILL\AET_FILLDlg.cpp
?????文件????????654??2016-04-09?14:16??有效邊多邊形填充算法\AET_FILL\AET_FILL\AET_FILLDlg.h
?????文件???????1558??2016-04-12?16:34??有效邊多邊形填充算法\AET_FILL\AET_FILL\Debug\AET_FILL.log
?????文件??????60150??2016-04-09?14:16??有效邊多邊形填充算法\AET_FILL\AET_FILL\Debug\AET_FILL.obj
?????文件???43253760??2016-04-09?14:16??有效邊多邊形填充算法\AET_FILL\AET_FILL\Debug\AET_FILL.pch
?????文件??????69588??2016-04-11?16:59??有效邊多邊形填充算法\AET_FILL\AET_FILL\Debug\AET_FILL.res
?????文件????????174??2016-04-12?16:34??有效邊多邊形填充算法\AET_FILL\AET_FILL\Debug\AET_FILL.tlog\AET_FILL.lastbuildstate
?????文件???????2118??2016-04-12?16:34??有效邊多邊形填充算法\AET_FILL\AET_FILL\Debug\AET_FILL.tlog\cl.command.1.tlog
?????文件??????72090??2016-04-12?16:34??有效邊多邊形填充算法\AET_FILL\AET_FILL\Debug\AET_FILL.tlog\CL.read.1.tlog
?????文件???????1758??2016-04-12?16:34??有效邊多邊形填充算法\AET_FILL\AET_FILL\Debug\AET_FILL.tlog\CL.write.1.tlog
?????文件???????1488??2016-04-12?16:34??有效邊多邊形填充算法\AET_FILL\AET_FILL\Debug\AET_FILL.tlog\li
?????文件???????5206??2016-04-12?16:34??有效邊多邊形填充算法\AET_FILL\AET_FILL\Debug\AET_FILL.tlog\li
?????文件????????702??2016-04-12?16:34??有效邊多邊形填充算法\AET_FILL\AET_FILL\Debug\AET_FILL.tlog\li
?????文件????????600??2016-04-11?16:59??有效邊多邊形填充算法\AET_FILL\AET_FILL\Debug\AET_FILL.tlog\rc.command.1.tlog
?????文件???????2724??2016-04-11?16:59??有效邊多邊形填充算法\AET_FILL\AET_FILL\Debug\AET_FILL.tlog\rc.read.1.tlog
?????文件????????206??2016-04-11?16:59??有效邊多邊形填充算法\AET_FILL\AET_FILL\Debug\AET_FILL.tlog\rc.write.1.tlog
?????文件??????60698??2016-04-12?16:34??有效邊多邊形填充算法\AET_FILL\AET_FILL\Debug\AET_FILLDlg.obj
?????文件?????909695??2016-04-09?14:16??有效邊多邊形填充算法\AET_FILL\AET_FILL\Debug\stdafx.obj
?????文件????2272256??2016-04-12?16:34??有效邊多邊形填充算法\AET_FILL\AET_FILL\Debug\vc120.idb
?????文件????6647808??2016-04-12?16:34??有效邊多邊形填充算法\AET_FILL\AET_FILL\Debug\vc120.pdb
?????文件???????4055??2016-04-09?14:09??有效邊多邊形填充算法\AET_FILL\AET_FILL\ReadMe.txt
?????文件??????67777??2013-07-22?01:18??有效邊多邊形填充算法\AET_FILL\AET_FILL\res\AET_FILL.ico
?????文件????????672??2016-04-09?14:09??有效邊多邊形填充算法\AET_FILL\AET_FILL\res\AET_FILL.rc2
?????文件???????1234??2016-04-09?14:11??有效邊多邊形填充算法\AET_FILL\AET_FILL\resource.h
............此處省略15個文件信息
- 上一篇:ucos-II在vs2010上移植成功
- 下一篇:1stopt 5.1
評論
共有 條評論