52 lines
1.0 KiB
C++
52 lines
1.0 KiB
C++
//-----------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, SH Software Co. Ltd.
|
|
// = FileName : XSortSideOnVertex 类
|
|
// = Version : ver2.0
|
|
// = Author : zjq
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: XSortSideOnVertex 声明
|
|
// = Maintainers:
|
|
//
|
|
//-----------------------------------------------------------------------------+
|
|
#ifndef _XSortSideOnVertex_H_
|
|
#define _XSortSideOnVertex_H_
|
|
|
|
#ifndef _XSIDEVECTOR_H_
|
|
#include "XSideVector.h"
|
|
#endif
|
|
|
|
#ifndef _DLIST_H_
|
|
#include "DList.h"
|
|
#endif
|
|
|
|
#ifndef _XPOINT_H_
|
|
#include "XPoint.h"
|
|
#endif
|
|
|
|
class XRegionSide;
|
|
|
|
// 排序边表,连接在一个点上的所有边
|
|
class GEOAPI XSortSideOnVertex : public DList<XSideVector>
|
|
{
|
|
public:
|
|
|
|
XSortSideOnVertex(const XPoint &ptLoc);
|
|
virtual ~XSortSideOnVertex();
|
|
|
|
BOOL Include(const XPoint &pt) const;
|
|
|
|
int Insert(XRegionSide *pSide);
|
|
|
|
XSideVector * GetPrevSide(int iVal) const;
|
|
|
|
XSideVector * GetNextSide(int iVal) const;
|
|
|
|
public:
|
|
|
|
XPoint m_ptLoc;
|
|
|
|
XPoint m_ptMin, m_ptMax;
|
|
};
|
|
|
|
#endif
|