Line | |
---|
1 | #ifndef _IntelRayCaster_H__
|
---|
2 | #define _IntelRayCaster_H__
|
---|
3 |
|
---|
4 | #include "RayCaster.h"
|
---|
5 | #include <vector>
|
---|
6 |
|
---|
7 |
|
---|
8 | namespace GtpVisibilityPreprocessor {
|
---|
9 |
|
---|
10 |
|
---|
11 | class Intersectable;
|
---|
12 | class VssRay;
|
---|
13 | class KdTree;
|
---|
14 | class Ray;
|
---|
15 | class SimpleRayContainer;
|
---|
16 | class AxisAlignedBox3;
|
---|
17 | class Vector3;
|
---|
18 | struct VssRayContainer;
|
---|
19 | class Preprocessor;
|
---|
20 | struct SimpleRay;
|
---|
21 |
|
---|
22 |
|
---|
23 | /** This class provides an interface for ray casting.
|
---|
24 | */
|
---|
25 | class IntelRayCaster: public RayCaster
|
---|
26 | {
|
---|
27 | public:
|
---|
28 | /** Default constructor initialising e.g., KD tree and BSP tree.
|
---|
29 | */
|
---|
30 | IntelRayCaster(const Preprocessor &preprocessor,
|
---|
31 | const string externKdTree);
|
---|
32 |
|
---|
33 | virtual ~IntelRayCaster();
|
---|
34 |
|
---|
35 | int Type() const
|
---|
36 | {
|
---|
37 | return INTEL_RAYCASTER;
|
---|
38 | }
|
---|
39 |
|
---|
40 | virtual int CastRay(const SimpleRay &simpleRay,
|
---|
41 | VssRayContainer &vssRays,
|
---|
42 | const AxisAlignedBox3 &box,
|
---|
43 | const bool castDoubleRay,
|
---|
44 | const bool pruneInvalidRays = true);
|
---|
45 |
|
---|
46 | virtual void CastRays16(
|
---|
47 | SimpleRayContainer &rays,
|
---|
48 | VssRayContainer &vssRays,
|
---|
49 | const AxisAlignedBox3 &sbox,
|
---|
50 | const bool castDoubleRay,
|
---|
51 | const bool pruneInvalidRays = true);
|
---|
52 |
|
---|
53 | protected:
|
---|
54 |
|
---|
55 | bool InitRayCast(const string externKdTree);
|
---|
56 | };
|
---|
57 |
|
---|
58 |
|
---|
59 | }
|
---|
60 |
|
---|
61 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.