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