59 lines
1.4 KiB
C++
59 lines
1.4 KiB
C++
//-------------------------------------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
|
|
// = FileName : TGNPolygon2D Àà
|
|
// = Version : ver2.0
|
|
// = Author : wlw
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: TGNPolygon2D ÉùÃ÷ ͹¶à±ßÐÎÆ½ÃæÓò
|
|
// = Maintainers:
|
|
//
|
|
//-------------------------------------------------------------------------------------------------------+
|
|
#ifndef _TGNPOLYGON2D_H_
|
|
#define _TGNPOLYGON2D_H_
|
|
|
|
#ifndef _TGPOLYGON2D_H_
|
|
#include "TGPolygon2D.h"
|
|
#endif
|
|
|
|
#ifndef _TGMLINE2D_H_
|
|
#include "TGMLine2D.h"
|
|
#endif
|
|
|
|
#ifndef _TGOBJECTLIST_H_
|
|
#include "TGObjectList.h"
|
|
#endif
|
|
|
|
#ifndef _TPGECURVE2D_H_
|
|
#include "TPGeCurve2D.h"
|
|
#endif
|
|
|
|
#ifndef _TGOBJECT_H_
|
|
#include "TGObject.h"
|
|
#endif
|
|
|
|
#ifndef _TWFLAG_H_
|
|
#include "TWFlag.h"
|
|
#endif
|
|
|
|
class GEOAPI TGNPolygon2D:public TGPolygon2D
|
|
{
|
|
public:
|
|
//contruct
|
|
TGNPolygon2D(long vertexNum=0);
|
|
TGNPolygon2D(const TGMLine2D&ml,bool bCheck=true);
|
|
TGNPolygon2D(const TGPolygon2D&poly);
|
|
|
|
virtual ~TGNPolygon2D();
|
|
|
|
//override TGRegion2D
|
|
virtual void CutBy(const TPGeCurve2D&curve,TGObjectList&left,TGObjectList&right)const;
|
|
|
|
//override TGObject
|
|
virtual TGObject* Clone()const;
|
|
virtual GRelation HitTest(const TGPoint&pt)const;
|
|
virtual bool Explode(TGObjectList&res)const;
|
|
virtual bool IsValid()const;
|
|
virtual bool IsInclude(const TGObject&obj)const;
|
|
};
|
|
#endif
|