44 lines
1.1 KiB
C++
44 lines
1.1 KiB
C++
//-------------------------------------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
|
|
// = FileName : TGTriangle2D 类
|
|
// = Version : ver2.0
|
|
// = Author : wlw
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: TGTriangle2D 声明 三角形平面域
|
|
// = Maintainers:
|
|
//
|
|
//-------------------------------------------------------------------------------------------------------+
|
|
#ifndef _TGTRIANGLE2D_H_
|
|
#define _TGTRIANGLE2D_H_
|
|
|
|
#ifndef _TGNPOLYGON2D_H_
|
|
#include "TGNPolygon2D.h"
|
|
#endif
|
|
|
|
#ifndef _TGPOINT_H_
|
|
#include "TGPoint.h"
|
|
#endif
|
|
|
|
#ifndef _TGOBJECTLIST_H_
|
|
#include "TGObjectList.h"
|
|
#endif
|
|
|
|
class TGObject;
|
|
|
|
class GEOAPI TGTriangle2D:public TGNPolygon2D
|
|
{
|
|
public:
|
|
//construct
|
|
TGTriangle2D();
|
|
virtual ~TGTriangle2D();
|
|
|
|
//检查是否逆时针方向曲线
|
|
TGTriangle2D(const TGPoint&pt0,const TGPoint&pt1,const TGPoint&pt2,bool bCheck=true);
|
|
|
|
//override TGObject
|
|
virtual bool IsValid()const;
|
|
virtual bool Explode(TGObjectList&res)const;
|
|
virtual TGObject* Clone()const;
|
|
};
|
|
#endif
|