Ignore:
Timestamp:
02/15/07 00:35:41 (17 years ago)
Author:
mattausch
Message:

implemented hashpvs

File:
1 edited

Legend:

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

    r2115 r2116  
    77#include "Containers.h" 
    88#include "ViewCell.h" 
    9 #include "ViewCellBsp.h" 
     9//#include "ViewCellBsp.h" 
    1010 
    1111namespace GtpVisibilityPreprocessor { 
     
    4343struct AxisAlignedPlane; 
    4444struct BspRay; 
    45  
    46  
    47  
    48  
    49   struct PvsFilterStatistics { 
     45class BspTree; 
     46 
     47 
     48 
     49struct PvsFilterStatistics  
     50{ 
    5051        PvsFilterStatistics():  
    51   mAvgFilterRadius(0.0f), mLocalFilterCount(0), mGlobalFilterCount(0) {} 
     52        mAvgFilterRadius(0.0f), mLocalFilterCount(0), mGlobalFilterCount(0) {} 
     53         
    5254        float mAvgFilterRadius; 
    5355        int mLocalFilterCount; 
    5456        int mGlobalFilterCount; 
    55          
    56   }; 
    57    
     57}; 
     58 
    5859/** Probably Visible Set  
    5960*/ 
     
    6162{ 
    6263public: 
    63   /// root of view cells tree 
    64   ViewCell *mViewCell; 
    65  
    66   // input parameter is the render budget for the PrVs 
    67   float mRenderBudget; 
    68  
    69   // some characteristic values could be stored as well 
     64        /// root of view cells tree 
     65        ViewCell *mViewCell; 
     66 
     67        // input parameter is the render budget for the PrVs 
     68        float mRenderBudget; 
     69 
     70        // some characteristic values could be stored as well 
    7071}; 
    7172 
     
    8586{ 
    8687public: 
    87    
    88   struct PerViewCellStat { 
    89         float pvsSize; 
    90         float relPvsIncrease; 
    91   }; 
    92  
    93   struct SamplesStatistics { 
    94         int mRays; 
    95         int mViewCells; 
    96         int mContributingRays; 
    97         int mPvsContributions; 
    98         void Reset() { 
    99           mRays = 0; 
    100           mViewCells = 0; 
    101           mContributingRays = 0; 
    102           mPvsContributions = 0; 
     88 
     89        struct PerViewCellStat  
     90        { 
     91                float pvsSize; 
     92                float relPvsIncrease; 
    10393        }; 
    104   }; 
    105  
    106   struct PvsStatistics  
     94 
     95        struct SamplesStatistics  
    10796        { 
    108           float minPvs; 
    109           float maxPvs; 
    110           float avgPvs; 
    111           float avgPvsEntries; 
    112            
    113           float avgFilteredPvs; 
    114           float avgFilteredPvsEntries; 
    115  
    116           float avgFilterContribution; 
    117           float avgFilterRadius; 
    118           float avgFilterRatio; 
    119           float avgRelPvsIncrease; 
    120           float devRelPvsIncrease; 
    121           int viewcells; 
     97                int mRays; 
     98                int mViewCells; 
     99                int mContributingRays; 
     100                int mPvsContributions; 
     101                void Reset()  
     102                { 
     103                        mRays = 0; 
     104                        mViewCells = 0; 
     105                        mContributingRays = 0; 
     106                        mPvsContributions = 0; 
     107                }; 
     108        }; 
     109 
     110        struct PvsStatistics  
     111        { 
     112                float minPvs; 
     113                float maxPvs; 
     114                float avgPvs; 
     115                float avgPvsEntries; 
     116 
     117                float avgFilteredPvs; 
     118                float avgFilteredPvsEntries; 
     119 
     120                float avgFilterContribution; 
     121                float avgFilterRadius; 
     122                float avgFilterRatio; 
     123                float avgRelPvsIncrease; 
     124                float devRelPvsIncrease; 
     125                int viewcells; 
    122126        }; 
    123127   
Note: See TracChangeset for help on using the changeset viewer.