Changeset 1285 for GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src
- Timestamp:
- 08/25/06 17:44:02 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreKdTree.cpp
r1250 r1285 1273 1273 void KdTree::dump() 1274 1274 { 1275 LogManager::getSingleton().logMessage("#@#@#@#@ Dumping KdTree #@#@#@#@"); 1275 //LogManager::getSingleton().logMessage("#@#@#@#@ Dumping KdTree #@#@#@#@"); 1276 mBuildLog->logMessage("#@#@#@#@ Dumping KdTree #@#@#@#@"); 1276 1277 if (mKdRoot) 1277 1278 dump(mKdRoot); … … 1281 1282 void KdTree::dump(KdTree::Node * node) 1282 1283 { 1283 LogManager * log = LogManager::getSingletonPtr();1284 //LogManager * log = LogManager::getSingletonPtr(); 1284 1285 KdTreeSceneNode * scenenode; 1285 1286 String pad; … … 1300 1301 { 1301 1302 scenenode = dynamic_cast<KdTreeSceneNode *>(*it); 1302 log->logMessage(pad + "# Leaf level " +1303 mBuildLog->logMessage(pad + "# Leaf level " + 1303 1304 StringConverter::toString(node->getLevel()) + 1304 1305 " SceneNode " + scenenode->getName()); 1305 log->logMessage(pad + "## Objects: " + scenenode->dumpToString());1306 mBuildLog->logMessage(pad + "## Objects: " + scenenode->dumpToString()); 1306 1307 it++; 1307 1308 } … … 1312 1313 if (branch->mLeft) 1313 1314 { 1314 log->logMessage(pad + "# Branch level " +1315 mBuildLog->logMessage(pad + "# Branch level " + 1315 1316 StringConverter::toString(node->getLevel()) + " Left Child"); 1316 1317 dump(branch->mLeft); … … 1318 1319 if (branch->mRight) 1319 1320 { 1320 log->logMessage(pad + "# Branch level " +1321 mBuildLog->logMessage(pad + "# Branch level " + 1321 1322 StringConverter::toString(node->getLevel()) + " Right Child"); 1322 1323 dump(branch->mRight); -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreKdTreeSceneManager.cpp
r1273 r1285 67 67 delete mKdTree; 68 68 } 69 70 void KdTreeSceneManager::clearScene() 71 { 72 // DEBUG 73 if (mKdTree) 74 mKdTree->dump(); 75 76 // must happen before actual scene is cleared 77 OGRE_DELETE(mKdTree); 78 79 SceneManager::clearScene(); 80 } 81 69 82 70 83 const String& KdTreeSceneManager::getTypeName(void) const
Note: See TracChangeset
for help on using the changeset viewer.