MirrorShape.h
资源名称:CAD.zip [点击查看]
上传用户:hehe2haha
上传日期:2013-08-16
资源大小:161k
文件大小:1k
源码类别:
CAD
开发平台:
Visual C++
- // MirrorShape.h: interface for the MirrorShape class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MIRRORSHAPE_H__A946B64B_DB79_4CE3_9532_A04248853065__INCLUDED_)
- #define AFX_MIRRORSHAPE_H__A946B64B_DB79_4CE3_9532_A04248853065__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "Draw.h"
- #include "Shape.h"
- const int m_PenStyle = PS_SOLID; // pen style
- const int m_PenWidth = 1; // pen width
- const COLORREF m_PenColor = RGB(255,128,255); // pen color
- class CMirrorShape
- {
- public:
- POINT MirrorBeginPos; //镜像始点
- POINT MirrorEndPos; //镜像终点
- double SinAngle; //正弦
- double CosAngle; //余弦
- double TgAngle; //正切
- POINT SourceEndPos; //源点终点
- POINT SourceBeginPos; //源点始点
- public:
- CMirrorShape();
- virtual ~CMirrorShape();
- virtual void Mirror(HDC hdc,POINT BeginPos,POINT PrePos, POINT EndPos){}
- void SetSinCos(POINT BeginPos,POINT EndPos);
- void SetMirrorPos(POINT BeginPos, POINT EndPos);
- };
- #endif // !defined(AFX_MIRRORSHAPE_H__A946B64B_DB79_4CE3_9532_A04248853065__INCLUDED_)