bezier.h

来自「一个复杂的画图系统」· C头文件 代码 · 共 58 行

H
58
字号
// Bezier.h: interface for the CBezier class.////////////////////////////////////////////////////////////////////////#if !defined(AFX_BEZIER_H__A47AB941_FE0A_11D2_B2E0_FD4073D75C54__INCLUDED_)#define AFX_BEZIER_H__A47AB941_FE0A_11D2_B2E0_FD4073D75C54__INCLUDED_#if _MSC_VER >= 1000#pragma once#endif // _MSC_VER >= 1000#include "Shape.h"class CBezier : public CShape  {	//attributespublic:	CPoint m_tCtlPt[4];
	double m_RAry[4];
	struct{
		double x,y;
	} m_ptAry[4];
	int Curptnum,Curpt;	CPoint basept;public:	void Draw(CDC* pDC);	void SetCtlPt(CPoint point,int index)	{		m_tCtlPt[index] = point;
		dragmode=10;	}			//Constructors and destructorspublic:	CShape * copys(TCHAR &ch);
	void CalForRot(CPoint &pt);
	void invalid(CGeditorView *pView);
	void rotate(int rsel,CDC *pDC,CPoint pt, CGeditorView *pView);
	void Mirror(int syd, CDC *pDC,CPoint &basept,CGeditorView* pView);
	void dragobj(int leash,CDC *pDC,CPoint pt,CGeditorView* pView);
	int InTest(CPoint pt);
	void InitProp();
	void Serialize(CArchive& ar);	CBezier();	virtual ~CBezier();#ifdef _DEBUG	virtual void AssertValid() const;	virtual void Dump(CDumpContext& dc) const;#endifprotected:	DECLARE_SERIAL(CBezier)};#endif // !defined(AFX_BEZIER_H__A47AB941_FE0A_11D2_B2E0_FD4073D75C54__INCLUDED_)

⌨️ 快捷键说明

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