//-----------------------------------------------------------------------------+ // Copyright (C), 1998-2007, SH Software Co. Ltd. // = FileName : XBlockGeomInfo.h // = Version : ver2.0 // = Author : zjq // = CreateDate : 2002-09-09 // = Description: 图块几何信息类的声明 // = Maintainers: // //-----------------------------------------------------------------------------+ #ifndef _XBlockGeomInfo_H_ #define _XBlockGeomInfo_H_ #ifndef _XPOINT_H_ #include "XPoint.h" #endif class GEOAPI XBlockGeomInfo { public: XBlockGeomInfo(); virtual ~XBlockGeomInfo(); double GetSizeX() const; double GetSizeY() const; double GetSizeZ() const; double GetRotation() const; XPoint GetCenter() const; // 取得四个角点 XPoint GetLowLeft() const; XPoint GetLowRight() const; XPoint GetUpRight() const; XPoint GetUpLeft() const; void GetPolyline(AcDbPolyline &pline) const; Acad::ErrorStatus CalInsertParameters(const AcDbBlockReference *pBlk, XPoint &ptBase, double *nRot, double *nSx, double *nSy, double *nSz) const; void SetFromInsert(const AcDbBlockReference *pInsert); void UpdateInsert(AcDbBlockReference *pInsert) const; public: XPoint m_ptCen; //底面中心 double m_nRotation; double m_nSizeX, m_nSizeY, m_nSizeZ; }; #endif