82 lines
1.8 KiB
C++
82 lines
1.8 KiB
C++
//-----------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
|
|
// = FileName : TGPoint2D.h
|
|
// = Version : ver2.0
|
|
// = Author : xlc
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: ÀàµÄÉùÃ÷ ¶þάµã
|
|
// = Maintainers:
|
|
//
|
|
//-----------------------------------------------------------------------------+
|
|
#ifndef _TGPOINT2D_H_
|
|
#define _TGPOINT2D_H_
|
|
|
|
#ifndef _TGOBJECT2D_H_
|
|
#include "TGObject2D.h"
|
|
#endif
|
|
|
|
#ifndef _TGPOINT_H_
|
|
#include "TGPoint.h"
|
|
#endif
|
|
|
|
#ifndef _TGOBJECT_H_
|
|
#include "TGObject.h"
|
|
#endif
|
|
|
|
#ifndef _TGOBJECTLIST_H_
|
|
#include "TGObjectList.h"
|
|
#endif
|
|
|
|
#ifndef _TGMATRIX_H_
|
|
#include "TGMatrix.h"
|
|
#endif
|
|
|
|
#ifndef _TPGEEXTEND2D_H_
|
|
#include "TPGeExtend2D.h"
|
|
#endif
|
|
|
|
#ifndef _TPGEEXTEND3D_H_
|
|
#include "TPGeExtend3D.h"
|
|
#endif
|
|
|
|
class TGObject3D;
|
|
|
|
class GEOAPI TGPoint2D:public TGObject2D,public TGPoint
|
|
{
|
|
DECLARE_RUN_TIME_CLASS(TGPoint2D)
|
|
|
|
public:
|
|
TGPoint2D(double *p);
|
|
TGPoint2D(float *p);
|
|
TGPoint2D(const TGPoint&pt);
|
|
TGPoint2D(double X = 0, double Y = 0, double Z = 0);
|
|
virtual ~TGPoint2D();
|
|
|
|
//override TGObject2D
|
|
virtual void SetElev(double elev);
|
|
virtual double GetElev() const;
|
|
|
|
virtual TGObject3D *Convert3D() const;
|
|
|
|
//override TGObject
|
|
virtual void TransformBy(const TGMatrix&matrix);
|
|
|
|
virtual bool IsValid() const;
|
|
virtual bool Intersect(const TGObject&obj,TGObjectList&res) const;
|
|
virtual bool IsInclude(const TGObject&obj) const;
|
|
|
|
virtual bool GetExtend2D(TPGeExtend2D& ext) const;
|
|
virtual bool GetExtend3D(TPGeExtend3D& ext) const;
|
|
|
|
virtual TGPoint GetSamplePoint() const;
|
|
|
|
virtual GRelation HitTest(const TGPoint&pt) const;
|
|
virtual TGObject* Clone() const;
|
|
|
|
bool operator == (const TGPoint &pt) const;
|
|
bool operator != (const TGPoint &pt) const;
|
|
|
|
double Distance(const TGPoint &pt) const;
|
|
};
|
|
|
|
#endif |