Files
envi-code/SourceCode/Code2026/Dimension/TBlockGeomInfo.h
T

31 lines
841 B
C++
Raw Normal View History

2026-10-04 00:04:20 +08:00
#pragma once
2026-09-28 15:28:50 +08:00
#include "ADSGePoint3d.h"
class BlockGeomInfo
{
public:
BlockGeomInfo();
virtual ~BlockGeomInfo();
double GetSizeX() const;
double GetSizeY() const;
double GetSizeZ() const;
double GetRotation() const;
ADSGePoint3d GetCenter() const;
2026-10-04 00:04:20 +08:00
// 取得四个角点
2026-09-28 15:28:50 +08:00
ADSGePoint3d GetLowLeft() const;
ADSGePoint3d GetLowRight() const;
ADSGePoint3d GetUpRight() const;
ADSGePoint3d GetUpLeft() const;
void GetPolyline(AcDbPolyline &pline) const;
Acad::ErrorStatus CalInsertParameters(const AcDbBlockReference *pBlk, ADSGePoint3d &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
ADSGePoint3d m_ptCen; //底面中心
2026-09-28 15:28:50 +08:00
double m_nRotation;
double m_nSizeX, m_nSizeY, m_nSizeZ;
};