Ignore:
Timestamp:
02/03/06 13:03:35 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r582 r584  
    285285        int RefineViewCells(const VssRayContainer &rays, const ObjectContainer &objects); 
    286286 
    287         /** Compresses the pvs of the view cells. 
     287         
     288 
     289        /** Returns optimal set of view cells for a given number of view cells. 
     290        */ 
     291        void CollectBestViewCellSet(ViewCellContainer &viewCells, const int numViewCells); 
     292 
     293        /** Root of view cells tree. 
     294        */ 
     295        ViewCell *GetRoot() const; 
     296 
     297        /** Returns pvs of view cell. 
     298                @note pvs is returned per reference if tree is not compressed, 
     299                per copy else. 
     300        */ 
     301        void GetPvs(ViewCell *vc, ObjectPvs &pvs) const; 
     302 
     303        /** Returns pvs size of view cell. 
     304        */ 
     305        int GetPvsSize(ViewCell *vc) const; 
     306 
     307        /** Returns actual number of object in this pvs and the children. 
     308        */ 
     309        int GetNumPvsEntries(ViewCell *vc) const; 
     310 
     311        /** Returns memory cost of this view cell. 
     312        */ 
     313        float GetMemoryCost(ViewCell *vc) const; 
     314 
     315        /** Compresses the pvs of the view cells from the root. 
    288316        */ 
    289317        void CompressViewCellsPvs(); 
    290318 
    291         /** Returns optimal set of view cells for a given number of view cells. 
    292         */ 
    293         void CollectBestViewCellSet(ViewCellContainer &viewCells, const int numViewCells); 
    294  
    295         /** Root of view cells tree. 
    296         */ 
    297         ViewCell *GetRoot(); 
     319        /** If view cells in this tree have compressed pvs. 
     320        */ 
     321        bool IsCompressed() const; 
    298322 
    299323protected: 
     
    365389        int UpdateActiveViewCells(ViewCellContainer &viewCells); 
    366390 
    367         void ComputeCommonPvs(ViewCellInterior *interior); 
    368  
     391        void PropagateUpVisibility(ViewCellInterior *interior); 
     392 
     393        void CompressViewCellsPvs(ViewCell *root); 
    369394 
    370395        /** Returns memory usage of view cells. 
     
    373398 
    374399 
    375  
     400        /// if the view cell tree hold compressed pvs 
     401        bool mIsCompressed; 
    376402 
    377403        ViewCellsManager *mViewCellsManager; 
Note: See TracChangeset for help on using the changeset viewer.