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

58 lines
1.1 KiB
C++

#ifndef _LIGHTNINGRODDATA_H__
#define _LIGHTNINGRODDATA_H__
#if _MSC_VER > 1000
#pragma once
#endif
class TGLightningRodData
{
public:
TGLightningRodData();
virtual ~TGLightningRodData();
public:
double GetGroundRadius() const;
double GetHeight() const;
int GetNumber() const;
int GetGroupNO() const;
void GetInsertPoint(AcGePoint3d& ptInsert) const;
void GetObjectID(AcDbObjectId& id) const;
void SetGroundRadius(double dRadius);
void SetHeight(double dHeight);
void SetNumber(int nNumber);
void SetInsertPoint(AcGePoint3d ptInsert);
void SetObjectID(AcDbObjectId id);
void SetGroupNO(int nNO);
public:
AcGeDoubleArray m_arProtecedHeight; //房屋保护高度
private:
int m_nNumber; //避雷针编号
int m_nGroupNO; //避雷针账属组号
double m_dGroundRadius; //滚球半径
double m_dHeight; //避雷针高度
AcGePoint3d m_ptInsert; //插入避雷针的位置
AcDbObjectId m_id;
};
#endif // !defined(AFX_LIGHTNINGRODDATA_H__D610574C_ED05_4CAB_A056_9B9DE2ED2D88__INCLUDED_)