Ignore:
Timestamp:
03/22/07 18:24:13 (18 years ago)
Author:
mattausch
Message:

removed dependency on ogre in gtpvisibility

File:
1 edited

Legend:

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

    r2278 r2280  
    1212#include <OgreIteratorWrappers.h> 
    1313#include <OgreHeightmapTerrainPageSource.h> 
    14 //#include "Containers.h" 
    1514#include "ViewCellsManager.h" 
    1615#include <OgreConfigFile.h> 
    1716#include "OgreTypeConverter.h" 
    1817#include "OgreMeshInstance.h" 
    19 //#include "common.h" 
    2018#include "OgreBoundingBoxConverter.h" 
    2119#include <OgreManualObject.h> 
     
    11601158        if (key == "HierarchyInterface") 
    11611159        { 
    1162                 * static_cast<GtpVisibility::HierarchyInterface **>(val) = mHierarchyInterface; 
     1160                * static_cast<PlatformHierarchyInterface **>(val) = mHierarchyInterface; 
    11631161                return true; 
    11641162        } 
     
    16431641                        LoadViewCells(filename, mObjects, false, &bconverter); 
    16441642         
    1645         Ogre::LogManager::getSingleton().logMessage("******** view cells loaded *********"); 
     1643        LogManager::getSingleton().logMessage("******** view cells loaded *********"); 
    16461644 
    16471645        // objects are set to invisible initially 
     
    20272025                return; 
    20282026        } 
    2029  
     2027Ogre::LogManager::getSingleton().logMessage("here99"); 
    20302028    Root::getSingleton()._setCurrentSceneManager(this); 
    20312029        mActiveQueuedRenderableVisitor->targetSceneMgr = this; 
     
    22272225        mVisibilityManager->SetQueryManager(queryManager); 
    22282226 
    2229         GtpVisibility::NodeInfoContainer visibleNodes; 
    2230         GtpVisibility::MeshInfoContainer visibleGeometry; 
    2231         GtpVisibility::PatchInfoContainer visiblePatches; 
     2227        NodeInfoContainer visibleNodes; 
     2228        MeshInfoContainer visibleGeometry; 
     2229        PatchInfoContainer visiblePatches; 
    22322230 
    22332231        if (fromPoint) 
     
    22712269        if (!nodeVisibility) 
    22722270        { 
    2273                 GtpVisibility::MeshInfoContainer::iterator geomIt, geomIt_end = visibleGeometry.end(); 
     2271                MeshInfoContainer::iterator geomIt, geomIt_end = visibleGeometry.end(); 
    22742272 
    22752273                for (geomIt = visibleGeometry.begin(); geomIt != geomIt_end; ++geomIt) 
     
    22942292                //-- apply queries on node level 
    22952293 
    2296                 GtpVisibility::NodeInfoContainer::iterator nodesIt, nodesIt_end = visibleNodes.end(); 
     2294                NodeInfoContainer::iterator nodesIt, nodesIt_end = visibleNodes.end(); 
    22972295 
    22982296                for (nodesIt = visibleNodes.begin(); nodesIt != nodesIt_end; ++ nodesIt) 
     
    24332431//----------------------------------------------------------------------- 
    24342432void OcclusionCullingSceneManager::AddVisibleMeshGeometryToQueue( 
    2435                                                 const GtpVisibility::MeshInfoContainer &visibleGeometry, 
     2433                                                const MeshInfoContainer &visibleGeometry, 
    24362434                                                Camera *cam) 
    24372435{ 
    2438         GtpVisibility::MeshInfoContainer::const_iterator geomIt, geomIt_end = visibleGeometry.end(); 
     2436        MeshInfoContainer::const_iterator geomIt, geomIt_end = visibleGeometry.end(); 
    24392437 
    24402438        for (geomIt = visibleGeometry.begin(); geomIt != geomIt_end; ++geomIt) 
     
    24562454//----------------------------------------------------------------------- 
    24572455void OcclusionCullingSceneManager::AddVisibleNodeGeometryToQueue( 
    2458                                                 const GtpVisibility::NodeInfoContainer &visibleNodes, 
     2456                                                const NodeInfoContainer &visibleNodes, 
    24592457                                                Camera *cam) 
    24602458{ 
     
    24622460        //-- apply queries on node level 
    24632461 
    2464         GtpVisibility::NodeInfoContainer::const_iterator nodesIt, nodesIt_end = visibleNodes.end(); 
     2462        NodeInfoContainer::const_iterator nodesIt, nodesIt_end = visibleNodes.end(); 
    24652463 
    24662464        for (nodesIt = visibleNodes.begin(); nodesIt != nodesIt_end; ++ nodesIt) 
     
    25292527        mVisibilityManager->SetQueryManager(queryManager); 
    25302528 
    2531         GtpVisibility::NodeInfoContainer visibleNodes; 
    2532         GtpVisibility::MeshInfoContainer visibleGeometry; 
    2533         GtpVisibility::PatchInfoContainer visiblePatches; 
     2529        NodeInfoContainer visibleNodes; 
     2530        MeshInfoContainer visibleGeometry; 
     2531        PatchInfoContainer visiblePatches; 
    25342532 
    25352533        if (mUseFromPointQueries) 
Note: See TracChangeset for help on using the changeset viewer.