Ignore:
Timestamp:
08/29/06 18:28:00 (18 years ago)
Author:
szydlowski
Message:

Implemented PVS support in kdtree scene manager - not complete, defunct
modified BoundingBoxConverter? to work with KdTreeSceneManager?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreKdTree.h

    r1250 r1296  
    561561                //void findVisibleNodes(NodeList& visibleNodes, Camera * cam); 
    562562 
     563                /** Recurses the kdtree, adding any nodes intersecting with the  
     564                box/sphere/volume/ray into the given list. 
     565                It ignores the exclude scene node. 
     566                */ 
     567                void findNodesIn(const AxisAlignedBox &box, std::list<SceneNode *> &list, SceneNode *exclude = 0); 
     568                void findNodesIn(const Sphere &sphere, std::list<SceneNode *> &list, SceneNode *exclude = 0); 
     569                void findNodesIn(const PlaneBoundedVolume &volume, std::list<SceneNode *> &list, SceneNode *exclude = 0); 
     570                void findNodesIn(const Ray &ray, std::list<SceneNode *> &list, SceneNode *exclude = 0); 
     571 
    563572                // self-explanatory ... 
    564573                int getMaxDepth(void) { return mMaxDepth; }; 
    565                 Stats getStats(void) const { return mStats; }; 
     574                const Stats& getStats(void) const { return mStats; }; 
    566575                AxisAlignedBox getBox(void) { if (mKdRoot) return mKdRoot->mAABB; else return AxisAlignedBox(); }; 
    567576                void setBuildMethod(BuildMethod bm) { mBuildMethod = bm; } 
     
    598607                //void recFindVisibleNodes(KdTree::Node * node, NodeList& visibleNodes, Camera * cam); 
    599608 
     609                /** Recurses the kdtree, adding any nodes intersecting with the  
     610                box/sphere/volume/ray into the given list. 
     611                It ignores the exclude scene node. 
     612                */ 
     613                void recFindNodesIn(const AxisAlignedBox &box, std::list<SceneNode *> &list, SceneNode *exclude, Node * node, bool full = false); 
     614                void recFindNodesIn(const Sphere &sphere, std::list<SceneNode *> &list, SceneNode *exclude, Node * node, bool full = false); 
     615                void recFindNodesIn(const PlaneBoundedVolume &volume, std::list<SceneNode *> &list, SceneNode *exclude, Node * node, bool full = false); 
     616                void recFindNodesIn(const Ray &ray, std::list<SceneNode *> &list, SceneNode *exclude, Node * node, bool full = false); 
     617 
    600618                // the root node of the kdtree 
    601619                KdTree::Node * mKdRoot; 
Note: See TracChangeset for help on using the changeset viewer.