[1520] | 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;
|
---|
[1528] | 20 | struct SimpleRay;
|
---|
[1520] | 21 |
|
---|
[1925] | 22 |
|
---|
[1520] | 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 | */
|
---|
[1925] | 30 | IntelRayCaster(const Preprocessor &preprocessor,
|
---|
[2176] | 31 | const std::string externKdTree);
|
---|
[1520] | 32 |
|
---|
| 33 | virtual ~IntelRayCaster();
|
---|
| 34 |
|
---|
[1925] | 35 | int Type() const
|
---|
| 36 | {
|
---|
| 37 | return INTEL_RAYCASTER;
|
---|
| 38 | }
|
---|
[1520] | 39 |
|
---|
[1925] | 40 | virtual int CastRay(const SimpleRay &simpleRay,
|
---|
| 41 | VssRayContainer &vssRays,
|
---|
| 42 | const AxisAlignedBox3 &box,
|
---|
| 43 | const bool castDoubleRay,
|
---|
[1996] | 44 | const bool pruneInvalidRays = true);
|
---|
[1520] | 45 |
|
---|
[1972] | 46 | virtual void CastRays16(
|
---|
[1925] | 47 | SimpleRayContainer &rays,
|
---|
| 48 | VssRayContainer &vssRays,
|
---|
| 49 | const AxisAlignedBox3 &sbox,
|
---|
| 50 | const bool castDoubleRay,
|
---|
[1996] | 51 | const bool pruneInvalidRays = true);
|
---|
[1925] | 52 |
|
---|
[2076] | 53 | virtual void CastRays16(
|
---|
| 54 | SimpleRayContainer &rays,
|
---|
| 55 | const int offset,
|
---|
| 56 | VssRayContainer &vssRays,
|
---|
| 57 | const AxisAlignedBox3 &sbox,
|
---|
| 58 | const bool castDoubleRay,
|
---|
| 59 | const bool pruneInvalidRays = true);
|
---|
| 60 |
|
---|
[2105] | 61 |
|
---|
| 62 | void
|
---|
| 63 | CastSimpleForwardRays(
|
---|
| 64 | SimpleRayContainer &rays,
|
---|
| 65 | const AxisAlignedBox3 &sbox
|
---|
| 66 | );
|
---|
| 67 |
|
---|
[2076] | 68 | virtual void CastRays(
|
---|
| 69 | SimpleRayContainer &rays,
|
---|
| 70 | VssRayContainer &vssRays,
|
---|
| 71 | const AxisAlignedBox3 &sbox,
|
---|
| 72 | const bool castDoubleRay,
|
---|
| 73 | const bool pruneInvalidRays = true);
|
---|
| 74 |
|
---|
[1520] | 75 | protected:
|
---|
| 76 |
|
---|
[2176] | 77 | bool InitRayCast(const std::string externKdTree);
|
---|
[1520] | 78 | };
|
---|
| 79 |
|
---|
| 80 |
|
---|
| 81 | }
|
---|
| 82 |
|
---|
| 83 | #endif
|
---|