54 lines
1.3 KiB
C++
54 lines
1.3 KiB
C++
//-----------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
|
|
// = FileName : TAecSpaceWall 类
|
|
// = Version : ver2.0
|
|
// = Author : wlw
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: TAecSpaceWall 声明
|
|
// = 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;
|
|
|
|
// 0-左侧; 1-右侧
|
|
int Trival(TSortWallOnPt *spt, int nSide);
|
|
int TrivalTo(const TAecSpaceWall &toWall, TSortWallOnPt *spt, int nSide);
|
|
|
|
public:
|
|
//全局当前房间
|
|
static TAecSpaceCell *g_pCurSpace;
|
|
|
|
// 全局所有墙列表
|
|
static TDPtrList<TAecSpaceWall> *g_pAllWalls;
|
|
|
|
// 左右为相对于曲线方向
|
|
TAecSpaceCell *leftSpace, *rightSpace;
|
|
|
|
// 左侧(0) 或 右侧(1)
|
|
int curSide;
|
|
|
|
//墙实体
|
|
TEntitySet m_ent;
|
|
|
|
TSortWallOnPt *m_pStartNode, *m_pEndNode;
|
|
};
|
|
|
|
#endif |