Files
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

48 lines
1.3 KiB
C++

//-----------------------------------------------------------------------------+
// 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