Files

47 lines
1.3 KiB
C++
Raw Permalink Normal View History

2026-10-04 00:04:20 +08:00
//-----------------------------------------------------------------------------+
2026-09-28 15:28:50 +08:00
// Copyright (C), 1998-2007, SH Software Co. Ltd.
// = FileName : XBlockGeomInfo.h
// = Version : ver2.0
// = Author : zjq
// = CreateDate : 2002-09-09
2026-10-04 00:04:20 +08:00
// = Description: 图块几何信息类的声明
2026-09-28 15:28:50 +08:00
// = 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;
2026-10-04 00:04:20 +08:00
// 取得四个角点
2026-09-28 15:28:50 +08:00
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:
2026-10-04 00:04:20 +08:00
XPoint m_ptCen; //底面中心
2026-09-28 15:28:50 +08:00
double m_nRotation;
double m_nSizeX, m_nSizeY, m_nSizeZ;
};
#endif