- Timestamp:
- 03/22/07 18:24:13 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp
r2278 r2280 12 12 #include <OgreIteratorWrappers.h> 13 13 #include <OgreHeightmapTerrainPageSource.h> 14 //#include "Containers.h"15 14 #include "ViewCellsManager.h" 16 15 #include <OgreConfigFile.h> 17 16 #include "OgreTypeConverter.h" 18 17 #include "OgreMeshInstance.h" 19 //#include "common.h"20 18 #include "OgreBoundingBoxConverter.h" 21 19 #include <OgreManualObject.h> … … 1160 1158 if (key == "HierarchyInterface") 1161 1159 { 1162 * static_cast< GtpVisibility::HierarchyInterface **>(val) = mHierarchyInterface;1160 * static_cast<PlatformHierarchyInterface **>(val) = mHierarchyInterface; 1163 1161 return true; 1164 1162 } … … 1643 1641 LoadViewCells(filename, mObjects, false, &bconverter); 1644 1642 1645 Ogre::LogManager::getSingleton().logMessage("******** view cells loaded *********");1643 LogManager::getSingleton().logMessage("******** view cells loaded *********"); 1646 1644 1647 1645 // objects are set to invisible initially … … 2027 2025 return; 2028 2026 } 2029 2027 Ogre::LogManager::getSingleton().logMessage("here99"); 2030 2028 Root::getSingleton()._setCurrentSceneManager(this); 2031 2029 mActiveQueuedRenderableVisitor->targetSceneMgr = this; … … 2227 2225 mVisibilityManager->SetQueryManager(queryManager); 2228 2226 2229 GtpVisibility::NodeInfoContainer visibleNodes;2230 GtpVisibility::MeshInfoContainer visibleGeometry;2231 GtpVisibility::PatchInfoContainer visiblePatches;2227 NodeInfoContainer visibleNodes; 2228 MeshInfoContainer visibleGeometry; 2229 PatchInfoContainer visiblePatches; 2232 2230 2233 2231 if (fromPoint) … … 2271 2269 if (!nodeVisibility) 2272 2270 { 2273 GtpVisibility::MeshInfoContainer::iterator geomIt, geomIt_end = visibleGeometry.end();2271 MeshInfoContainer::iterator geomIt, geomIt_end = visibleGeometry.end(); 2274 2272 2275 2273 for (geomIt = visibleGeometry.begin(); geomIt != geomIt_end; ++geomIt) … … 2294 2292 //-- apply queries on node level 2295 2293 2296 GtpVisibility::NodeInfoContainer::iterator nodesIt, nodesIt_end = visibleNodes.end();2294 NodeInfoContainer::iterator nodesIt, nodesIt_end = visibleNodes.end(); 2297 2295 2298 2296 for (nodesIt = visibleNodes.begin(); nodesIt != nodesIt_end; ++ nodesIt) … … 2433 2431 //----------------------------------------------------------------------- 2434 2432 void OcclusionCullingSceneManager::AddVisibleMeshGeometryToQueue( 2435 const GtpVisibility::MeshInfoContainer &visibleGeometry,2433 const MeshInfoContainer &visibleGeometry, 2436 2434 Camera *cam) 2437 2435 { 2438 GtpVisibility::MeshInfoContainer::const_iterator geomIt, geomIt_end = visibleGeometry.end();2436 MeshInfoContainer::const_iterator geomIt, geomIt_end = visibleGeometry.end(); 2439 2437 2440 2438 for (geomIt = visibleGeometry.begin(); geomIt != geomIt_end; ++geomIt) … … 2456 2454 //----------------------------------------------------------------------- 2457 2455 void OcclusionCullingSceneManager::AddVisibleNodeGeometryToQueue( 2458 const GtpVisibility::NodeInfoContainer &visibleNodes,2456 const NodeInfoContainer &visibleNodes, 2459 2457 Camera *cam) 2460 2458 { … … 2462 2460 //-- apply queries on node level 2463 2461 2464 GtpVisibility::NodeInfoContainer::const_iterator nodesIt, nodesIt_end = visibleNodes.end();2462 NodeInfoContainer::const_iterator nodesIt, nodesIt_end = visibleNodes.end(); 2465 2463 2466 2464 for (nodesIt = visibleNodes.begin(); nodesIt != nodesIt_end; ++ nodesIt) … … 2529 2527 mVisibilityManager->SetQueryManager(queryManager); 2530 2528 2531 GtpVisibility::NodeInfoContainer visibleNodes;2532 GtpVisibility::MeshInfoContainer visibleGeometry;2533 GtpVisibility::PatchInfoContainer visiblePatches;2529 NodeInfoContainer visibleNodes; 2530 MeshInfoContainer visibleGeometry; 2531 PatchInfoContainer visiblePatches; 2534 2532 2535 2533 if (mUseFromPointQueries)
Note: See TracChangeset
for help on using the changeset viewer.