Changeset 853


Ignore:
Timestamp:
04/28/06 08:14:03 (18 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp

    r828 r853  
    1010#include <OgreSubEntity.h> 
    1111#include "VspBspTree.h" 
     12#include <OgreIteratorWrappers.h> 
    1213 
    1314namespace Ogre { 
     
    835836} 
    836837 
     838bool OcclusionCullingSceneManager::CompareBoundingBoxes(const AxisAlignedBox &boxa,  
     839                                                                                                                const AxisAlignedBox &boxb) 
     840{ 
     841} 
     842 
    837843void OcclusionCullingSceneManager::LoadViewCells(string filename) 
    838844{ 
    839845        ObjectContainer objects; 
    840846        mViewCellsManager->LoadViewCells(filename, &objects); 
     847 
     848        AxisAlignedBox box; 
     849        list<SceneNode *> sceneNodeList; 
     850 
     851        findNodesIn(box, sceneNodeList, NULL); 
     852 
     853        list<SceneNode *>::const_iterator sit, sit_end = sceneNodeList.end(); 
     854 
     855        for (sit = sceneNodeList.begin(); sit != sceneNodeList.end(); ++ sit) 
     856        { 
     857                SceneNode *sn = *sit; 
     858                SceneNode::ObjectIterator oit = sn->getAttachedObjectIterator(); 
     859 
     860                 while (oit.hasMoreElements()) 
     861                 { 
     862                         MovableObject *mo = oit.getNext(); 
     863                         AxisAlignedBox bbox = mo->getWorldBoundingBox(); 
     864                CompareBoundingBoxes(*oit, box); 
     865                 } 
     866        } 
    841867} 
    842868 
Note: See TracChangeset for help on using the changeset viewer.