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

111 lines
1.6 KiB
C++

#ifndef _CIMPDRAWGENERALSECTION_H__
#define _CIMPDRAWGENERALSECTION_H__
#include <map>
class CImpDrawGeneralSection
{
public:
CImpDrawGeneralSection();
double GetRoadMidEle()
{
return m_dRoadMidEle;
}
void SetRoadMidEle(double dRoadMidEle)
{
m_dRoadMidEle = dRoadMidEle;
}
double GetScaleX()
{
return m_dScaleX;
}
void SetScaleX(double dScaleX)
{
m_dScaleX = dScaleX;
}
double GetScaleY()
{
return m_dScaleY;
}
void SetScaleY(double dScaleY)
{
m_dScaleY = dScaleY;
}
CString GetNumber()
{
return m_strNumber;
}
void SetNumber(const CString &strNumber)
{
m_strNumber = strNumber;
}
AcGePoint3d GetPtS()
{
return m_ptS;
}
void SetPtS(const AcGePoint3d &ptS)
{
m_ptS = ptS;
}
AcGePoint3d GetPtE()
{
return m_ptE;
}
void SetPtE(const AcGePoint3d &ptE)
{
m_ptE = ptE;
}
AcGeVector3d GetVt()
{
return m_vt;
}
void SetVt(const AcGeVector3d &vt)
{
m_vt = vt;
}
std::vector<AcDbObjectId> GetIdPipe()
{
return m_idVecPipe;
}
void SetIdPipe(const std::vector<AcDbObjectId> &idPipe)
{
m_idVecPipe.clear();
std::vector<AcDbObjectId>::const_iterator it;
for (it = idPipe.begin(); it!= idPipe.end(); it++)
{
m_idVecPipe.push_back(*it);
}
}
bool DrawSection();
private:
double m_dRoadMidEle; // 道路中心线标高
double m_dScaleX; // 横向比例系数
double m_dScaleY; // 纵向比例系数
CString m_strNumber; // 剖切编号
AcGePoint3d m_ptS; // 剖切起点
AcGePoint3d m_ptE; // 剖切终点
AcGeVector3d m_vt; // 剖切方向
std::vector<AcDbObjectId> m_idVecPipe;
};
#endif