资源简介
直线生成算法 圆(椭圆)的生成算法、区域填充算法
裁剪算法、曲线、曲面生成算法

代码片段和文件信息
// CG.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “CG.h“
#include “MainFrm.h“
#include “CGDoc.h“
#include “CGView.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CCGApp
BEGIN_MESSAGE_MAP(CCGApp CWinApp)
ON_COMMAND(ID_APP_ABOUT &CCGApp::OnAppAbout)
// 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()
// CCGApp construction
CCGApp::CCGApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
// The one and only CCGApp object
CCGApp theApp;
// CCGApp initialization
BOOL CCGApp::InitInstance()
{
// InitCommonControlsEx() is required on Windows XP if an application
// manifest specifies use of ComCtl32.dll version 6 or later to enable
// visual styles. Otherwise any window creation will fail.
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
// Set this to include all the common control classes you want to use
// in your application.
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);
CWinApp::InitInstance();
// Initialize OLE libraries
if (!AfxOleInit())
{
AfxMessageBox(IDP_OLE_INIT_FAILED);
return FALSE;
}
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
// 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(4); // 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(CCGDoc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CCGView));
if (!pDocTemplate)
return FALSE;
AddDocTemplate(pDocTemplate);
// Parse command line for standard shell commands DDE file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
// Dispatch commands specified on the command line. Will return FALSE if
// app was launched with /RegServer /Register /Unregserver or /Unregister.
if (!ProcessShellCommand(cmdInfo))
return FALSE;
// The one and only window has been initialized so show and update it
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
// call DragAcceptFiles only if there‘s a suffix
// I
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 55456 2009-05-13 16:58 CG\CG\CG.APS
文件 3740 2002-01-01 00:15 CG\CG\CG.cpp
文件 501 2002-01-01 00:15 CG\CG\CG.h
文件 13933 2009-05-10 23:16 CG\CG\CG.rc
文件 5883 2009-06-21 22:59 CG\CG\CG.vcproj
文件 1427 2002-01-01 02:28 CG\CG\CG.vcproj.08F13BED0882461.Administrator.user
文件 5819 2002-01-01 00:44 CG\CG\CG.vcproj.8.00.old
文件 1405 2009-06-18 17:17 CG\CG\CG.vcproj.A052.Admin.user
文件 1405 2009-05-21 16:23 CG\CG\CG.vcproj.A053.Admin.user
文件 1411 2009-06-22 00:29 CG\CG\CG.vcproj.qkkk-PC.qkkk.user
文件 1405 2007-05-21 10:36 CG\CG\CG.vcproj.THIN.Administrator.user
文件 1405 2009-05-10 23:25 CG\CG\CG.vcproj.THIN.LinZG.user
文件 1411 2009-05-06 09:54 CG\CG\CG.vcproj.XVISION.Administrator.user
文件 1037 2002-01-01 00:58 CG\CG\CGDoc.cpp
文件 591 2002-01-01 00:58 CG\CG\CGDoc.h
文件 30871 2009-06-18 12:45 CG\CG\CGView.cpp
文件 1795 2009-05-10 23:22 CG\CG\CGView.h
文件 1949 2002-01-01 00:15 CG\CG\MainFrm.cpp
文件 739 2002-01-01 00:15 CG\CG\MainFrm.h
文件 4935 2002-01-01 00:15 CG\CG\ReadMe.txt
文件 1379 2009-05-10 23:11 CG\CG\resource.h
文件 202 2002-01-01 00:15 CG\CG\stdafx.cpp
文件 2864 2002-01-01 00:15 CG\CG\stdafx.h
..A..H. 25088 2009-06-22 00:29 CG\CG.suo
..A..H. 24064 2009-06-18 17:17 CG\CG.suo.old
目录 0 2010-04-29 09:51 CG\CG
目录 0 2010-04-29 09:52 CG
----------- --------- ---------- ----- ----
190715 27
............此处省略0个文件信息
- 上一篇:基于数字图像处理的条形码识别方法
- 下一篇:UPX自动脱壳工具2019测试成功
相关资源
- 警察抓小偷游戏 x86版
- 西工大计算机操作系统复习问题+回答
- 矩阵论非扫描版.程云鹏,张凯院第三
- 西北工业大学自动化复试946资料
- 计算机图形学实验 opengl实现太阳系运
- 西工大计算机网络实验
- 西工大计算机网络实验一题目及实验
- 西工大信号与系统全部实验代码
- 西北工业大学信号与系统实验课实验
- 广东工业大学计算机图形学实验.rar
- 房价问题预测数学模型(西工大2011建
- 图形学实验--多边形的扫描转换
- 西工大 信号与系统期末考试历年考题
- 西北工业大学软件学院电子服务方向
- opengl图形学实验七 不同的光照渲染
- 西工大矩阵论例题
- 信号检测与估值 田琬逸 西工大
- 西北工业大学软件学院数据库设计试
- 西北工业大学软件学院软件开发综合
- 西北工业大学2019计算机操作系统理论
- 数字电路与数字电子技术课后答案
- 山大图形学实验—opengl构建球体
- 西工大Latex论文模板(含使用说明)
- 西工大面向对象设计与编程实验
- 西工大模电实验报告
- 西北工业大学软件工程WebServices实验报
- 2018年西工大946复试真题
- 西北工业大学流体力学课件
- 立方体线框模型透视投影 计算机图形
- 计算机图形学实验
评论
共有 条评论