www.pudn.com > my2cadtest07261930.rar > Circle.h, change:2006-07-24,size:1280b


// Circle.h: interface for the CCircle class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_CIRCLE_H__DBAE57C7_322D_4576_B1DF_9B429DA72423__INCLUDED_) 
#define AFX_CIRCLE_H__DBAE57C7_322D_4576_B1DF_9B429DA72423__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "Shape.h" 
 
class CCircle : public CShape   
{ 
public: 
	CCircle(CSuperPoint begPT,CSuperPoint endPT); 
    CCircle(POINT *point,int ptcount, LOGPEN &pen, LOGBRUSH &brush); 
	CCircle(){}; 
	virtual ~CCircle(); 
public: 
	void CalcCenterRECT(); 
	void CalcCenterPoint(); 
	CShape * GetShapeCopy(); 
 
	void SavetoTXT(); 
	void SavetoEmf(HDC &hdc); 
 
	void PreDraw(HDC &hdc); 
	void DrawSelf(HDC &hdc); 
 
	void EnterOper(HDC &hdc); 
	void MirrorSelf(HDC &hdc,double angle,CSuperPoint &ptPos); 
	void RotateSelf(HDC &hdc,double angle); 
	void ZoomSelf(HDC &hdc, double scale); 
	void MoveSelf(HDC &hdc,int dx,int dy); 
public: 
	void Lock(HDC& hdc); 
	void UnLock(HDC& hdc); 
	void SetMark(HDC& hdc); 
	void ClearMark(HDC& hdc); 
	bool IsBound(CSuperPoint &curPt); 
 
private: 
	void CalcFivePoint(POINT LTpt,POINT RBpt); 
	double m_radius; 
}; 
 
#endif // !defined(AFX_CIRCLE_H__DBAE57C7_322D_4576_B1DF_9B429DA72423__INCLUDED_)