#if !defined(AFX_TXSHELL_H__75A354E1_E6B5_4EE2_B089_B3EDD1E1EBAC__INCLUDED_) #define AFX_TXSHELL_H__75A354E1_E6B5_4EE2_B089_B3EDD1E1EBAC__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #ifdef _TCHPIPEBASE_ #define DLLIMPEXP __declspec(dllexport) #else #ifdef _TCHPIPEBASE_COM_ #define DLLIMPEXP #else #define DLLIMPEXP __declspec(dllimport) #endif #endif #include "TDb.h" //-------------------------------------------------------------------------------- // = 版权 // Copyright(c) 2009 tangent // All rights reserved // = 作者(S) // 李夫银 // = 版本 // Version1.0 // = 日期 // 2009.9.10 // = 修改日志 // // = 说明 // 1.提取三维实体的外壳,为便于后期扩充,增加TXShell类; // 2.该类不释放m_arFacePtrs中的对象内存,需要使用者释放 // 3.由于TDbInterfacesObj::GetXBaseShell的接口参数不一致的需求都可由本类提供支持 // //-------------------------------------------------------------------------------- class DLLIMPEXP TXShell { public: TXShell(); virtual ~TXShell(); int AppendFace(AcDbFace* pFace); AcDbFace* GetFace(int iIndex) const; BOOL Remove(int iIndex); int GetCount() const; int GetFacePtrs(CPtrArray& arFacePtrs) const; private: CPtrArray m_arFacePtrs; }; #endif