[1520] | 1 | #ifndef _InternalRayCaster_H__
|
---|
| 2 | #define _InternalRayCaster_H__
|
---|
| 3 |
|
---|
| 4 | #include "RayCaster.h"
|
---|
| 5 | #include "Containers.h"
|
---|
| 6 | #include <string>
|
---|
[2176] | 7 | //
|
---|
[1520] | 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;
|
---|
[1528] | 22 | struct SimpleRay;
|
---|
[1520] | 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 | */
|
---|
[2003] | 32 | InternalRayCaster(const Preprocessor &preprocessor);
|
---|
[1520] | 33 | virtual ~InternalRayCaster();
|
---|
| 34 |
|
---|
| 35 | int Type() const { return INTERNAL_RAYCASTER; }
|
---|
| 36 |
|
---|
| 37 | virtual int CastRay(
|
---|
[1972] | 38 | const SimpleRay &simpleRay,
|
---|
| 39 | VssRayContainer &vssRays,
|
---|
| 40 | const AxisAlignedBox3 &box,
|
---|
| 41 | const bool castDoubleRay,
|
---|
[1996] | 42 | const bool pruneInvalidRays = true
|
---|
[1972] | 43 | );
|
---|
[1520] | 44 |
|
---|
[1972] | 45 | virtual void CastRays16(SimpleRayContainer &rays,
|
---|
| 46 | VssRayContainer &vssRays,
|
---|
| 47 | const AxisAlignedBox3 &sbox,
|
---|
| 48 | const bool castDoubleRay,
|
---|
[1996] | 49 | const bool pruneInvalidRays = true
|
---|
[1972] | 50 | );
|
---|
[1520] | 51 |
|
---|
[1824] | 52 | virtual int
|
---|
[1972] | 53 | CastGlobalRay(
|
---|
| 54 | const SimpleRay &simpleRay,
|
---|
| 55 | VssRayContainer &vssRays,
|
---|
| 56 | const AxisAlignedBox3 &box,
|
---|
| 57 | const bool pruneInvalidRays
|
---|
| 58 | );
|
---|
[1824] | 59 |
|
---|
[1520] | 60 | protected:
|
---|
| 61 |
|
---|
[2003] | 62 | //KdTree *mKdTree;
|
---|
[1520] | 63 | };
|
---|
| 64 |
|
---|
| 65 |
|
---|
| 66 | }
|
---|
| 67 |
|
---|
| 68 | #endif
|
---|