Changeset 2116 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.h
- Timestamp:
- 02/15/07 00:35:41 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.h
r2115 r2116 7 7 #include "Containers.h" 8 8 #include "ViewCell.h" 9 #include "ViewCellBsp.h"9 //#include "ViewCellBsp.h" 10 10 11 11 namespace GtpVisibilityPreprocessor { … … 43 43 struct AxisAlignedPlane; 44 44 struct BspRay; 45 46 47 48 49 struct PvsFilterStatistics { 45 class BspTree; 46 47 48 49 struct PvsFilterStatistics 50 { 50 51 PvsFilterStatistics(): 51 mAvgFilterRadius(0.0f), mLocalFilterCount(0), mGlobalFilterCount(0) {} 52 mAvgFilterRadius(0.0f), mLocalFilterCount(0), mGlobalFilterCount(0) {} 53 52 54 float mAvgFilterRadius; 53 55 int mLocalFilterCount; 54 56 int mGlobalFilterCount; 55 56 }; 57 57 }; 58 58 59 /** Probably Visible Set 59 60 */ … … 61 62 { 62 63 public: 63 64 65 66 67 68 69 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 70 71 }; 71 72 … … 85 86 { 86 87 public: 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; 103 93 }; 104 }; 105 106 struct PvsStatistics 94 95 struct SamplesStatistics 107 96 { 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; 122 126 }; 123 127
Note: See TracChangeset
for help on using the changeset viewer.