Revision 2176,
992 bytes
checked in by mattausch, 18 years ago
(diff) |
removed using namespace std from .h
|
Rev | Line | |
---|
[463] | 1 | #ifndef _SamplingPreprocessor_H__
|
---|
| 2 | #define _SamplingPreprocessor_H__
|
---|
| 3 |
|
---|
| 4 | #include <fstream>
|
---|
[2176] | 5 | //
|
---|
[463] | 6 |
|
---|
| 7 | #include "Preprocessor.h"
|
---|
| 8 | #include "VssRay.h"
|
---|
| 9 |
|
---|
[860] | 10 | namespace GtpVisibilityPreprocessor {
|
---|
| 11 |
|
---|
[463] | 12 | class Exporter;
|
---|
| 13 |
|
---|
| 14 | /** Sampling based visibility preprocessing. The implementation is based on heuristical
|
---|
[1221] | 15 | sampling of view space
|
---|
| 16 | */
|
---|
[463] | 17 | class SamplingPreprocessor : public Preprocessor {
|
---|
| 18 | public:
|
---|
| 19 |
|
---|
| 20 | SamplingPreprocessor();
|
---|
| 21 | ~SamplingPreprocessor();
|
---|
| 22 |
|
---|
| 23 | virtual bool ComputeVisibility();
|
---|
| 24 |
|
---|
| 25 |
|
---|
| 26 | protected:
|
---|
| 27 | /** Sets up ray for sampling.
|
---|
| 28 | */
|
---|
| 29 | void
|
---|
| 30 | SetupRay(Ray &ray,
|
---|
| 31 | const Vector3 &point,
|
---|
| 32 | const Vector3 &direction,
|
---|
[466] | 33 | const int type,
|
---|
| 34 | const Ray::Intersection &source);
|
---|
| 35 |
|
---|
| 36 |
|
---|
[1199] | 37 |
|
---|
| 38 |
|
---|
| 39 | /** Verify if the exact visibility for this object was established.
|
---|
| 40 | */
|
---|
| 41 | void
|
---|
| 42 | VerifyVisibility(Intersectable *object);
|
---|
| 43 |
|
---|
[463] | 44 |
|
---|
| 45 | protected:
|
---|
| 46 |
|
---|
| 47 |
|
---|
| 48 | int mPass;
|
---|
| 49 |
|
---|
| 50 | ObjectContainer mObjects;
|
---|
| 51 |
|
---|
| 52 | RayContainer mSampleRays;
|
---|
| 53 | VssRayContainer mVssSampleRays;
|
---|
| 54 | };
|
---|
| 55 |
|
---|
[860] | 56 | }
|
---|
| 57 |
|
---|
[463] | 58 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.