Ignore:
Timestamp:
07/27/06 17:08:21 (18 years ago)
Author:
szydlowski
Message:

Started implementing the hierarchy interface for the kdtree scene manager

Location:
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include
Files:
1 added
2 edited

Legend:

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

    r1163 r1165  
    1919 
    2020#include <stack> 
     21 
     22#include "OgreKdTreeHierarchyInterface.h" 
    2123 
    2224namespace Ogre 
     
    339341 
    340342        public: 
     343                friend class Ogre::KdTreeHierarchyInterface; 
     344 
    341345                typedef KdTree::Leaf * LeafPtr; 
    342346                typedef std::set<LeafPtr> LeafSet; 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreKdTreeSceneManager.h

    r1163 r1165  
    1111#define _KdTreeSceneManager_H__ 
    1212 
     13#include <OgreKdTreeHierarchyInterface.h> 
    1314#include <OgreSceneManager.h> 
    1415#include "OgreKdTree.h" 
     16#include "VisibilityManager.h" 
     17 
     18#define KDTREE_MAX_DEPTH 20 
    1519 
    1620namespace Ogre 
     
    2327        { 
    2428        public: 
    25                 KdTreeSceneManager(const String& name); 
     29                KdTreeSceneManager(const String& name, GtpVisibility::VisibilityManager *vm); 
    2630                //KdTreeSceneManager(const String& name, int maxdepth); 
    2731                ~KdTreeSceneManager(void); 
     
    5458                        SceneManager::clearScene(); 
    5559                } 
     60 
    5661        protected: 
     62                GtpVisibility::VisibilityManager *mVisibilityManager; 
     63 
     64                KdTreeHierarchyInterface *mHierarchyInterface; 
    5765 
    5866                int mMaxDepth; 
     
    7684        protected: 
    7785                void initMetaData(void) const; 
     86                GtpVisibility::VisibilityManager *visManager; 
    7887        public: 
    79                 KdTreeSceneManagerFactory(void) {}; 
     88                KdTreeSceneManagerFactory(GtpVisibility::VisibilityManager * vm) 
     89                { 
     90                        visManager = vm; 
     91                }; 
    8092                ~KdTreeSceneManagerFactory(void) {}; 
    8193                /// Factory type name 
Note: See TracChangeset for help on using the changeset viewer.