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

35 lines
1.1 KiB
C++

/*
文件名称:SectionOpening.h
功 能:剖面门窗,门窗过梁声明
作 者:刘春峰
完成日期:2004年8月10日
*/
#pragma once
static BOOL g_bHatchGrider = TRUE;
class CSectionOpening
{
public:
CSectionOpening(void);
~CSectionOpening(void);
BOOL InsertOpening(Entity &sectWall1, XPoint ptres);
BOOL ReplaceOpening();
XString m_sBlockName;
private:
BOOL GetHoleWidth(double &width, Entity &sectWall2, const Entity &sectWall1, const XPoint &ptres);
BOOL GetHoleHigh(double &high, XPoint &ptFirst, XPoint &ptSecond, const Entity &entName);
BOOL ComparePoint(const Entity &sectWall1, const Entity &sectWall2, const XPoint &ptFirst, const XPoint &ptSecond);
BOOL BreakWall(Entity &sectWall1, Entity &sectWall2, XPoint ptFirst, XPoint ptSecond);
BOOL OpenDrawingLib(XString &sBlockName);
BOOL GetInsertPoint(XPoint &ptIns, double &holeAngle, const XPoint &ptFirst, const Entity &sectWall2);
BOOL InsertBlock(const XPoint &ptIns, const double &width, const double &high, const double &angle, const XString &sBlockName);
BOOL ReplaceBlock(const XString &sBlockName, AcDbObjectId &idOld);
BOOL WriteBlockName();
};