Ignore:
Timestamp:
01/03/08 15:53:44 (17 years ago)
Author:
bittner
Message:

big merge: preparation for havran ray caster, check if everything works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp

    r2547 r2575  
    709709                                                        const bool globalCriteriaMet) 
    710710{ 
     711#ifdef PERFTIMER   
    711712        mSubdivTimer.Entry(); 
    712  
     713#endif 
     714         
    713715        // todo remove dynamic cast 
    714716        VspSubdivisionCandidate *sc =  
     
    788790        } 
    789791 
     792#ifdef PERFTIMER   
    790793        mSubdivTimer.Exit(); 
    791  
     794#endif 
    792795        return newNode; 
    793796} 
     
    797800                                                                           bool computeSplitPlane) 
    798801{ 
     802#ifdef PERFTIMER   
    799803        mPlaneTimer.Entry(); 
    800  
     804#endif 
     805         
    801806        if (computeSplitPlane) 
    802807        { 
     
    818823        } 
    819824         
     825#ifdef PERFTIMER   
    820826        mPlaneTimer.Exit(); 
    821827        mEvalTimer.Entry(); 
    822  
     828#endif 
     829         
    823830        VspLeaf *leaf = static_cast<VspLeaf *>(splitCandidate.mParentData.mNode); 
    824831 
     
    917924 
    918925        //cout << "vsp render cost decrease=" << renderCostDecr << endl; 
     926#ifdef PERFTIMER   
    919927        mEvalTimer.Exit(); 
     928#endif 
    920929} 
    921930 
     
    948957                                                                        VspTraversalData &backData) 
    949958{ 
     959#ifdef PERFTIMER   
    950960        mNodeTimer.Entry(); 
    951          
     961#endif   
    952962        VspLeaf *leaf = static_cast<VspLeaf *>(sc.mParentData.mNode); 
    953963 
     
    10421052        interior->mTimeStamp = mHierarchyManager->mTimeStamp ++; 
    10431053 
     1054#ifdef PERFTIMER   
    10441055        mNodeTimer.Exit(); 
    1045  
     1056#endif 
    10461057        return interior; 
    10471058} 
     
    11031114                                                                                float maxBand) 
    11041115{ 
     1116#ifdef PERFTIMER   
    11051117        mSortTimer.Entry(); 
    1106  
     1118#endif 
    11071119        mLocalSubdivisionCandidates->clear(); 
    11081120 
     
    11541166                sort(mLocalSubdivisionCandidates->begin(), mLocalSubdivisionCandidates->end()); 
    11551167 
     1168#ifdef PERFTIMER   
    11561169        mSortTimer.Exit(); 
     1170#endif 
    11571171} 
    11581172 
     
    15731587                                                                float &pBack) 
    15741588{ 
     1589#ifdef PERFTIMER   
    15751590        mSplitTimer.Entry(); 
    1576  
     1591#endif 
    15771592        float nPosition[3]; 
    15781593        float nCostRatio[3]; 
     
    16701685        pBack = nProbBack[bestAxis]; 
    16711686 
     1687#ifdef PERFTIMER   
    16721688        mSplitTimer.Exit(); 
    1673  
     1689#endif 
    16741690        return nCostRatio[bestAxis]; 
    16751691} 
     
    31583174void VspTree::GetViewCells(const VssRay &ray, ViewCellContainer &viewCells) 
    31593175{ 
     3176#ifdef PERFTIMER   
    31603177        mViewCellsTimer.Entry(); 
     3178#endif 
    31613179         
    31623180        static Ray hray; 
     
    31753193        CastLineSegment(origin, termination, viewCells, false); 
    31763194 
     3195#ifdef PERFTIMER   
    31773196        mViewCellsTimer.Exit(); 
     3197#endif 
    31783198} 
    31793199 
Note: See TracChangeset for help on using the changeset viewer.