資源簡介
先建立MFC單文檔,
然后分別建立計算bezier曲線、三次B樣條曲線以及其反算的函數(見bezier.h, bspline.h, bepline2.h)
然后在單文檔視圖中進行了曲線的繪制。
操作時只需在文檔中中任意個點,然后在菜單曲線選擇中選擇所需曲線,視圖中即會顯示相應曲線。
代碼片段和文件信息
//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//
#include?“stdafx.h“
#include?“MFCtemplet.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)
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::CMainFram
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????12226??2008-04-13?12:12??MFCtemplet.rc
?????文件???????1822??2007-03-11?21:35??MFCtempletDoc.cpp
?????文件???????1519??2007-03-11?21:35??MFCtempletDoc.h
?????文件??????10609??2008-04-13?11:07??MFCtempletView.cpp
?????文件???????2432??2008-04-13?10:08??MFCtempletView.h
?????文件???????4407??2007-03-11?21:35??ReadMe.txt
?????文件????????785??2008-04-13?11:59??Resource.h
?????文件????????212??2007-03-11?21:35??StdAfx.cpp
?????文件???????1162??2007-03-11?21:53??StdAfx.h
?????文件??????19781??2009-07-13?17:04??Debug\MainFrm.obj
?????文件?????127035??2009-07-13?17:04??Debug\MFCtemplet.exe
?????文件?????339380??2009-07-13?17:04??Debug\MFCtemplet.ilk
?????文件??????23039??2009-07-13?17:04??Debug\MFCtemplet.obj
?????文件????6095936??2009-07-13?17:04??Debug\MFCtemplet.pch
?????文件?????517120??2009-07-13?17:04??Debug\MFCtemplet.pdb
?????文件???????7628??2008-04-13?12:12??Debug\MFCtemplet.res
?????文件??????14796??2009-07-13?17:04??Debug\MFCtempletDoc.obj
?????文件??????44290??2009-07-13?17:04??Debug\MFCtempletView.obj
?????文件?????107381??2009-07-13?17:04??Debug\StdAfx.obj
?????文件?????214016??2010-09-04?11:20??Debug\vc60.idb
?????文件?????380928??2009-07-13?17:04??Debug\vc60.pdb
?????文件???????1078??2007-03-11?21:35??res\MFCtemplet.ico
?????文件????????402??2007-03-11?21:35??res\MFCtemplet.rc2
?????文件???????1078??2007-03-11?21:35??res\MFCtempletDoc.ico
?????文件???????1078??2007-03-11?21:35??res\Toolbar.bmp
?????文件????????758??2008-03-28?16:22??Bezier.h
?????文件????????866??2008-04-13?10:00??BSpline2.h
?????文件????????581??2008-03-28?22:03??BSpline.h
?????文件???????2373??2008-04-08?10:39??MainFrm.cpp
?????文件???????1440??2008-04-08?10:37??MainFrm.h
............此處省略14個文件信息
- 上一篇:最小二乘法參數估計,c語言實現
- 下一篇:航空訂票系統 數據結構課程設計(C語言)
評論
共有 條評論