Changeset 1214 for GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE
- Timestamp:
- 08/17/06 21:41:24 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreKdTreeSceneManager.h
r1211 r1214 257 257 // visualize kdtree nodes or bounding boxes of objects in nodes 258 258 bool mShowNodes; 259 260 // vis mode 261 bool mEnhancedVisiblity; 259 262 260 263 // the method/algorithm used when rendering the scene -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreKdTreeSceneManager.cpp
r1211 r1214 31 31 mHiLiteLevel(0), 32 32 mShowAllBoxes(false), 33 mEnhancedVisiblity(true), 33 34 mBuildMethod(KdTree::KDBM_PRIORITYQUEUE), 34 35 mRenderMethod(KdTree::KDRM_INTERNAL), … … 141 142 mKdTree = new KdTree(mMaxDepth, mBuildMethod, mHiLiteLevel, mShowAllBoxes, mShowNodes); 142 143 mKdTree->build(static_cast<KdTreeSceneNode *>(mSceneRoot)); 144 mKdTree->setEnhancedVis(mEnhancedVisiblity); 143 145 return true; 144 146 } … … 146 148 { 147 149 bool enh = *static_cast<const bool *>(pValue); 150 mEnhancedVisiblity = enh; 148 151 if (mKdTree) 149 mKdTree->setEnhancedVis( enh);152 mKdTree->setEnhancedVis(mEnhancedVisiblity); 150 153 //setEnhancedVis(enh); 151 154 return true; … … 361 364 //KDCAMPTR_CAST(mCameras.begin()->second)->getEnhancedVisMode(); 362 365 else 363 *static_cast<bool *>(pDestValue) = true;366 *static_cast<bool *>(pDestValue) = mEnhancedVisiblity; 364 367 return true; 365 368 } … … 539 542 mKdTree = new KdTree(mMaxDepth, mBuildMethod); 540 543 mKdTree->build(static_cast<KdTreeSceneNode *>(mSceneRoot)); 544 mKdTree->setEnhancedVis(mEnhancedVisiblity); 541 545 } 542 546
Note: See TracChangeset
for help on using the changeset viewer.