SphereTree.h

Go to the documentation of this file.
00001 /* $Id:$ */
00002 
00003 #ifndef __SPEHERE_TREE_H
00004 #define __SPEHERE_TREE_H
00005 
00006 #include <esg/spacesorting/BVH.h>
00007 
00008 /*
00009  * Bounding volumes hierarchy employing spheres as volumes.
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 /* leaf limit     */,
00028                 unsigned dl /* depth limit    */,
00029                 bool     dc /* delay creation */,
00030                 BVList::SplitStrategy ss)
00031         : BVH(ll, dl, dc, ss) {}
00032     
00033     virtual SDS* clone () const;
00034 };
00035     
00036 }; // namespace
00037 
00038 #endif //__SPEHERE_TREE_H

Generated on Wed Jun 28 12:24:28 2006 for esg by  doxygen 1.4.6