34 lines
1.0 KiB
C++
34 lines
1.0 KiB
C++
#ifndef __CFLOORHOLEOPERATION_H__
|
|
#define __CFLOORHOLEOPERATION_H__
|
|
|
|
#include "FloorHoleDlg.h"
|
|
|
|
class CFloorHoleOperation
|
|
{
|
|
public:
|
|
CFloorHoleOperation();
|
|
~CFloorHoleOperation();
|
|
// 添加楼板洞
|
|
BOOL AddHole(CFloorHoleDlg &floorHoleDlg, AcGePoint3d ptIns);
|
|
// 添加文字标注
|
|
BOOL AddLabel(CFloorHoleDlg &floorHoleDlg, AcGePoint3d ptStart);
|
|
// 计算楼板洞插入点
|
|
BOOL CalcInsertPoint(CFloorHoleDlg &floorHoleDlg, Entity entBaseLine1, double nDist1, Entity entBaseLine2, double nDist2, XPoint ptBaseLine1, XPoint ptBaseLine2);
|
|
|
|
// 添加尺寸标注
|
|
void AddDimLabel(CFloorHoleDlg &floorHoleDlg, XPoint ptStart, XPoint ptEnd);
|
|
// 移动楼板洞
|
|
void MoveFloorHole();
|
|
|
|
public:
|
|
AcGePoint3d m_ptInsert; //楼板洞插入点
|
|
AcGePoint3d m_ptBaseLine1; //标注基准线1上的点
|
|
AcGePoint3d m_ptBaseLine2; //标注基准线2上的点
|
|
|
|
private:
|
|
double m_dLen1; //方形楼板洞宽度
|
|
double m_dLen2; //方形楼板洞厚度
|
|
double m_dRotation; //方形楼板洞角度
|
|
};
|
|
|
|
#endif //__FLOORHOLEOPERATION_H__
|