Changeset 2108 for GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE
- Timestamp:
- 02/09/07 03:05:52 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp
r2102 r2108 216 216 LogManager::getSingleton().logMessage("loading terrain"); 217 217 } 218 else 219 { 220 mShowTerrain = false; 221 LogManager::getSingleton().logMessage("loading geometry"); 222 } 218 223 } 219 224 … … 356 361 "TerrainSceneManager::loadConfig"); 357 362 } 363 358 364 TerrainPageSourceOptionList optlist; 359 365 ConfigFile::SettingsIterator setIt = config.getSettingsIterator(); … … 367 373 } 368 374 } 375 369 376 // set the page source 370 377 selectPageSource(pageSourceName, optlist); … … 394 401 } 395 402 396 // s et old view cell geometry to invisible403 // show current view cell geometry 397 404 if (mCurrentViewCell && mCurrentViewCell->GetMesh()) 398 405 { … … 906 913 mElementaryViewCell = NULL; 907 914 908 // with view cellsall objects are set to invisible per default915 // all objects are set to invisible per default 909 916 SetObjectsVisible(!mUseViewCells); 910 917 … … 936 943 return true; 937 944 } 945 if (key == "ShowTerrain") 946 { 947 mShowTerrain = *static_cast<const bool *>(val); 948 return true; 949 } 938 950 if (key == "UseVisibilityFilter") 939 951 { … … 942 954 // set null => recomputation of the pvs 943 955 mElementaryViewCell = NULL; 956 944 957 return true; 945 958 } … … 982 995 return true; 983 996 } 984 if (key == "AlgorithmType") 997 if (key == "NormalExecution") 998 { 999 * static_cast<bool *>(val) = (bool *)mNormalExecution; 1000 return true; 1001 } 1002 if (key == "Algorithm") 985 1003 { 986 1004 GtpVisibility::VisibilityEnvironment::CullingManagerType algorithm = … … 1683 1701 { 1684 1702 using namespace std; 1703 1685 1704 // use leaf nodes of the original spatial hierarchy as occludees 1686 1705 vector<string> filenames; 1687 1706 const int files = SplitFilenames(filename, filenames); 1688 1707 1689 st d::stringstream d;1708 stringstream d; 1690 1709 d << "number of input files: " << files << "\n"; 1691 1710 LogManager::getSingleton().logMessage(d.str()); … … 1702 1721 return false; 1703 1722 } 1704 /* 1723 1705 1724 for (fit = filenames.begin(); fit != fit_end; ++ fit, ++ i) 1706 1725 { … … 1720 1739 result = true; 1721 1740 } 1722 */ result=true; 1741 1723 1742 return result; 1724 1743 }
Note: See TracChangeset
for help on using the changeset viewer.