68 lines
1.5 KiB
C++
68 lines
1.5 KiB
C++
//-----------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
|
|
// = FileName : TGPlane3D.h
|
|
// = Version : ver2.0
|
|
// = Author : xlc
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: ÀàµÄÉùÃ÷
|
|
// = Maintainers:
|
|
//
|
|
//-----------------------------------------------------------------------------+
|
|
#ifndef _TGPLANE3D_H_
|
|
#define _TGPLANE3D_H_
|
|
|
|
#ifndef _TPGEFACE3D_H_
|
|
#include "TPGeFace3D.h"
|
|
#endif
|
|
|
|
#ifndef _TPGEPLANE_H_
|
|
#include "TPGePlane.h"
|
|
#endif
|
|
|
|
#ifndef _TGPOINT_H_
|
|
#include "TGPoint.h"
|
|
#endif
|
|
|
|
#ifndef _TGVECTOR3D_H_
|
|
#include "TGVector3D.h"
|
|
#endif
|
|
|
|
#ifndef _TGOBJECTLIST_H_
|
|
#include "TGObjectList.h"
|
|
#endif
|
|
|
|
#ifndef _TGOBJECT_H_
|
|
#include "TGObject.h"
|
|
#endif
|
|
|
|
#ifndef _TGMATRIX_H_
|
|
#include "TGMatrix.h"
|
|
#endif
|
|
|
|
#ifndef _TWFLAG_H_
|
|
#include "TWFlag.h"
|
|
#endif
|
|
|
|
//¿Õ¼äÆ½Ãæ
|
|
class GEOAPI TGPlane3D : public TPGeFace3D,public TPGePlane
|
|
{
|
|
DECLARE_RUN_TIME_CLASS(TGPlane3D)
|
|
public:
|
|
TGPlane3D();
|
|
TGPlane3D(const TGVector3D&vt,const TGPoint&pt);
|
|
TGPlane3D(const TPGePlane&plane);
|
|
virtual ~TGPlane3D();
|
|
|
|
virtual TGObject2D* Convert2D()const;
|
|
virtual bool GetPlane(TPGePlane&plane)const;
|
|
|
|
//override TGObject
|
|
virtual bool IsValid()const;
|
|
virtual TGObject * Clone()const;
|
|
virtual void TransformBy(const TGMatrix&matrix);
|
|
virtual bool Intersect(const TGObject&obj,TGObjectList&res)const;
|
|
virtual bool IsInclude(const TGObject&obj)const;
|
|
virtual GRelation HitTest(const TGPoint&pt)const;
|
|
};
|
|
|
|
#endif |