Changeset 2530 for GTP/trunk/Lib/Vis/Preprocessing/src/Pvs.h
- Timestamp:
- 07/06/07 03:18:02 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Pvs.h
r2529 r2530 8 8 9 9 10 //11 10 12 11 namespace GtpVisibilityPreprocessor { 13 12 14 13 14 /** Iterator over the pvs. 15 */ 15 16 template<typename T, typename S> 16 17 class PvsIterator … … 24 25 } 25 26 26 bool HasMoreEntries() const 27 { 28 return (mItCurrent != mItEnd); 29 } 30 31 T Next(S &pdf) 32 { 27 inline bool HasMoreEntries() const { return (mItCurrent != mItEnd); } 28 29 inline T Next(S &pdf) { 33 30 pdf = (*mItCurrent).mData; 34 31 return (*(mItCurrent ++)).mObject; 35 32 } 36 33 37 T Next() 38 { 39 return (*(mItCurrent ++)).mObject; 40 } 34 inline T Next() { return (*(mItCurrent ++)).mObject; } 35 41 36 42 37 private: 38 43 39 typename vector<PvsEntry<T, S> >::const_iterator mItCurrent; 44 40 typename vector<PvsEntry<T, S> >::const_iterator mItEnd; … … 56 52 public: 57 53 58 VerbosePvs(): mSamples(0), mEntries(), mLastSorted(0), mQueriesSinceSort(0) {} 54 VerbosePvs(): mSamples(0), mEntries(), mLastSorted(0), mQueriesSinceSort(0) 55 {} 59 56 60 57 /** creates pvs and initializes it with the given entries. … … 619 616 620 617 template <typename T, typename S> 621 bool VerbosePvs<T, S>::AddSampleDirtyCheck(T sample, 622 const float pdf) 623 //,float &contribution) 618 bool VerbosePvs<T, S>::AddSampleDirtyCheck(T sample, const float pdf) 624 619 { 625 620 ++ mSamples; … … 633 628 634 629 data.mSumPdf += pdf; 635 //contribution = pdf / data.mSumPdf;636 637 630 return false; 638 631 } … … 640 633 { 641 634 AddSampleDirty(sample, pdf); 642 //contribution = 1.0f;643 644 635 return true; 645 636 }
Note: See TracChangeset
for help on using the changeset viewer.