Ignore:
Timestamp:
02/02/06 19:16:39 (18 years ago)
Author:
mattausch
Message:

fixed bug in mergueue to find root of merge and sort out doube view cells

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/ViewCell.h

    r581 r582  
    325325        float GetDeviation(ViewCell *vc) const; 
    326326 
    327         /** Recalculates this merge candidate and sets valid. 
    328         */ 
    329         void SetMergeCandidateValid(MergeCandidate &mc) const; 
     327        /** Tries to set this merge candidate to valid.  
     328                @returns false if both view cells are the same 
     329        */ 
     330        bool ValidateMergeCandidate(MergeCandidate &mc) const; 
    330331 
    331332        /** Merge view cells of leaves l1 and l2. 
     
    360361 
    361362        /** Updates the current top level of view cells. 
    362         */ 
    363         int UpdateMergedViewCells(ViewCellContainer &viewCells); 
     363                @returns number of newly merged view cells 
     364        */ 
     365        int UpdateActiveViewCells(ViewCellContainer &viewCells); 
    364366 
    365367        void ComputeCommonPvs(ViewCellInterior *interior); 
     368 
     369 
     370        /** Returns memory usage of view cells. 
     371        */ 
     372        float GetMemUsage() const; 
     373 
    366374 
    367375 
     
    375383         
    376384                 
    377         ViewCellContainer mInactiveViewCells; 
    378         ViewCellContainer mActiveViewCells; 
     385        ViewCellContainer mMergedViewCells; 
     386         
    379387 
    380388        /// weights between variance and render cost increase (must be between zero and one) 
     
    389397        int mUseAreaForPvs; 
    390398 
    391         int mNumViewCells; 
     399        int mNumActiveViewCells; 
    392400 
    393401        /// minimal number of view cells 
     
    402410        MergeQueue mMergeQueue; 
    403411 
    404          
     412        float mMaxMemory; 
    405413 
    406414}; 
Note: See TracChangeset for help on using the changeset viewer.