Revision 1520,
1.1 KB
checked in by mattausch, 18 years ago
(diff) |
moved raycasting out of preprocessor into specific ray casting interface
|
Rev | Line | |
---|
[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;
|
---|
| 20 |
|
---|
| 21 |
|
---|
| 22 | /** This class provides an interface for ray casting.
|
---|
| 23 | */
|
---|
| 24 | class IntelRayCaster: public RayCaster
|
---|
| 25 | {
|
---|
| 26 | public:
|
---|
| 27 | /** Default constructor initialising e.g., KD tree and BSP tree.
|
---|
| 28 | */
|
---|
| 29 | IntelRayCaster(
|
---|
| 30 | const Preprocessor &preprocessor,
|
---|
| 31 | const string externKdTree);
|
---|
| 32 |
|
---|
| 33 | virtual ~IntelRayCaster();
|
---|
| 34 |
|
---|
| 35 | int Type() const { return INTEL_RAYCASTER; }
|
---|
| 36 |
|
---|
| 37 | virtual int CastRay(
|
---|
| 38 | const Vector3 &viewPoint,
|
---|
| 39 | const Vector3 &direction,
|
---|
| 40 | const float probability,
|
---|
| 41 | VssRayContainer &vssRays,
|
---|
| 42 | const AxisAlignedBox3 &box,
|
---|
| 43 | const bool castDoubleRay
|
---|
| 44 | );
|
---|
| 45 |
|
---|
| 46 | virtual void CastRays16(
|
---|
| 47 | const int i,
|
---|
| 48 | SimpleRayContainer &rays,
|
---|
| 49 | VssRayContainer &vssRays,
|
---|
| 50 | const AxisAlignedBox3 &sbox,
|
---|
| 51 | const bool castDoubleRay
|
---|
| 52 | );
|
---|
| 53 |
|
---|
| 54 | protected:
|
---|
| 55 |
|
---|
| 56 | bool InitRayCast(const string externKdTree);
|
---|
| 57 | };
|
---|
| 58 |
|
---|
| 59 |
|
---|
| 60 | }
|
---|
| 61 |
|
---|
| 62 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.