Changeset 3229 for GTP/trunk/App/Demos/Vis
- Timestamp:
- 12/22/08 11:10:27 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SampleGenerator.cpp
r3227 r3229 6 6 using namespace CHCDemoEngine; 7 7 8 HaltonSequence PoissonDiscSampleGenerator2D::sHalton(2);9 HaltonSequence RandomSampleGenerator2D::sHalton(2);10 HaltonSequence QuadraticDiscSampleGenerator2D::sHalton(2);8 //HaltonSequence PoissonDiscSampleGenerator2D::sHalton(2); 9 //HaltonSequence RandomSampleGenerator2D::sHalton(2); 10 //HaltonSequence QuadraticDiscSampleGenerator2D::sHalton(2); 11 11 12 12 … … 17 17 18 18 PoissonDiscSampleGenerator2D::PoissonDiscSampleGenerator2D(int numSamples, float radius): 19 SampleGenerator(numSamples, radius) 19 SampleGenerator(numSamples, radius), sHalton(HaltonSequence(2)) 20 20 {} 21 21 … … 106 106 107 107 RandomSampleGenerator2D::RandomSampleGenerator2D(int numSamples, float radius): 108 SampleGenerator(numSamples, radius) 108 SampleGenerator(numSamples, radius), sHalton(HaltonSequence(2)) 109 109 {} 110 110 … … 164 164 165 165 QuadraticDiscSampleGenerator2D::QuadraticDiscSampleGenerator2D(int numSamples, float radius): 166 SampleGenerator(numSamples, radius) 166 PoissonDiscSampleGenerator2D(numSamples, radius) 167 //SampleGenerator(numSamples, radius), 168 //sHalton(HaltonSequence(2)), 169 //mPoisson(PoissonDiscSampleGenerator2D(numSamples, radius)) 167 170 {} 168 171 … … 185 188 #else 186 189 187 static PoissonDiscSampleGenerator2D poisson(mNumSamples, 1.0f); 188 poisson.Generate(samples); 190 //static PoissonDiscSampleGenerator2D poisson(mNumSamples, 1.0f); 191 //poisson.Generate(samples); 192 193 PoissonDiscSampleGenerator2D::Generate(samples); 189 194 190 195 Sample2 *s = (Sample2 *)samples; -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SampleGenerator.h
r3227 r3229 57 57 protected: 58 58 59 static HaltonSequencesHalton;59 HaltonSequence &sHalton; 60 60 }; 61 61 … … 75 75 protected: 76 76 77 static HaltonSequencesHalton;77 HaltonSequence &sHalton; 78 78 }; 79 79 … … 83 83 with the distance 84 84 */ 85 class QuadraticDiscSampleGenerator2D: public SampleGenerator85 class QuadraticDiscSampleGenerator2D: public PoissonDiscSampleGenerator2D 86 86 { 87 87 public: … … 93 93 protected: 94 94 95 static HaltonSequence sHalton; 95 //PoissonDiscSampleGenerator2D &mPoisson; 96 //HaltonSequence &sHalton; 96 97 }; 97 98
Note: See TracChangeset
for help on using the changeset viewer.