资源简介
应用c++ MFC实现双三次B样条曲面算法,配套清华大学出版社的《计算机图形学基础教程》。

代码片段和文件信息
// MainFrm.cpp : implementation of the CMainframe class
//
#include “stdafx.h“
#include “Test.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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2505 2006-11-30 11:00 案例21-双三次B样条曲面算法\MainFrm.cpp
文件 1581 2006-11-30 11:00 案例21-双三次B样条曲面算法\MainFrm.h
文件 503 2007-03-02 15:50 案例21-双三次B样条曲面算法\P2D.cpp
文件 488 2007-03-02 15:51 案例21-双三次B样条曲面算法\P2D.h
文件 503 2007-03-02 15:37 案例21-双三次B样条曲面算法\P3D.cpp
文件 500 2007-03-02 15:38 案例21-双三次B样条曲面算法\P3D.h
文件 4263 2006-11-30 11:00 案例21-双三次B样条曲面算法\ReadMe.txt
文件 10134 2006-11-30 11:06 案例21-双三次B样条曲面算法\RES\APP.ICO
文件 766 2006-11-30 11:06 案例21-双三次B样条曲面算法\RES\DRAW.ICO
文件 4710 2006-11-30 11:06 案例21-双三次B样条曲面算法\RES\EXIT.ICO
文件 3638 2006-11-30 11:06 案例21-双三次B样条曲面算法\RES\Help.ico
文件 202556 2007-12-18 20:11 案例21-双三次B样条曲面算法\RES\kld.bmp
文件 766 2007-03-04 16:36 案例21-双三次B样条曲面算法\RES\Misc03.ico
文件 1078 2006-12-01 08:47 案例21-双三次B样条曲面算法\RES\Test.ico
文件 396 2006-11-30 11:00 案例21-双三次B样条曲面算法\RES\Test.rc2
文件 1078 2006-11-30 11:00 案例21-双三次B样条曲面算法\RES\TestDoc.ico
文件 2166 2007-03-04 16:37 案例21-双三次B样条曲面算法\RES\Toolbar.bmp
文件 1096 2007-12-18 20:11 案例21-双三次B样条曲面算法\resource.h
文件 206 2006-11-30 11:00 案例21-双三次B样条曲面算法\StdAfx.cpp
文件 1054 2006-11-30 11:00 案例21-双三次B样条曲面算法\StdAfx.h
文件 254048 2008-06-28 11:21 案例21-双三次B样条曲面算法\Test.aps
文件 1746 2008-06-28 11:22 案例21-双三次B样条曲面算法\Test.clw
文件 4221 2008-06-28 11:21 案例21-双三次B样条曲面算法\Test.cpp
文件 5205 2007-09-07 16:37 案例21-双三次B样条曲面算法\Test.dsp
文件 531 2006-11-30 11:08 案例21-双三次B样条曲面算法\Test.dsw
文件 1334 2006-11-30 11:00 案例21-双三次B样条曲面算法\Test.h
文件 304128 2008-06-28 11:22 案例21-双三次B样条曲面算法\Test.ncb
文件 50688 2008-06-28 11:22 案例21-双三次B样条曲面算法\Test.opt
文件 11022 2007-12-18 20:11 案例21-双三次B样条曲面算法\Test.rc
文件 1702 2006-11-30 11:00 案例21-双三次B样条曲面算法\TestDoc.cpp
............此处省略9个文件信息
- 上一篇:矩阵求逆c程序
- 下一篇:Cantor集算法实现
相关资源
- VC++ 多线程文件读写操作
- 移木块游戏,可以自编自玩,vc6.0编写
- MFC数字钟(基于VC6.0)
- 安科瑞智能电能表MODBUS通讯程序 VC6
- VC++MFC小游戏实例教程(实例)+MFC类库
- VC6LineNumberAddin.dll
- 用VC6.0实现多边形扫描线填充算法
- VC++实现CMD命令执行与获得返回信息
- VC助手 VC6.0助手
- VC++基于OpenGL模拟的一个3维空间模型
- 基于VC++的SolidWorks二次开发SolidWorks
- VC6 USB开发源码
- VC操作SQLSERVER数据库
- aes加解密(vc源程序)
- vc_串口通讯
- 吕鑫vc6c++数据结构视频源码
- 派克变换VC++源码(附文档)
- 基于opencv漫水填充算法综合
- VC++ 串口
- VC++ 大富翁4_大富翁游戏源码
- MFC的异步网络通讯应用程序
- VC++ 摄像头视频采集与回放源程序
- 转 VC++ 实现电子邮件(Email)发送
- 基于MFC的VC++仿QQ浏览器源码(雏形)
- VC++ 服务程序编写及安装与卸载
- VC++6.0番茄西红柿VAXvirsual assist X完美破
- VC编程助手2010破解版(原名VA_X_10.6.
- 基于改进的fcm算法的图像分割vc++
- VC++6.0 绿色版,免安装,非常好用。
- Microsoft Visual C++ 2005 Redistributable Pack
评论
共有 条评论