53 lines
1.3 KiB
C++
53 lines
1.3 KiB
C++
#ifndef _CACULATERESULT_H__
|
|
#define _CACULATERESULT_H__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include <list>
|
|
|
|
class CCaculateResult
|
|
{
|
|
public:
|
|
CCaculateResult();
|
|
|
|
CCaculateResult& operator = (const CCaculateResult& result);
|
|
|
|
public:
|
|
|
|
int m_nNumber; //避雷针编号
|
|
int m_nGroupNO; //避雷针账属组号
|
|
|
|
double m_dGroundRadius; //滚球半径
|
|
double m_dHeight; //避雷针高度
|
|
double m_dProRadius; //避雷针保护半径
|
|
|
|
AcGePoint3d m_ptGroundCenter; //滚球圆心
|
|
AcGePoint3d m_ptInsert; //避雷针插入点
|
|
|
|
AcDbObjectId m_id; //避雷针对象ID
|
|
AcGeDoubleArray m_arProHeight; //保护高度
|
|
};
|
|
|
|
typedef std::list<CCaculateResult> lstCltResult;
|
|
|
|
inline CCaculateResult& CCaculateResult::operator = (const CCaculateResult& result)
|
|
{
|
|
m_ptGroundCenter = result.m_ptGroundCenter;
|
|
m_dGroundRadius = result.m_dGroundRadius;
|
|
m_ptInsert = result.m_ptInsert;
|
|
m_dHeight = result.m_dHeight;
|
|
m_id = result.m_id;
|
|
m_dProRadius = result.m_dProRadius;
|
|
m_nNumber = result.m_nNumber;
|
|
m_nGroupNO = result.m_nGroupNO;
|
|
|
|
m_arProHeight.setLogicalLength(0);
|
|
m_arProHeight.append(result.m_arProHeight);
|
|
|
|
return *this;
|
|
}
|
|
|
|
#endif // !defined(AFX_CACULATERESULT_H__3B8D13E2_8321_4210_AD17_1BFB81D45B5D__INCLUDED_)
|