00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef OSDL_BOUNDING_BOX_H_
00028 #define OSDL_BOUNDING_BOX_H_
00029
00030
00031 #include "OSDLEngineCommon.h"
00032
00033 #include "Ceylan.h"
00034
00035 #include <string>
00036 #include <list>
00037
00038
00039
00040
00041 namespace OSDL
00042 {
00043
00044
00045
00046 namespace Engine
00047 {
00048
00049
00050
00052 class OSDL_DLL BoundingBoxException : public EngineException
00053 {
00054 public:
00055
00056 explicit BoundingBoxException( const std::string & reason ) ;
00057
00058 virtual ~BoundingBoxException() throw() ;
00059
00060 } ;
00061
00062
00063
00084 enum IntersectionResult {
00085
00086 isSeparate,
00087 contains,
00088 isContained,
00089 intersects,
00090 isEqual
00091
00092 } ;
00093
00094
00095
00131 class OSDL_DLL BoundingBox : public Ceylan::TextDisplayable
00132 {
00133
00134
00135
00136 public:
00137
00138
00139
00152 explicit BoundingBox() ;
00153
00154
00155
00160 virtual ~BoundingBox() throw() ;
00161
00162
00163
00187 virtual IntersectionResult doesIntersectWith(
00188 BoundingBox & other ) = 0 ;
00189
00190
00191
00192
00193
00194
00195
00196
00205 static std::string InterpretIntersectionResult(
00206 IntersectionResult result ) ;
00207
00208
00209
00210
00211 private:
00212
00213
00214
00223 explicit BoundingBox( const BoundingBox & source ) ;
00224
00225
00226
00235 BoundingBox & operator= ( const BoundingBox & source ) ;
00236
00237
00238
00239 } ;
00240
00241
00242 }
00243
00244 }
00245
00246
00247
00248 #endif // OSDL_BOUNDING_BOX_H_
00249