Revision 2582,
646 bytes
checked in by bittner, 17 years ago
(diff) |
Havran Ray Caster compiles and links, but still does not work
|
Line | |
---|
1 | #ifndef __FILTER_BASED_DISTRIBUTION
|
---|
2 | #define __FILTER_BASED_DISTRIBUTION
|
---|
3 |
|
---|
4 | #include "SamplingStrategy.h"
|
---|
5 | #include "ObjectPvs.h"
|
---|
6 |
|
---|
7 | namespace GtpVisibilityPreprocessor {
|
---|
8 |
|
---|
9 | class FilterBasedDistribution: public SamplingStrategy
|
---|
10 | {
|
---|
11 | public:
|
---|
12 |
|
---|
13 | FilterBasedDistribution(Preprocessor &preprocessor)
|
---|
14 | : SamplingStrategy(preprocessor)
|
---|
15 | {
|
---|
16 | mType = FILTER_BASED_DISTRIBUTION;
|
---|
17 | mViewCell = NULL;
|
---|
18 | }
|
---|
19 |
|
---|
20 | private:
|
---|
21 |
|
---|
22 | virtual bool GenerateSample(SimpleRay &ray);
|
---|
23 |
|
---|
24 | // cached values
|
---|
25 | ViewCell *mViewCell;
|
---|
26 | ObjectPvs mFilteredPvs;
|
---|
27 | int samplesToGenerate;
|
---|
28 | int samplesGenerated;
|
---|
29 |
|
---|
30 | static HaltonSequence sHalton;
|
---|
31 | };
|
---|
32 | }
|
---|
33 |
|
---|
34 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.