资源简介
计算机图形学的大实验,直线、圆、多边形画法,多边形填充算法,包括扫描线填充、四方向种子填充和种子栈填充,方法是,先画好多边形,点击多边形填充方法,选择好颜色后,点击多边形,就可自动填充。注意,种子填充法,多边形不要画太大

代码片段和文件信息
// 31509030.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “31509030.h“
#include “MainFrm.h“
#include “31509030Doc.h“
#include “31509030View.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMy31509030App
BEGIN_MESSAGE_MAP(CMy31509030App CWinApp)
//{{AFX_MSG_MAP(CMy31509030App)
ON_COMMAND(ID_APP_ABOUT OnAppAbout)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
// Standard file based document commands
ON_COMMAND(ID_FILE_NEW CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN CWinApp::OnFileOpen)
// Standard print setup command
ON_COMMAND(ID_FILE_PRINT_SETUP CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMy31509030App construction
CMy31509030App::CMy31509030App()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CMy31509030App object
CMy31509030App theApp;
/////////////////////////////////////////////////////////////////////////////
// CMy31509030App initialization
BOOL CMy31509030App::InitInstance()
{
AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
// Change the registry key under which our settings are stored.
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization.
SetRegistryKey(_T(“Local AppWizard-Generated Applications“));
LoadStdProfileSettings(); // Load standard INI file options (including MRU)
// Register the application‘s document templates. Document templates
// serve as the connection between documents frame windows and views.
CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CMy31509030Doc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CMy31509030View));
AddDocTemplate(pDocTemplate);
// Parse command line for standard shell commands DDE file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
// The one and only window has been initialized so show and update it.
m_pMainWnd->ShowWindow(SW
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 29688 2016-04-13 11:05 多边形填充(扫描线、四方向种子填充、)\31509030\31509030.aps
文件 2675 2016-04-13 11:05 多边形填充(扫描线、四方向种子填充、)\31509030\31509030.clw
文件 4273 2016-03-16 17:09 多边形填充(扫描线、四方向种子填充、)\31509030\31509030.cpp
文件 4954 2016-03-30 19:22 多边形填充(扫描线、四方向种子填充、)\31509030\31509030.dsp
文件 524 2016-03-16 17:09 多边形填充(扫描线、四方向种子填充、)\31509030\31509030.dsw
文件 1388 2016-03-16 17:09 多边形填充(扫描线、四方向种子填充、)\31509030\31509030.h
文件 148480 2016-04-13 11:05 多边形填充(扫描线、四方向种子填充、)\31509030\31509030.ncb
文件 49664 2016-04-13 11:05 多边形填充(扫描线、四方向种子填充、)\31509030\31509030.opt
文件 250 2016-04-13 11:05 多边形填充(扫描线、四方向种子填充、)\31509030\31509030.plg
文件 12519 2016-03-30 17:12 多边形填充(扫描线、四方向种子填充、)\31509030\31509030.rc
文件 1816 2016-03-16 17:09 多边形填充(扫描线、四方向种子填充、)\31509030\31509030Doc.cpp
文件 1511 2016-03-16 17:09 多边形填充(扫描线、四方向种子填充、)\31509030\31509030Doc.h
文件 20980 2016-03-30 20:30 多边形填充(扫描线、四方向种子填充、)\31509030\31509030View.cpp
文件 3686 2016-03-30 20:28 多边形填充(扫描线、四方向种子填充、)\31509030\31509030View.h
文件 507 2016-03-18 20:45 多边形填充(扫描线、四方向种子填充、)\31509030\AEL.cpp
文件 535 2016-03-18 20:45 多边形填充(扫描线、四方向种子填充、)\31509030\AEL.h
文件 500 2016-03-18 20:44 多边形填充(扫描线、四方向种子填充、)\31509030\ET.cpp
文件 534 2016-03-18 20:44 多边形填充(扫描线、四方向种子填充、)\31509030\ET.h
文件 2550 2016-03-20 17:00 多边形填充(扫描线、四方向种子填充、)\31509030\MainFrm.cpp
文件 1440 2016-03-16 20:56 多边形填充(扫描线、四方向种子填充、)\31509030\MainFrm.h
文件 4373 2016-03-16 17:09 多边形填充(扫描线、四方向种子填充、)\31509030\ReadMe.txt
文件 1078 2016-03-16 17:09 多边形填充(扫描线、四方向种子填充、)\31509030\res\31509030.ico
文件 400 2016-03-16 17:09 多边形填充(扫描线、四方向种子填充、)\31509030\res\31509030.rc2
文件 1078 2016-03-16 17:09 多边形填充(扫描线、四方向种子填充、)\31509030\res\31509030Doc.ico
文件 1078 2016-03-23 10:53 多边形填充(扫描线、四方向种子填充、)\31509030\res\Toolbar.bmp
文件 1065 2016-03-30 17:12 多边形填充(扫描线、四方向种子填充、)\31509030\resource.h
文件 807 2016-03-30 19:20 多边形填充(扫描线、四方向种子填充、)\31509030\Stack.cpp
文件 808 2016-03-30 19:19 多边形填充(扫描线、四方向种子填充、)\31509030\Stack.h
文件 210 2016-03-16 17:09 多边形填充(扫描线、四方向种子填充、)\31509030\StdAfx.cpp
文件 1054 2016-03-16 17:09 多边形填充(扫描线、四方向种子填充、)\31509030\StdAfx.h
............此处省略6个文件信息
相关资源
- 上海交大计算机图形学课程视频31集
- 计算机图形学 边填充算法实现代码
- 计算机图形学课设 画板
- 简易绘图程序(计算机图形学课程设
- 计算机图形学(openGL)代码
- 图形学集成程序dda、中点算法、多边
- 计算机图形实验(哈尔滨工程大学)
- 计算机图形学-全.rar
- 7-Uath茶壶
- 计算机图形学考试试卷试题6套含3套的
- GPU精粹1-中文版.pdf《GPU精粹:实时图形
- 计算机图形学 基于3D图形开发技术
- 3D游戏与计算机图形学中的数学方法
- 虚拟现实技术文献英文
- 华南理工大学软件学院计算机图形学
- GPU+编程与CG+语言之阳春白雪下里巴人
- 计算机图形学实验 opengl实现太阳系运
- 中国科学技术大学计算机图形学大作
- 计算机图形学的实习
- 计算机图形大作业opengl-物联网.rar
- 计算机图形学 z-buffer
- 计算机图形学经典论文计算机图形学
- 计算机图形学几何工具算法详解
- 广东工业大学 各年 计算机图形学最全
- 交互式计算机图形学 基于WEBGL的自顶
- 清华大学版计算机图形学
- 计算机图形学 边界定义的8连通区域
- 实验一 OpenGL 程序设计基础
- 计算机图形学与几何造型导论 英文版
- 计算机图形学基础教程.docx
评论
共有 条评论