00001
00002
00003 #ifndef __SPEHERE_TREE_H
00004 #define __SPEHERE_TREE_H
00005
00006 #include <esg/spacesorting/BVH.h>
00007
00008
00009
00010
00011
00012 namespace esg {
00013
00014 class OGSCENE_EXPORT SphereTree : public BVH {
00015 protected:
00016 virtual bool _enlarge_bv (Geometry**, Geometry&);
00017 virtual Geometry* _create_bv (List<SceneGraphObject>&);
00018 virtual Geometry* _create_bv (Geometry&, Geometry&);
00019 virtual Geometry* _create_bv (SceneGraphObject&);
00020 virtual BVList* _create_list ();
00021
00022 virtual void _duplicate_attributes (const SDS&);
00023
00024 SphereTree () {}
00025
00026 public:
00027 SphereTree (unsigned ll ,
00028 unsigned dl ,
00029 bool dc ,
00030 BVList::SplitStrategy ss)
00031 : BVH(ll, dl, dc, ss) {}
00032
00033 virtual SDS* clone () const;
00034 };
00035
00036 };
00037
00038 #endif //__SPEHERE_TREE_H