Ignore:
Timestamp:
08/13/06 21:40:58 (18 years ago)
Author:
szydlowski
Message:

certain types of movableobject (camera, frustum, light) now excluded from tree building, list is extensible

Location:
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include
Files:
3 edited

Legend:

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

    r1195 r1203  
    1717#define KDBRANCHPTR_CAST(a) (static_cast<KdTree::Branch *>(a)) 
    1818#define KDLEAFPTR_CAST(a) (static_cast<KdTree::Leaf *>(a)) 
     19 
     20#define KDTREE_LOGNAME "KdTreeBuild.log" 
    1921 
    2022#include <OgreAxisAlignedBox.h> 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreKdTreeSceneManager.h

    r1192 r1203  
    2222 
    2323class KdTreeSceneNode; 
    24 //class WireBoundingBox; 
    2524 
    2625class KdTreeSceneManager : public SceneManager 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreKdTreeSceneNode.h

    r1187 r1203  
    2828                ~KdTreeSceneNode() {}; 
    2929 
    30                 // calculate all-enclosing AABB, similar to _updateBounds() 
    31                 void forceComputeAABB(AxisAlignedBox& aabb); // OBSOLETE !! 
    32  
    3330                // gather info for kd-tree creation 
    3431                virtual void computeScene(PlaneEventList& events, AxisAlignedBox& aabb, int& nObjects, bool includeChildren = true); 
     
    4138 
    4239                // return a bounding box enclosing all objects 
    43                 virtual AxisAlignedBox getBoundingBox() const; 
    44  
    45                 // custom render op, show bounding box instead of axes 
    46                 //virtual void getRenderOperation(RenderOperation& op); 
    47  
    48                 //virtual void _findVisibleObjects(Camera* cam, RenderQueue* queue,  
    49                 //      bool includeChildren = true, bool displayNodes = false, bool onlyShadowCasters = false); 
     40                virtual AxisAlignedBox getBoundingBox(void) const; 
    5041 
    5142                // DEBUG 
    52                 String dumpToString(); 
     43                String dumpToString(void); 
    5344        protected: 
    5445                virtual void _updateBounds(void); 
    5546 
    56                 //AxisAlignedBox mLocalAABB; 
     47                typedef std::set<String> StringSet; 
     48 
     49                static StringSet& getExcludedMovables(void); 
    5750        }; 
    5851 
Note: See TracChangeset for help on using the changeset viewer.