56 lines
1.1 KiB
C++
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 |