資源簡(jiǎn)介
實(shí)現(xiàn)了計(jì)算機(jī)圖形學(xué)中,多邊形區(qū)域的掃描線填充、種子填充算法,MFC VC++
代碼片段和文件信息
//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//
#include?“stdafx.h“
#include?“zhztch.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
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í)間???名稱(chēng)
-----------?---------??----------?-----??----
?????目錄???????????0??2019-10-16?19:43??種子和掃描線填充算法\
?????目錄???????????0??2019-10-16?19:40??種子和掃描線填充算法\Backup\
?????目錄???????????0??2019-10-16?19:40??種子和掃描線填充算法\Debug\
?????文件???????44597??2019-10-16?19:40??種子和掃描線填充算法\Debug\MainFrm.obj
?????文件??????816476??2019-10-16?19:40??種子和掃描線填充算法\Debug\StdAfx.obj
?????文件?????1371136??2019-10-16?19:40??種子和掃描線填充算法\Debug\vc120.idb
?????文件?????3936256??2019-10-16?19:40??種子和掃描線填充算法\Debug\vc120.pdb
?????文件??????230400??2012-01-01?04:36??種子和掃描線填充算法\Debug\vc60.idb
?????文件??????364544??2012-01-01?03:31??種子和掃描線填充算法\Debug\vc60.pdb
?????文件???????81920??2019-10-16?19:40??種子和掃描線填充算法\Debug\zhztch.exe
?????文件????????3109??2019-10-16?19:40??種子和掃描線填充算法\Debug\zhztch.log
?????文件???????41438??2019-10-16?19:40??種子和掃描線填充算法\Debug\zhztch.obj
?????文件????27525120??2019-10-16?19:40??種子和掃描線填充算法\Debug\zhztch.pch
?????文件?????5196800??2019-10-16?19:40??種子和掃描線填充算法\Debug\zhztch.pdb
?????文件????????7476??2019-10-16?19:40??種子和掃描線填充算法\Debug\zhztch.res
?????目錄???????????0??2019-10-16?19:40??種子和掃描線填充算法\Debug\zhztch.tlog\
?????文件????????3854??2019-10-16?19:40??種子和掃描線填充算法\Debug\zhztch.tlog\cl.command.1.tlog
?????文件???????34238??2019-10-16?19:40??種子和掃描線填充算法\Debug\zhztch.tlog\CL.read.1.tlog
?????文件????????2784??2019-10-16?19:40??種子和掃描線填充算法\Debug\zhztch.tlog\CL.write.1.tlog
?????文件????????1638??2019-10-16?19:40??種子和掃描線填充算法\Debug\zhztch.tlog\li
?????文件????????5362??2019-10-16?19:40??種子和掃描線填充算法\Debug\zhztch.tlog\li
?????文件????????1002??2019-10-16?19:40??種子和掃描線填充算法\Debug\zhztch.tlog\li
?????文件?????????596??2019-10-16?19:40??種子和掃描線填充算法\Debug\zhztch.tlog\rc.command.1.tlog
?????文件????????2794??2019-10-16?19:40??種子和掃描線填充算法\Debug\zhztch.tlog\rc.read.1.tlog
?????文件?????????238??2019-10-16?19:40??種子和掃描線填充算法\Debug\zhztch.tlog\rc.write.1.tlog
?????文件?????????217??2019-10-16?19:40??種子和掃描線填充算法\Debug\zhztch.tlog\zhztch.lastbuildstate
?????文件???????62048??2019-10-16?19:40??種子和掃描線填充算法\Debug\zhztchDoc.obj
?????文件???????55741??2019-10-16?19:40??種子和掃描線填充算法\Debug\zhztchView.obj
?????文件????????2507??2007-06-25?15:50??種子和掃描線填充算法\MainFrm.cpp
?????文件????????1581??2007-06-25?15:50??種子和掃描線填充算法\MainFrm.h
?????文件????????4311??2007-06-25?15:50??種子和掃描線填充算法\ReadMe.txt
............此處省略26個(gè)文件信息
評(píng)論
共有 條評(píng)論