www.pudn.com > my2cadtest07261930.rar > Ellipse.h, change:2006-07-22,size:1254b


// Ellipse.h: interface for the CEllipse class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_ELLIPSE_H__5F07878E_8ED1_4DAF_AB87_991551AC060A__INCLUDED_) 
#define AFX_ELLIPSE_H__5F07878E_8ED1_4DAF_AB87_991551AC060A__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "Shape.h" 
 
class CEllipse : public CShape   
{ 
public: 
	CEllipse(POINT *point,int ptcount, LOGPEN &pen, LOGBRUSH &brush); 
	void SavetoEmf(HDC &hdc); 
	void ZoomSelf(HDC &hdc,double scale); 
	void MirrorSelf(HDC &hdc,double angle,CSuperPoint &ptPos); 
	void EnterOper(HDC &hdc); 
	void UnLock(HDC &hdc); 
	void MoveSelf(HDC &hdc,int dx,int dy); 
	void RotateSelf(HDC &hdc,double angle); 
	void Lock(HDC &hdc); 
	void SetMark(HDC &hdc); 
	void ClearMark(HDC &hdc); 
	bool IsBound(CSuperPoint &curPt); 
	CShape* GetShapeCopy(); 
	void CalcSelf(); 
	CEllipse(CSuperPoint begpt,CSuperPoint endpt); 
	void CalcCenterRECT(); 
	void CalcCenterPoint(); 
	void DrawSelf(HDC &hdc); 
	void PreDraw(HDC &hdc); 
	CEllipse(); 
	virtual ~CEllipse(); 
 
protected: 
	CSuperPoint m_bottom_right; 
	CSuperPoint m_upper_left; 
}; 
 
#endif // !defined(AFX_ELLIPSE_H__5F07878E_8ED1_4DAF_AB87_991551AC060A__INCLUDED_)