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

49 lines
760 B
C++

#include "stdafx.h"
#include "TXShell.h"
TXShell::TXShell()
{
}
TXShell::~TXShell()
{
}
int TXShell::AppendFace( AcDbFace* pFace )
{
return (int)m_arFacePtrs.Add(pFace);
}
AcDbFace* TXShell::GetFace(int iIndex) const
{
if (iIndex > -1 && iIndex < m_arFacePtrs.GetSize())
{
return (AcDbFace*)m_arFacePtrs.GetAt(iIndex);
}
return NULL;
}
BOOL TXShell::Remove(int iIndex)
{
if (iIndex > -1 && iIndex < m_arFacePtrs.GetSize())
{
m_arFacePtrs.RemoveAt(iIndex);
}
return FALSE;
}
int TXShell::GetCount() const
{
return (int)m_arFacePtrs.GetSize();
}
int TXShell::GetFacePtrs(CPtrArray& arFacePtrs) const
{
for (int i = 0;i < m_arFacePtrs.GetSize();i++)
{
arFacePtrs.Add(m_arFacePtrs.GetAt(i));
}
return (int)m_arFacePtrs.GetSize();
}