Ignore:
Timestamp:
08/20/06 22:48:01 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1201 r1233  
    156156         
    157157         
    158         struct VspBspSplitCandidate 
     158        struct VspBspSubdivisionCandidate 
    159159        {   
    160160                /// the current split plane 
     
    172172                float mRenderCostDecr; 
    173173 
    174                 VspBspSplitCandidate(): mPriority(0), mRenderCostDecr(0)  
     174                VspBspSubdivisionCandidate(): mPriority(0), mRenderCostDecr(0)  
    175175                {}; 
    176176 
    177                 VspBspSplitCandidate(const Plane3 &plane, const VspBspTraversalData &tData):  
     177                VspBspSubdivisionCandidate(const Plane3 &plane, const VspBspTraversalData &tData):  
    178178                mSplitPlane(plane), mParentData(tData), mPriority(0), mRenderCostDecr(0)  
    179179                {} 
     
    190190                } 
    191191 
    192                 friend bool operator<(const VspBspSplitCandidate &a, const VspBspSplitCandidate &b) 
     192                friend bool operator<(const VspBspSubdivisionCandidate &a, const VspBspSubdivisionCandidate &b) 
    193193                { 
    194194                        return a.GetPriority() < b.GetPriority(); 
     
    196196    }; 
    197197 
    198         typedef std::priority_queue<VspBspSplitCandidate> VspBspSplitQueue; 
     198        typedef std::priority_queue<VspBspSubdivisionCandidate> VspBspSplitQueue; 
    199199 
    200200        /** Default constructor creating an empty tree. 
     
    402402        /** Evaluates candidate for splitting. 
    403403        */ 
    404         void EvalSplitCandidate(VspBspSplitCandidate &splitData); 
     404        void EvalSubdivisionCandidate(VspBspSubdivisionCandidate &splitData); 
    405405 
    406406        /** Computes priority of the traversal data and stores it in tData. 
     
    461461        */ 
    462462        BspNode *Subdivide(VspBspSplitQueue &tQueue, 
    463                                            VspBspSplitCandidate &splitCandidate); 
     463                                           VspBspSubdivisionCandidate &splitCandidate); 
    464464 
    465465        /** Constructs the tree from the given traversal data. 
     
    563563                @param splitCandidates returns sorted list of split candidates 
    564564        */ 
    565         void SortSplitCandidates(const RayInfoContainer &rays,  
     565        void SortSubdivisionCandidates(const RayInfoContainer &rays,  
    566566                                                         const int axis,  
    567567                                                         float minBand,  
     
    732732 
    733733        /// sorted split candidates used for sweep-heuristics 
    734         vector<SortableEntry> *mLocalSplitCandidates; 
     734        vector<SortableEntry> *mLocalSubdivisionCandidates; 
    735735 
    736736        /// box around the whole view domain 
Note: See TracChangeset for help on using the changeset viewer.