Changeset 1214 for GTP/trunk


Ignore:
Timestamp:
08/17/06 21:41:24 (18 years ago)
Author:
szydlowski
Message:
 
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  
    257257        // visualize kdtree nodes or bounding boxes of objects in nodes 
    258258        bool mShowNodes; 
     259 
     260        // vis mode 
     261        bool mEnhancedVisiblity; 
    259262 
    260263        // the method/algorithm used when rendering the scene 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreKdTreeSceneManager.cpp

    r1211 r1214  
    3131mHiLiteLevel(0), 
    3232mShowAllBoxes(false), 
     33mEnhancedVisiblity(true), 
    3334mBuildMethod(KdTree::KDBM_PRIORITYQUEUE), 
    3435mRenderMethod(KdTree::KDRM_INTERNAL), 
     
    141142                mKdTree = new KdTree(mMaxDepth, mBuildMethod, mHiLiteLevel, mShowAllBoxes, mShowNodes); 
    142143                mKdTree->build(static_cast<KdTreeSceneNode *>(mSceneRoot)); 
     144                mKdTree->setEnhancedVis(mEnhancedVisiblity); 
    143145                return true; 
    144146        } 
     
    146148        { 
    147149                bool enh = *static_cast<const bool *>(pValue); 
     150                mEnhancedVisiblity = enh; 
    148151                if (mKdTree) 
    149                         mKdTree->setEnhancedVis(enh); 
     152                        mKdTree->setEnhancedVis(mEnhancedVisiblity); 
    150153                //setEnhancedVis(enh); 
    151154                return true; 
     
    361364                        //KDCAMPTR_CAST(mCameras.begin()->second)->getEnhancedVisMode(); 
    362365                else 
    363                         *static_cast<bool *>(pDestValue) = true; 
     366                        *static_cast<bool *>(pDestValue) = mEnhancedVisiblity; 
    364367                return true; 
    365368        } 
     
    539542                mKdTree = new KdTree(mMaxDepth, mBuildMethod); 
    540543                mKdTree->build(static_cast<KdTreeSceneNode *>(mSceneRoot)); 
     544                mKdTree->setEnhancedVis(mEnhancedVisiblity); 
    541545        } 
    542546 
Note: See TracChangeset for help on using the changeset viewer.