种子和扫描线填充算法.zip


实现了计算机图形学中,多边形区域的扫描线填充、种子填充算法,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
“);
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

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


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           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  种子和扫描线填充算法DebugMainFrm.obj
     文件      816476  2019-10-16 19:40  种子和扫描线填充算法DebugStdAfx.obj
     文件     1371136  2019-10-16 19:40  种子和扫描线填充算法Debugvc120.idb
     文件     3936256  2019-10-16 19:40  种子和扫描线填充算法Debugvc120.pdb
     文件      230400  2012-01-01 04:36  种子和扫描线填充算法Debugvc60.idb
     文件      364544  2012-01-01 03:31  种子和扫描线填充算法Debugvc60.pdb
     文件       81920  2019-10-16 19:40  种子和扫描线填充算法Debugzhztch.exe
     文件        3109  2019-10-16 19:40  种子和扫描线填充算法Debugzhztch.log
     文件       41438  2019-10-16 19:40  种子和扫描线填充算法Debugzhztch.obj
     文件    27525120  2019-10-16 19:40  种子和扫描线填充算法Debugzhztch.pch
     文件     5196800  2019-10-16 19:40  种子和扫描线填充算法Debugzhztch.pdb
     文件        7476  2019-10-16 19:40  种子和扫描线填充算法Debugzhztch.res
     目录           0  2019-10-16 19:40  种子和扫描线填充算法Debugzhztch.tlog
     文件        3854  2019-10-16 19:40  种子和扫描线填充算法Debugzhztch.tlogcl.command.1.tlog
     文件       34238  2019-10-16 19:40  种子和扫描线填充算法Debugzhztch.tlogCL.read.1.tlog
     文件        2784  2019-10-16 19:40  种子和扫描线填充算法Debugzhztch.tlogCL.write.1.tlog
     文件        1638  2019-10-16 19:40  种子和扫描线填充算法Debugzhztch.tloglink.command.1.tlog
     文件        5362  2019-10-16 19:40  种子和扫描线填充算法Debugzhztch.tloglink.read.1.tlog
     文件        1002  2019-10-16 19:40  种子和扫描线填充算法Debugzhztch.tloglink.write.1.tlog
     文件         596  2019-10-16 19:40  种子和扫描线填充算法Debugzhztch.tlog
c.command.1.tlog
     文件        2794  2019-10-16 19:40  种子和扫描线填充算法Debugzhztch.tlog
c.read.1.tlog
     文件         238  2019-10-16 19:40  种子和扫描线填充算法Debugzhztch.tlog
c.write.1.tlog
     文件         217  2019-10-16 19:40  种子和扫描线填充算法Debugzhztch.tlogzhztch.lastbuildstate
     文件       62048  2019-10-16 19:40  种子和扫描线填充算法DebugzhztchDoc.obj
     文件       55741  2019-10-16 19:40  种子和扫描线填充算法DebugzhztchView.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个文件信息

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

发表评论

评论列表(条)