Ellipse.h
资源名称:CAD2006.rar [点击查看]
上传用户:ckg1000
上传日期:2013-01-26
资源大小:630k
文件大小:2k
源码类别:
CAD
开发平台:
Visual C++
- // Ellipse.h: interface for the CEllipse class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_ELLIPSE_H__40273223_31FE_40C3_89C1_3143CF3CD38A__INCLUDED_)
- #define AFX_ELLIPSE_H__40273223_31FE_40C3_89C1_3143CF3CD38A__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "Shape.h"
- extern enum tagToolState;
- class CEllipse : public CShape
- {
- public:
- void DrawMirLine(CDC *pDC,POINT MirBegPt, POINT MirEndPt);
- void KillMirLine(CDC *pDC);
- void Mirror(CDC *pDC,CPoint point);
- CPoint GetPosCenter();
- void SetPosCenter(CPoint point);
- POINT GetMirPt(const POINT& ptBegin, const POINT& ptEnd,POINT ptCur);
- void Move(CDC *pDoc,CPoint point);
- CPoint GetPosEnd();
- CPoint GetPosBegin();
- CEllipse();
- virtual ~CEllipse();
- void OnLbuttondown(CDC *pDC,CPoint point);
- void Onmousemove(CDC *pDC,CPoint point);
- void DrawEllipse(HDC hdc,POINT ptCenter,POINT ptSide);
- void SetPosEnd(CPoint point);
- void SetPosBegin(CPoint point);
- bool Select(CDC *pDC,CPoint point);
- bool pick(POINT ptCurPos);
- void DrawRect(HDC hdc);
- int Distance(POINT ptPos1, POINT ptPos2);
- void Zoom(CDC *pDoc, CPoint point);
- void Delete(CDC *pDC);
- POINT m_FirstMirPt; //镜像后的点
- POINT m_MirBegPt; //镜像直线起点
- POINT m_MirEndPt;
- POINT m_ptBeginPos; // 第一个点
- POINT m_ptPrePos; // 末尾点
- tagToolState m_eToolState; //鼠标状态标记
- POINT m_oldpt;
- static int nRadius;
- bool KILLRECT;
- POINT m_pttempbeginpos;
- };
- #endif // !defined(AFX_ELLIPSE_H__40273223_31FE_40C3_89C1_3143CF3CD38A__INCLUDED_)