56 lines
1.3 KiB
C++
56 lines
1.3 KiB
C++
//-------------------------------------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
|
|
// = FileName : TGGeSector 扇形类
|
|
// = Version : ver2.0
|
|
// = Author : wlw
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: TGGeSector 类声明
|
|
// = Maintainers:
|
|
//
|
|
//-------------------------------------------------------------------------------------------------------+
|
|
#ifndef _TGGESECTOR_H_
|
|
#define _TGGESECTOR_H_
|
|
|
|
#ifndef _TENTITYSET_H_
|
|
#include "TEntitySet.h"
|
|
#endif
|
|
|
|
class GEOAPI TGGeSector
|
|
{
|
|
public:
|
|
TGGeSector();
|
|
TGGeSector(ads_real dStAng, ads_real dEndAng);
|
|
TGGeSector(const TGGeSector & src);
|
|
TGGeSector(const TEntitySet & ent);
|
|
~TGGeSector();
|
|
|
|
TGGeSector& operator = (TGGeSector &src);
|
|
|
|
bool operator == (const TGGeSector &src) const;
|
|
int operator ! () const;
|
|
|
|
// 判断一平面向量是否在扇形区内
|
|
int AngleFlag(ads_real dAng) const;
|
|
|
|
// 找较近的一个角度
|
|
ads_real* NearAngle(ads_real dAng);
|
|
|
|
ads_real Bulge() const;
|
|
ads_real MidAngle() const;
|
|
|
|
void SetAngles(ads_real dStart, ads_real dEnd);
|
|
|
|
void TransUCS(ads_real dIncAngle);
|
|
|
|
void SetStarAngle(ads_real dAngle);
|
|
void SetEndAngle(ads_real dAngle);
|
|
|
|
ads_real GetStarAngle() const;
|
|
ads_real GetEndAngle() const;
|
|
|
|
public:
|
|
double m_dstartAngle;
|
|
double m_dendAngle;
|
|
};
|
|
|
|
#endif |