fivepointview.h

来自「五点光滑法。给出五个相邻的点」· C头文件 代码 · 共 88 行

H
88
字号
// FivePointView.h : interface of the CFivePointView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_FIVEPOINTVIEW_H__C7C98BAD_43E9_4DC2_85F2_1F1F659EB41D__INCLUDED_)
#define AFX_FIVEPOINTVIEW_H__C7C98BAD_43E9_4DC2_85F2_1F1F659EB41D__INCLUDED_

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

#include <list>
#include	"Mypoint.h"

using namespace std;

class CFivePointView : public CView
{
protected: // create from serialization only
	CFivePointView();
	DECLARE_DYNCREATE(CFivePointView)

// Attributes
public:
	CFivePointDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CFivePointView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	double getsin(int i);
	double getcos(int i);
	void getab(int i);
	virtual ~CFivePointView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	int	pointnum;
	double	a[4];
	double	b[4];
	double	m[20];
	double	n[20];
	double	x[20];
	double	y[20];
	bool	m_flag;
	bool	m_isbegin;
	list<CMypoint>	Plist;
	COLORREF	m_color;
	CBrush	m_brush;
	//{{AFX_MSG(CFivePointView)
	afx_msg void OnPDraw();
	afx_msg void OnPFlat();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in FivePointView.cpp
inline CFivePointDoc* CFivePointView::GetDocument()
   { return (CFivePointDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_FIVEPOINTVIEW_H__C7C98BAD_43E9_4DC2_85F2_1F1F659EB41D__INCLUDED_)

⌨️ 快捷键说明

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