Files
envi-code/SourceCode/Code2026/tg_shs/inc/TArch/TAecSpaceWall.h
T

54 lines
1.3 KiB
C++
Raw Normal View History

2026-10-04 00:04:20 +08:00
//-----------------------------------------------------------------------------+
2026-09-28 15:28:50 +08:00
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
2026-10-04 00:04:20 +08:00
// = FileName : TAecSpaceWall 类
2026-09-28 15:28:50 +08:00
// = Version : ver2.0
// = Author : wlw
// = CreateDate : 2002-09-09
2026-10-04 00:04:20 +08:00
// = Description: TAecSpaceWall 声明
2026-09-28 15:28:50 +08:00
// = Maintainers:
//
//-----------------------------------------------------------------------------+
#ifndef _TAECSPACEWALL_H_
#define _TAECSPACEWALL_H_
#ifndef _TWALLDATA_H_
#include "TWallData.h"
#endif
class TSortWallOnPt;
class TAecSpaceCell;
class TARCH_EXP TAecSpaceWall : public TWallData
{
public:
TAecSpaceWall();
TAecSpaceWall(const TEntitySet &ent);
TAecSpaceWall(const TAecSpaceWall &src);
virtual AcDbObjectId GetMyObjectId() const;
virtual AcDbObjectId GetMyOwnerId()const;
2026-10-04 00:04:20 +08:00
// 0-左侧; 1-右侧
2026-09-28 15:28:50 +08:00
int Trival(TSortWallOnPt *spt, int nSide);
int TrivalTo(const TAecSpaceWall &toWall, TSortWallOnPt *spt, int nSide);
public:
2026-10-04 00:04:20 +08:00
//全局当前房间
2026-09-28 15:28:50 +08:00
static TAecSpaceCell *g_pCurSpace;
2026-10-04 00:04:20 +08:00
// 全局所有墙列表
2026-09-28 15:28:50 +08:00
static TDPtrList<TAecSpaceWall> *g_pAllWalls;
2026-10-04 00:04:20 +08:00
// 左右为相对于曲线方向
2026-09-28 15:28:50 +08:00
TAecSpaceCell *leftSpace, *rightSpace;
2026-10-04 00:04:20 +08:00
// 左侧(0) 或 右侧(1)
2026-09-28 15:28:50 +08:00
int curSide;
2026-10-04 00:04:20 +08:00
//墙实体
2026-09-28 15:28:50 +08:00
TEntitySet m_ent;
TSortWallOnPt *m_pStartNode, *m_pEndNode;
};
#endif