资源简介
这是一个用VC++实现的b样条曲线的生成程序,双击左键选择控制点,可以通过拖动控制点来改变曲线的形状。

代码片段和文件信息
// bezier.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “bezier.h“
#include “MainFrm.h“
#include “bezierDoc.h“
#include “bezierView.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CBezierApp
BEGIN_MESSAGE_MAP(CBezierApp CWinApp)
//{{AFX_MSG_MAP(CBezierApp)
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()
/////////////////////////////////////////////////////////////////////////////
// CBezierApp construction
CBezierApp::CBezierApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CBezierApp object
CBezierApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CBezierApp initialization
BOOL CBezierApp::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(CBezierDoc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CBezierView));
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_SHOW);
m_pMainWnd->UpdateWindow();
return TRUE;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 28552 2009-05-21 22:42 B样条\bezier.aps
文件 2274 2009-05-21 22:43 B样条\bezier.clw
文件 4209 2008-05-27 14:27 B样条\bezier.cpp
文件 4555 2008-05-27 14:27 B样条\bezier.dsp
文件 535 2008-05-27 14:27 B样条\bezier.dsw
文件 1356 2008-05-27 14:27 B样条\bezier.h
文件 58368 2009-05-21 22:47 B样条\bezier.ncb
文件 53760 2009-05-21 22:47 B样条\bezier.opt
文件 1168 2009-05-21 22:45 B样条\bezier.plg
文件 10553 2008-05-27 14:27 B样条\bezier.rc
文件 1742 2008-05-27 14:27 B样条\bezierDoc.cpp
文件 1475 2008-05-27 14:27 B样条\bezierDoc.h
文件 6946 2009-05-21 22:45 B样条\bezierView.cpp
文件 2047 2009-05-21 22:44 B样条\bezierView.h
文件 122926 2008-05-27 15:05 B样条\B样条.exe
文件 122936 2009-05-21 22:45 B样条\Debug\bezier.exe
文件 377968 2009-05-21 22:45 B样条\Debug\bezier.ilk
文件 22782 2009-05-21 22:45 B样条\Debug\bezier.obj
文件 5513416 2009-05-18 21:44 B样条\Debug\bezier.pch
文件 467968 2009-05-21 22:45 B样条\Debug\bezier.pdb
文件 7276 2009-05-18 21:44 B样条\Debug\bezier.res
文件 14573 2009-05-18 21:44 B样条\Debug\bezierDoc.obj
文件 33523 2009-05-21 22:45 B样条\Debug\bezierView.obj
文件 19753 2009-05-18 21:44 B样条\Debug\MainFrm.obj
文件 105539 2009-05-18 21:44 B样条\Debug\StdAfx.obj
文件 222208 2009-05-21 22:45 B样条\Debug\vc60.idb
文件 364544 2009-05-21 22:45 B样条\Debug\vc60.pdb
文件 2507 2008-05-27 14:27 B样条\MainFrm.cpp
文件 1581 2008-05-27 14:27 B样条\MainFrm.h
文件 4311 2008-05-27 14:27 B样条\ReadMe.txt
............此处省略13个文件信息
- 上一篇:不规则三角网生长算法
- 下一篇:人工神经网络之BP网络模拟三角函数
相关资源
- VC++ 多线程文件读写操作
- 移木块游戏,可以自编自玩,vc6.0编写
- VC++MFC小游戏实例教程(实例)+MFC类库
- VC++实现CMD命令执行与获得返回信息
- VC++基于OpenGL模拟的一个3维空间模型
- 基于VC++的SolidWorks二次开发SolidWorks
- 派克变换VC++源码(附文档)
- VC++ 串口
- VC++ 大富翁4_大富翁游戏源码
- VC++ 摄像头视频采集与回放源程序
- 转 VC++ 实现电子邮件(Email)发送
- 基于MFC的VC++仿QQ浏览器源码(雏形)
- VC++ 服务程序编写及安装与卸载
- VC++6.0番茄西红柿VAXvirsual assist X完美破
- 基于改进的fcm算法的图像分割vc++
- VC++6.0 绿色版,免安装,非常好用。
- Microsoft Visual C++ 2005 Redistributable Pack
- VC++MFC课程设计的学生成绩管理系统
- 大智慧365DLL插件设计
- VC++6.0汉化包
- VC++完整商业界面源码(再上传)
- VC++编程技术600个大型项目源码.rar
- MFC绘制Bezier曲线B样条曲线曲线拟合
- VC++实现RSA加密算法
- VC++ 中国象棋经典游戏源代码
- 郁金香VC++游戏辅助视频教程
- C语言进阶源码---基于graphics实现图书
- 摄影测量相对定向VC++程序
- VC++数字图像处理典型算法及实现
- VC++酒店客房管理系统 MFC
评论
共有 条评论