31 lines
909 B
C++
31 lines
909 B
C++
// XRect.h: interface for the XRect class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_XRECT_H__55DC5F29_9F72_4884_AFFF_EC35E3D8588C__INCLUDED_)
|
|
#define AFX_XRECT_H__55DC5F29_9F72_4884_AFFF_EC35E3D8588C__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
class XRect
|
|
{
|
|
public:
|
|
XPoint m_ptS, m_ptE;
|
|
XPoint lowLeft, upRight;
|
|
XPoint lowRight, upLeft;
|
|
double nWidth, nHeight;
|
|
double m_nAngle, m_BlkAngle, x_angle, y_angle;
|
|
XRect(XPoint ptS, XPoint ptE, double nAngle);
|
|
void AsPoly2D(XPoly2D &poly);
|
|
void GetAngle(ads_real sel_angle/*用户输入的行向角*/,
|
|
ads_real m_angle/*起点与终点连线夹角*/,
|
|
ads_real& x_angle/*布置行向角*/,
|
|
ads_real& y_angle/*布置列向角*/,
|
|
ads_real& blk_angle/*块插入方向角*/);
|
|
|
|
};
|
|
|
|
#endif // !defined(AFX_XRECT_H__55DC5F29_9F72_4884_AFFF_EC35E3D8588C__INCLUDED_)
|