資源簡介
詳細源碼講解如何計算貝塞爾曲線,可以實現曲線的平滑算法

代碼片段和文件信息
//?Bezier.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Bezier.h“
#include?“BezierDlg.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)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
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
CBezierDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????20200??2009-12-06?07:15??貝塞爾曲線\Bezier.aps
?????文件????????864??2009-12-06?09:22??貝塞爾曲線\Bezier.clw
?????文件???????2063??2002-01-01?06:17??貝塞爾曲線\Bezier.cpp
?????文件???????4159??2002-01-01?06:17??貝塞爾曲線\Bezier.dsp
?????文件????????535??2002-01-01?06:17??貝塞爾曲線\Bezier.dsw
?????文件???????1324??2002-01-01?06:17??貝塞爾曲線\Bezier.h
?????文件??????91136??2009-12-06?09:22??貝塞爾曲線\Bezier.ncb
?????文件?????264704??2009-12-06?09:22??貝塞爾曲線\Bezier.opt
?????文件???????1423??2009-12-06?07:27??貝塞爾曲線\Bezier.plg
?????文件???????5165??2007-08-07?06:02??貝塞爾曲線\Bezier.rc
?????文件???????6892??2007-08-07?07:24??貝塞爾曲線\BezierDlg.cpp
?????文件???????1804??2007-08-07?06:02??貝塞爾曲線\BezierDlg.h
?????文件?????110658??2009-12-06?07:27??貝塞爾曲線\Debug\Bezier.exe
?????文件?????194504??2009-12-06?07:27??貝塞爾曲線\Debug\Bezier.ilk
?????文件??????13022??2009-12-06?07:27??貝塞爾曲線\Debug\Bezier.obj
?????文件????5576188??2009-12-06?07:27??貝塞爾曲線\Debug\Bezier.pch
?????文件?????361472??2009-12-06?07:27??貝塞爾曲線\Debug\Bezier.pdb
?????文件???????2364??2007-08-07?06:02??貝塞爾曲線\Debug\Bezier.res
?????文件??????26906??2009-12-06?07:27??貝塞爾曲線\Debug\BezierDlg.obj
?????文件?????105635??2009-12-06?07:27??貝塞爾曲線\Debug\StdAfx.obj
?????文件?????205824??2009-12-06?08:55??貝塞爾曲線\Debug\vc60.idb
?????文件?????364544??2009-12-06?07:27??貝塞爾曲線\Debug\vc60.pdb
?????文件??????24576??2009-07-11?09:19??貝塞爾曲線\Release\Bezier.exe
?????文件???????8854??2007-08-02?05:42??貝塞爾曲線\Release\Bezier.obj
?????文件???????2364??2007-08-02?05:42??貝塞爾曲線\Release\Bezier.res
?????文件??????19065??2007-08-02?05:42??貝塞爾曲線\Release\BezierDlg.obj
?????文件????????768??2007-08-02?05:42??貝塞爾曲線\Release\StdAfx.obj
?????文件???????1078??2002-01-01?06:17??貝塞爾曲線\res\Bezier.ico
?????文件????????398??2002-01-01?06:17??貝塞爾曲線\res\Bezier.rc2
?????文件????????730??2003-07-16?06:29??貝塞爾曲線\resource.h
............此處省略9個文件信息
- 上一篇:DDS最終版(PCB\\原理圖\\源程序)
- 下一篇:stm32接收短信并開啟繼電器
評論
共有 條評論