source: trunk/VUT/GtpVisibilityPreprocessor/src/VssPreprocessor.h @ 376

Revision 376, 955 bytes checked in by bittner, 19 years ago (diff)

vsspreprocessor kdtree meshkdtree optimization

Line 
1#ifndef _VssPreprocessor_H__
2#define _VssPreprocessor_H__
3
4#include <fstream>
5using namespace std;
6
7#include "Preprocessor.h"
8#include "VssRay.h"
9
10/** Sampling based visibility preprocessing. The implementation is based on heuristical
11    sampling of view space */
12class VssPreprocessor : public Preprocessor {
13public:
14        int mPass;
15  int mSamplesPerPass;
16  int mTotalSamples;
17  ofstream mStats;
18       
19  ObjectContainer mObjects;
20
21        // rays cast during the processing
22  VssRayContainer mVssRays;
23       
24  VssPreprocessor();
25  ~VssPreprocessor();
26
27  virtual bool ComputeVisibility();
28
29        Vector3
30        GetViewpoint();
31
32        Vector3
33        GetDirection(const Vector3 &viewpoint);
34       
35  void
36  SetupRay(Ray &ray,
37                                         const Vector3 &point,
38                                         const Vector3 &direction
39                                         );
40
41
42       
43        VssRay *
44        CastRay(
45                                        Vector3 &viewPoint,
46                                        Vector3 &direction
47                                        );
48               
49
50       
51        virtual bool BuildBspTree() { return false; }
52
53};
54
55
56
57#endif
Note: See TracBrowser for help on using the repository browser.