Files
envi-code/SourceCode/Code2026/inc/AdsXRx/XHoleModel.h
T

58 lines
1.2 KiB
C++
Raw Normal View History

2026-10-04 00:04:20 +08:00
//-----------------------------------------------------------------------------+
2026-09-28 15:28:50 +08:00
// Copyright (C), 1998-2007, SH Software Co. Ltd.
2026-10-04 00:04:20 +08:00
// = FileName : XHoleModel 类
2026-09-28 15:28:50 +08:00
// = Version : ver2.0
// = Author : zjq
// = CreateDate : 2002-09-09
2026-10-04 00:04:20 +08:00
// = Description: XHoleModel 类声明
2026-09-28 15:28:50 +08:00
// = Maintainers:
//
//-----------------------------------------------------------------------------+
#ifndef _XHOLEMODEL_H_
#define _XHOLEMODEL_H_
#ifndef _XPOINT_H_
#include "XPoint.h"
#endif
#ifndef _XTRIANGLE_H_
#include "XTriangle.h"
#endif
#ifndef _XPOLYGONEX_H_
#include "XPolygonEx.h"
#endif
#ifndef _DLIST_H_
#include "DList.h"
#endif
class GEOAPI XHoleModel
{
public:
XHoleModel();
virtual ~XHoleModel();
virtual void SetOutLine(const XPolygonEx& outline);
virtual void GetOutLine(XPolygonEx& outline);
virtual XPolygonEx& GetOutLine();
virtual void AppendHoleList(XPolygonEx* pHole);
virtual DList<XPolygonEx>& GetHoleList();
virtual int GetHoleList(DList<XPolygonEx>& lstPolygonEx);
virtual BOOL IsValid() const ;
virtual BOOL Wcs2Ecs(XVector3D &vtEcs, double &nElev);
virtual BOOL Triangulate(BOOL bKeepConstant, DList<XTriangle> &lstTris, BOOL bAs3D = TRUE);
public:
XPolygonEx m_outline;
DList<XPolygonEx> m_holes;
};
#endif