59 lines
1.4 KiB
C++
59 lines
1.4 KiB
C++
//-----------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
|
|
// = FileName : TGGeHoleModel 类
|
|
// = Version : ver2.0
|
|
// = Author : wlw
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: TGGeHoleModel 类声明
|
|
// = Maintainers:
|
|
//
|
|
//-----------------------------------------------------------------------------+
|
|
#ifndef _TGGEHOLEMODEL_H_
|
|
#define _TGGEHOLEMODEL_H_
|
|
|
|
#ifndef _TADSGEPOINT3D_H_
|
|
#include "TADSGePoint3d.h"
|
|
#endif
|
|
|
|
#ifndef _TGGETRIANGLE_H_
|
|
#include "TGGeTriangle.h"
|
|
#endif
|
|
|
|
#ifndef _TGGEPOLYGONEX_H_
|
|
#include "TGGePolygonEx.h"
|
|
#endif
|
|
|
|
#ifndef _TDPTRLIST_H_
|
|
#include "TDPtrList.h"
|
|
#endif
|
|
|
|
class GEOAPI TGGeHoleModel
|
|
{
|
|
public:
|
|
TGGeHoleModel();
|
|
|
|
virtual ~TGGeHoleModel();
|
|
|
|
virtual void SetOutLine(const TGGePolygonEx& outline);
|
|
|
|
virtual void GetOutLine(TGGePolygonEx& outline);
|
|
virtual TGGePolygonEx& GetOutLine();
|
|
|
|
virtual void AppendHoleList(TGGePolygonEx* pHole);
|
|
|
|
virtual TDPtrList<TGGePolygonEx>& GetHoleList();
|
|
virtual int GetHoleList(TDPtrList<TGGePolygonEx>& lstPolygonEx);
|
|
|
|
virtual BOOL IsValid() const ;
|
|
|
|
virtual BOOL Wcs2Ecs(TVector3D &vtEcs, double &nElev);
|
|
|
|
virtual BOOL Triangulate(BOOL bKeepConstant, TDPtrList<TGGeTriangle> &lstTris, BOOL bAs3D = TRUE);
|
|
|
|
public:
|
|
TGGePolygonEx m_outline;
|
|
TDPtrList<TGGePolygonEx> m_holes;
|
|
};
|
|
|
|
#endif
|