資源簡(jiǎn)介
1.繪制Bezier曲線,即根據(jù)給定的控制頂點(diǎn),得到Bezier曲線。
2 繪制三次均勻B樣條曲線,即根據(jù)給定的控制頂點(diǎn),得到B樣條曲線。
3 均勻B樣條曲線擬合,即根據(jù)給定的型值點(diǎn),得到B樣條曲線。
4能夠支持鼠標(biāo)和鍵盤(pán)兩種輸入方式輸入控制頂點(diǎn)和型值點(diǎn);
5采用棧的方法,能支持無(wú)數(shù)個(gè)點(diǎn)的輸入;
6程序界面及交互操作方面方便:如菜單,工具圖表對(duì)話框;
7能修改輸入的控制頂點(diǎn)(擬合均勻B樣條曲線除外);
8能預(yù)覽輸入點(diǎn)時(shí)的效果,即移動(dòng)鼠標(biāo)時(shí),生成預(yù)覽圖象;

代碼片段和文件信息
//?ChildFrm.cpp?:?implementation?of?the?CChildframe?class
//
#include?“stdafx.h“
#include?“Jjb.h“
#include?“ChildFrm.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CChildframe
IMPLEMENT_DYNCREATE(CChildframe?CMDIChildWnd)
BEGIN_MESSAGE_MAP(CChildframe?CMDIChildWnd)
//{{AFX_MSG_MAP(CChildframe)
//?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
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CChildframe?construction/destruction
CChildframe::CChildframe()
{
//?TODO:?add?member?initialization?code?here
}
CChildframe::~CChildframe()
{
}
BOOL?CChildframe::PreCreateWindow(CREATESTRUCT&?cs)
{
//?TODO:?Modify?the?Window?class?or?styles?here?by?modifying
//??the?CREATESTRUCT?cs
if(?!CMDIChildWnd::PreCreateWindow(cs)?)
return?FALSE;
//?????cs.style=WS_OVERLAPPED|WS_SYSMENU|WS_BORDER|WS_MAXIMIZE;
return?TRUE;
}
/////////////////////////////////////////////////////////////////////////////
//?CChildframe?diagnostics
#ifdef?_DEBUG
void?CChildframe::AssertValid()?const
{
CMDIChildWnd::AssertValid();
}
void?CChildframe::Dump(CDumpContext&?dc)?const
{
CMDIChildWnd::Dump(dc);
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CChildframe?message?handlers
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????1593??2007-05-20?17:58??源程序\ChildFrm.cpp
?????文件???????1397??2007-05-20?17:49??源程序\ChildFrm.h
?????文件????????983??2007-05-22?21:06??源程序\InputDialog.cpp
?????文件???????1244??2007-05-22?21:28??源程序\InputDialog.h
?????文件???????1074??2007-05-24?19:52??源程序\JianPan.cpp
?????文件???????1204??2007-05-22?20:39??源程序\JianPan.h
?????文件??????32952??2007-12-24?21:09??源程序\Jjb.aps
?????文件???????4629??2008-01-01?22:27??源程序\Jjb.clw
?????文件???????4333??2007-05-20?17:49??源程序\Jjb.cpp
?????文件???????5039??2007-05-22?21:40??源程序\Jjb.dsp
?????文件????????529??2007-05-20?17:49??源程序\Jjb.dsw
?????文件???????1323??2007-05-20?17:49??源程序\Jjb.h
?????文件?????148480??2008-01-01?22:27??源程序\Jjb.ncb
?????文件????????240??2008-01-01?22:14??源程序\Jjb.plg
?????文件??????16507??2007-05-24?20:09??源程序\Jjb.rc
?????文件???????1682??2007-05-20?17:49??源程序\JjbDoc.cpp
?????文件???????1442??2007-05-20?17:49??源程序\JjbDoc.h
?????文件??????18450??2007-05-24?20:40??源程序\JjbView.cpp
?????文件???????3640??2007-05-24?20:35??源程序\JjbView.h
?????文件???????2382??2007-05-24?18:44??源程序\MainFrm.cpp
?????文件???????1401??2007-05-24?18:44??源程序\MainFrm.h
?????文件???????4685??2007-05-20?17:49??源程序\ReadMe.txt
?????文件???????1238??2007-05-24?18:39??源程序\resource.h
?????文件???????1042??2007-05-22?21:16??源程序\SorryDialog.cpp
?????文件???????1269??2007-05-22?21:16??源程序\SorryDialog.h
?????文件????????205??2007-05-20?17:49??源程序\StdAfx.cpp
?????文件???????1054??2007-05-20?17:49??源程序\StdAfx.h
?????文件???????1173??2007-12-24?21:57??源程序\gd.h
?????文件????????924??2007-12-24?21:57??源程序\gd.cpp
?????文件??????64000??2008-01-01?22:27??源程序\Jjb.opt
............此處省略40個(gè)文件信息
評(píng)論
共有 條評(píng)論