source: GTP/trunk/Lib/Vis/Preprocessing/src/InternalRayCaster.h @ 1520

Revision 1520, 1.1 KB checked in by mattausch, 18 years ago (diff)

moved raycasting out of preprocessor into specific ray casting interface

Line 
1#ifndef _InternalRayCaster_H__
2#define _InternalRayCaster_H__
3
4#include "RayCaster.h"
5#include "Containers.h"
6#include <string>
7using namespace std;
8
9
10namespace GtpVisibilityPreprocessor {
11
12
13class Intersectable;
14class VssRay;
15class KdTree;
16class Ray;
17class SimpleRayContainer;
18class AxisAlignedBox3;
19class Vector3;
20struct VssRayContainer;
21class Preprocessor;
22
23
24
25/** This class provides an interface for ray casting.
26*/
27class InternalRayCaster: public RayCaster
28{
29public:
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 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
54protected:
55
56        KdTree *mKdTree;
57};
58
59
60}
61
62#endif
Note: See TracBrowser for help on using the repository browser.