- Timestamp:
- 04/28/06 08:14:03 (19 years ago)
- 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 10 10 #include <OgreSubEntity.h> 11 11 #include "VspBspTree.h" 12 #include <OgreIteratorWrappers.h> 12 13 13 14 namespace Ogre { … … 835 836 } 836 837 838 bool OcclusionCullingSceneManager::CompareBoundingBoxes(const AxisAlignedBox &boxa, 839 const AxisAlignedBox &boxb) 840 { 841 } 842 837 843 void OcclusionCullingSceneManager::LoadViewCells(string filename) 838 844 { 839 845 ObjectContainer objects; 840 846 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 } 841 867 } 842 868
Note: See TracChangeset
for help on using the changeset viewer.