![]() |
TAPs 0.7.7.3
|
00001 /****************************************************************************** 00002 TAPsBVSupportFns.hpp 00003 ******************************************************************************/ 00009 /****************************************************************************** 00010 SUKITTI PUNAK (08/26/2010) 00011 UPDATE (09/26/2010) 00012 ******************************************************************************/ 00013 #ifndef TAPs_BV_SUPPORT_FNS_HPP 00014 #define TAPs_BV_SUPPORT_FNS_HPP 00015 00016 #include "TAPsBoundingVolumeList.hpp" 00017 00018 BEGIN_NAMESPACE_TAPs 00019 //============================================================================= 00020 template <typename T> 00021 class BVSupportFns { 00022 //============================================================================= 00023 // Member Functions 00024 public: 00025 //------------------------------------------------------------------------- 00026 00028 static BoundingVolume<T> * CreateBVOfType ( Enum::CD type ); 00029 00030 #if defined(__gl_h_) || defined(__GL_H__) 00031 00032 static BoundingVolume<T> * CreateBVOfType ( 00033 Enum::CD type, 00034 OpenGL::OpenGLModel<T> * pModel 00035 ); 00036 #endif 00037 00038 //--------------------------------------------------------------- 00039 00041 static BoundingSphere<T> * CreateBVSphere (); 00042 00044 static BoundingCylinder<T> * CreateBVCylinder (); 00045 00047 static BoundingBox<T> * CreateBVBox (); 00048 00049 //------------------------------------------------------------------------- 00050 protected: 00051 //------------------------------------------------------------------------- 00052 //------------------------------------------------------------------------- 00053 private: 00054 //------------------------------------------------------------------------- 00055 //------------------------------------------------------------------------- 00056 }; // END CLASS BVSupportFns 00057 //============================================================================= 00058 END_NAMESPACE_TAPs 00059 //----------------------------------------------------------------------------- 00060 // Include definition if TAPs_USE_EXPORT is not defined 00061 //#if !defined( TAPs_USE_EXPORT ) 00062 #include "TAPsBVSupportFns.cpp" 00063 //#endif 00064 //----------------------------------------------------------------------------- 00065 #endif 00066 //34567890123456789012345678901234567890123456789012345678901234567890123456789 00067 //--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----