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

56 lines
1.1 KiB
C++

//-----------------------------------------------------------------------------+
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
// = FileName : TGGeRegion2D 类
// = Version : ver2.0
// = Author : wlw
// = CreateDate : 2002-09-09
// = Description: TGGeRegion2D 类声明
// = Maintainers:
//
//-----------------------------------------------------------------------------+
#ifndef _TGGEREGION2D_H_
#define _TGGEREGION2D_H_
#ifndef _TGGEPOLY2D_H_
#include "TGGePoly2D.h"
#endif
#ifndef _TDPTRLIST_H_
#include "TDPtrList.h"
#endif
class GEOAPI TGGeRegion2D : public TGGePoly2D
{
public:
TGGeRegion2D();
TGGeRegion2D(const TGGePoly2D & poly);
virtual ~TGGeRegion2D();
virtual bool IsKindOf(TEntityId entType) const;
virtual TEntityId Type() const;
void AppendHole(TGGePoly2D * pPoly);
void ClearHole();
long GetHoleNum()const;
const TGGePoly2D& GetHole(long i)const;
TGGePoly2D& GetHole(long i);
int HitTest2d(TADSGePoint3d pt)const;
virtual double Area()const;
bool IsValid()const;
//外部负责释放
virtual AcDbRegion *AsRegion() const;
public:
TDPtrList<TGGePoly2D> m_lstHole;
};
#endif