//-------------------------------------------------------------------------------------------------------+ // Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd. // = FileName : TPGeExtend3D Àà // = Version : ver2.0 // = Author : wlw // = CreateDate : 2002-09-09 // = Description: TPGeExtend3D ÉùÃ÷ // = Maintainers: // //-------------------------------------------------------------------------------------------------------+ #ifndef _TPGEEXTEND3D_H_ #define _TPGEEXTEND3D_H_ #ifndef _TPGEEXTEND_H_ #include "TPGeExtend.h" #endif #ifndef _TPGEEXTEND2D_H_ #include "TPGeExtend2D.h" #endif class GEOAPI TPGeExtend3D : public TPGeExtend2D { public: TPGeExtend3D(double xMin = 0,double xMax = 0,double yMin = 0,double yMax = 0,double zMin = 0,double zMax = 0); TPGeExtend3D(const TPGeExtend& xExt,const TPGeExtend& yExt,const TPGeExtend& zExt); virtual ~TPGeExtend3D(); void SetRange(double xMin,double xMax,double yMin,double yMax,double zMin,double zMax); void SetRange(const TPGeExtend& xExt,const TPGeExtend& yExt,const TPGeExtend& zExt); TPGeExtend3D operator & (const TPGeExtend3D& ext) const; TPGeExtend3D operator + (const TPGeExtend3D& ext) const; TPGeExtend3D& operator += (const TPGeExtend3D& ext); bool operator == (const TPGeExtend3D& ext) const; bool operator != (const TPGeExtend3D& ext) const; bool operator > (const TPGeExtend3D& ext) const; bool operator >= (const TPGeExtend3D& ext) const; bool operator < (const TPGeExtend3D& ext) const; bool operator <= (const TPGeExtend3D& ext) const; TPGeExtend GetZExtend() const; double GetDepth() const; double GetVolumn() const; bool IsValid() const; bool IsInclude(double x,double y,double z) const; bool IsInclude(const TPGeExtend3D& ext) const; bool IsIntersect(const TPGeExtend3D& ext) const; bool IsConnect(const TPGeExtend3D& ext) const; bool IsXYIntersect(const TPGeExtend2D& ext) const; bool IsXYConnect(const TPGeExtend2D& ext) const; void Inflate(double d); public: TPGeExtend m_zExt; }; #endif