⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bsplinedoc.h

📁 B3次样条拟合
💻 H
字号:
// BSplineDoc.h : interface of the CBSplineDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_BSPLINEDOC_H__96D4357E_0CC6_4C87_9F6B_C1BA9DBE49E6__INCLUDED_)
#define AFX_BSPLINEDOC_H__96D4357E_0CC6_4C87_9F6B_C1BA9DBE49E6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <afxtempl.h>
#include <math.h>

class CBSplineDoc : public CDocument
{
protected: // create from serialization only
	CBSplineDoc();
	DECLARE_DYNCREATE(CBSplineDoc)

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CBSplineDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	//}}AFX_VIRTUAL

// Implementation
public:
	double Length(int j);
	double Basic_Spline(int j,int k,double u);
	void UpdateData();
	CPoint Dbordv(double u);
	double Knot_Value(int j);
	int Knot_Index(double u);
	int		m_type;
	int		m_subtype;
	int		m_degree;
	double	m_length;
	CArray<CPoint,CPoint> m_ptArray;
	CArray<double,double> t;
	CArray<int,int> r;
	virtual ~CBSplineDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CBSplineDoc)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	CArray<double,double> m_lthArray;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_BSPLINEDOC_H__96D4357E_0CC6_4C87_9F6B_C1BA9DBE49E6__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -