- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
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_)