Ignore:
Timestamp:
04/08/06 12:15:50 (18 years ago)
Author:
mattausch
Message:

added histogram functionality

File:
1 edited

Legend:

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

    r734 r735  
    120120        environment->GetBoolValue("VspBspTree.simulateOctree", mSimulateOctree); 
    121121        environment->GetBoolValue("VspBspTree.useRandomAxis", mUseRandomAxis); 
    122         environment->GetBoolValue("VspBspTree.useBreathFirstSplits", mBreathFirstSplits); 
     122        environment->GetIntValue("VspBspTree.nodePriorityQueueType", mNodePriorityQueueType); 
    123123 
    124124        environment->GetBoolValue("ViewCells.PostProcess.emptyViewCellsMerge", mEmptyViewCellsMergeAllowed); 
     
    154154        Debug << "subdivision stats log: " << subdivisionStatsLog << endl; 
    155155        Debug << "use random axis: " << mUseRandomAxis << endl; 
    156         Debug << "breath first splits: " << mBreathFirstSplits << endl; 
    157         Debug << "depth first splits: " << mDepthFirstSplits << endl; 
    158  
     156        Debug << "priority queue type: " << mNodePriorityQueueType << endl; 
    159157        Debug << "empty view cells merge: " << mEmptyViewCellsMergeAllowed << endl; 
    160  
    161158        Debug << "octree: " << mSimulateOctree << endl; 
    162159 
     
    942939void VspBspTree::EvalPriority(VspBspTraversalData &tData) const 
    943940{ 
    944         if (mBreathFirstSplits) 
     941    switch (mNodePriorityQueueType)  
     942        { 
     943        case BREATH_FIRST: 
    945944                tData.mPriority = (float)-tData.mDepth; 
    946         else if (mDepthFirstSplits) 
     945                break; 
     946        case DEPTH_FIRST: 
    947947                tData.mPriority = (float)tData.mDepth; 
    948         else 
     948                break; 
     949        default: 
    949950                tData.mPriority = tData.mPvs * tData.mProbability; 
    950         //cout << "priority: " << tData.mPriority << endl; 
     951                //Debug << "priority: " << tData.mPriority << endl; 
     952                break; 
     953        } 
    951954} 
    952955 
Note: See TracChangeset for help on using the changeset viewer.