Changeset 2066 for GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src
- Timestamp:
- 01/31/07 01:51:57 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreBvHierarchy.cpp
r1344 r2066 1536 1536 it != leaf->mBvhRenderables.end(); it ++) 1537 1537 { 1538 SceneNode *sn = dynamic_cast<SceneNode *>(*it);1538 SceneNode *sn = static_cast<SceneNode *>(*it); 1539 1539 1540 1540 if (sn != exclude) … … 1618 1618 while (it != end) 1619 1619 { 1620 scenenode = dynamic_cast<BvHierarchySceneNode *>(*it);1620 scenenode = static_cast<BvHierarchySceneNode *>(*it); 1621 1621 mBuildLog->logMessage(pad + "# Leaf level " + 1622 1622 StringConverter::toString(node->getLevel()) + -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreBvHierarchyInterface.cpp
r1320 r2066 132 132 } 133 133 134 dynamic_cast<BvHierarchySceneManager *>(mSceneManager)->getRenderQueue()->addRenderable(box);134 static_cast<BvHierarchySceneManager *>(mSceneManager)->getRenderQueue()->addRenderable(box); 135 135 } 136 136 -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreBvHierarchySceneManager.cpp
r1816 r2066 1357 1357 if (entry.mObject) 1358 1358 { 1359 OgreMeshInstance *omi = dynamic_cast<OgreMeshInstance *>(entry.mObject);1359 OgreMeshInstance *omi = static_cast<OgreMeshInstance *>(entry.mObject); 1360 1360 omi->GetEntity()->setVisible(load); 1361 1361 } -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreKdTree.cpp
r1593 r2066 1528 1528 it != leaf->mKdRenderables.end(); it ++) 1529 1529 { 1530 SceneNode *sn = dynamic_cast<SceneNode *>(*it);1530 SceneNode *sn = static_cast<SceneNode *>(*it); 1531 1531 1532 1532 if (sn != exclude) … … 1606 1606 while (it != end) 1607 1607 { 1608 scenenode = dynamic_cast<KdTreeSceneNode *>(*it);1608 scenenode = static_cast<KdTreeSceneNode *>(*it); 1609 1609 mBuildLog->logMessage(pad + "# Leaf level " + 1610 1610 StringConverter::toString(node->getLevel()) + -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreKdTreeHierarchyInterface.cpp
r1304 r2066 132 132 } 133 133 134 dynamic_cast<KdTreeSceneManager *>(mSceneManager)->getRenderQueue()->addRenderable(box);134 static_cast<KdTreeSceneManager *>(mSceneManager)->getRenderQueue()->addRenderable(box); 135 135 } 136 136 -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreKdTreeSceneManager.cpp
r1816 r2066 1346 1346 ////////// 1347 1347 //-- set PVS of view cell visible 1348 1348 1349 GtpVisibilityPreprocessor::ObjectPvsIterator pit = vc->GetPvs().GetIterator(); 1349 1350 … … 1354 1355 if (entry.mObject) 1355 1356 { 1356 OgreMeshInstance *omi = dynamic_cast<OgreMeshInstance *>(entry.mObject);1357 OgreMeshInstance *omi = static_cast<OgreMeshInstance *>(entry.mObject); 1357 1358 omi->GetEntity()->setVisible(load); 1358 1359 } -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreMeshInstance.cpp
r1593 r2066 4 4 namespace Ogre 5 5 { 6 7 6 OgreMeshInstance::OgreMeshInstance(Entity *ent): 8 7 GtpVisibilityPreprocessor::Intersectable(), mEntity(ent) … … 74 73 return s; 75 74 } 76 77 75 } -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp
r1823 r2066 28 28 29 29 //----------------------------------------------------------------------- 30 OcclusionCullingSceneManager::OcclusionCullingSceneManager(const String& name, 31 GtpVisibility::VisibilityManager *visManager): 30 OcclusionCullingSceneManager::OcclusionCullingSceneManager( 31 const String& name, 32 GtpVisibility::VisibilityManager *visManager): 32 33 TerrainSceneManager(name), 33 34 mVisibilityManager(visManager), … … 432 433 433 434 if (obj->Type() == 434 GtpVisibilityPreprocessor::Intersectable:: OBJECTS_INTERSECTABLE)435 GtpVisibilityPreprocessor::Intersectable::ENGINE_INTERSECTABLE) 435 436 { 436 ObjectsIntersectable *oi = dynamic_cast<ObjectsIntersectable *>(obj);437 EngineIntersectable *oi = static_cast<EngineIntersectable *>(obj); 437 438 438 439 EntityContainer *entries = oi->GetItem(); … … 457 458 case GtpVisibilityPreprocessor::Intersectable::OGRE_MESH_INSTANCE: 458 459 { 459 OgreMeshInstance *omi = dynamic_cast<OgreMeshInstance *>(obj);460 OgreMeshInstance *omi = static_cast<OgreMeshInstance *>(obj); 460 461 omi->GetEntity()->_updateRenderQueue(getRenderQueue()); 461 462 } 462 463 break; 463 464 464 case GtpVisibilityPreprocessor::Intersectable:: OBJECTS_INTERSECTABLE:465 case GtpVisibilityPreprocessor::Intersectable::ENGINE_INTERSECTABLE: 465 466 { 466 ObjectsIntersectable *oi = dynamic_cast<ObjectsIntersectable *>(obj);467 EngineIntersectable *oi = static_cast<EngineIntersectable *>(obj); 467 468 468 469 EntityContainer *entries = oi->GetItem(); … … 471 472 for (eit = entries->begin(); eit != eit_end; ++ eit) 472 473 { 473 //OgreMeshInstance *omi = dynamic_cast<OgreMeshInstance *>(*eit);474 //OgreMeshInstance *omi = static_cast<OgreMeshInstance *>(*eit); 474 475 Entity *ent = *eit; 475 476 Any newAny = ent->getUserAny(); … … 1394 1395 case GtpVisibilityPreprocessor::Intersectable::OGRE_MESH_INSTANCE: 1395 1396 { 1396 OgreMeshInstance *omi = dynamic_cast<OgreMeshInstance *>(entry);1397 OgreMeshInstance *omi = static_cast<OgreMeshInstance *>(entry); 1397 1398 omi->GetEntity()->setVisible(visible); 1398 1399 //GtpVisibilityPreprocessor::Debug << "assigned id " << omi->GetId() << endl; 1399 1400 } 1400 1401 break; 1401 case GtpVisibilityPreprocessor::Intersectable:: OBJECTS_INTERSECTABLE:1402 case GtpVisibilityPreprocessor::Intersectable::ENGINE_INTERSECTABLE: 1402 1403 { 1403 //GtpVisibilityPreprocessor::ObjectsIntersectable *oi = 1404 // dynamic_cast<GtpVisibilityPreprocessor::ObjectsIntersectable *>(entry); 1405 ObjectsIntersectable *oi = dynamic_cast<ObjectsIntersectable *>(entry); 1406 1407 //GtpVisibilityPreprocessor::ObjectContainer *entries = oi->GetItem(); 1404 EngineIntersectable *oi = static_cast<EngineIntersectable *>(entry); 1405 1408 1406 EntityContainer *entries = oi->GetItem(); 1409 1407 EntityContainer::const_iterator eit, … … 1411 1409 for (eit = entries->begin(); eit != eit_end; ++ eit) 1412 1410 { 1413 //OgreMeshInstance *omi = dynamic_cast<OgreMeshInstance *>(*eit);1414 1411 Entity *ent = *eit; 1415 1412 ent->setVisible(visible); 1416 //GtpVisibilityPreprocessor::Debug << "assigned id " << omi->GetId() << endl;1417 1413 } 1418 1414 } … … 1484 1480 case GtpVisibilityPreprocessor::Intersectable::OGRE_MESH_INSTANCE: 1485 1481 { 1486 OgreMeshInstance *omi = dynamic_cast<OgreMeshInstance *>(obj);1482 OgreMeshInstance *omi = static_cast<OgreMeshInstance *>(obj); 1487 1483 omi->GetEntity()->setVisible(load); 1488 1484 //GtpVisibilityPreprocessor::Debug << "assigned id " << omi->GetId() << endl; 1489 1485 } 1490 1486 break; 1491 case GtpVisibilityPreprocessor::Intersectable:: OBJECTS_INTERSECTABLE:1487 case GtpVisibilityPreprocessor::Intersectable::ENGINE_INTERSECTABLE: 1492 1488 { 1493 //GtpVisibilityPreprocessor:: ObjectsIntersectable *oi =1494 // dynamic_cast<GtpVisibilityPreprocessor::ObjectsIntersectable *>(entry);1495 ObjectsIntersectable *oi = dynamic_cast<ObjectsIntersectable *>(obj);1489 //GtpVisibilityPreprocessor::EngineIntersectable *oi = 1490 // static_cast<GtpVisibilityPreprocessor::EngineIntersectable *>(entry); 1491 EngineIntersectable *oi = static_cast<EngineIntersectable *>(obj); 1496 1492 1497 1493 //GtpVisibilityPreprocessor::ObjectContainer *entries = oi->GetItem(); … … 1502 1498 for (eit = entries->begin(); eit != eit_end; ++ eit) 1503 1499 { 1504 //OgreMeshInstance *omi = dynamic_cast<OgreMeshInstance *>(*eit);1500 //OgreMeshInstance *omi = static_cast<OgreMeshInstance *>(*eit); 1505 1501 //omi->GetEntity()->setVisible(load); 1506 1502 Entity *ent = *eit; -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionQueriesQueryManager.cpp
r1602 r2066 27 27 // we need access to the scene manager and the rendersystem 28 28 PlatformHierarchyInterface *pfHierarchyInterface = 29 // dynamic_cast<PlatformHierarchyInterface *>(mHierarchyInterface);29 //static_cast<PlatformHierarchyInterface *>(mHierarchyInterface); 30 30 static_cast<PlatformHierarchyInterface *>(mHierarchyInterface); 31 31 -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOctreeHierarchyInterface.cpp
r944 r2066 116 116 octant->setLastRendered(mFrameId); 117 117 OctreeSceneManager *ocm = 118 dynamic_cast<OctreeSceneManager *>(mSceneManager);118 static_cast<OctreeSceneManager *>(mSceneManager); 119 119 120 120 ocm->_renderOctant(mCamera, octant, mOnlyShadowCasters, mLeavePassesInQueue); … … 172 172 } 173 173 174 // dynamic_cast<OctreeSceneManager *>(mSceneManager)->getBoxes()->push_back(box);175 dynamic_cast<OctreeSceneManager *>(mSceneManager)->getBoxes()->push_back(box);174 //static_cast<OctreeSceneManager *>(mSceneManager)->getBoxes()->push_back(box); 175 static_cast<OctreeSceneManager *>(mSceneManager)->getBoxes()->push_back(box); 176 176 } 177 177 //----------------------------------------------------------------------- -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgrePlatformQueryManager.cpp
r925 r2066 33 33 bool relativeVisibility) 34 34 { 35 SceneManager *sm = // dynamic_cast<PlatformHierarchyInterface *>35 SceneManager *sm = //static_cast<PlatformHierarchyInterface *> 36 36 static_cast<PlatformHierarchyInterface *> 37 37 (mHierarchyInterface)->GetSceneManager(); … … 96 96 // we need access to the scene manager and the rendersystem 97 97 PlatformHierarchyInterface *pfHierarchyInterface = 98 // dynamic_cast<PlatformHierarchyInterface *>(mHierarchyInterface);98 //static_cast<PlatformHierarchyInterface *>(mHierarchyInterface); 99 99 static_cast<PlatformHierarchyInterface *>(mHierarchyInterface); 100 100 … … 195 195 196 196 SceneManager *sm = 197 // dynamic_cast<PlatformHierarchyInterface *>(mHierarchyInterface)->GetSceneManager();197 //static_cast<PlatformHierarchyInterface *>(mHierarchyInterface)->GetSceneManager(); 198 198 static_cast<PlatformHierarchyInterface *>(mHierarchyInterface)->GetSceneManager(); 199 199
Note: See TracChangeset
for help on using the changeset viewer.