source: GTP/trunk/App/Demos/Vis/CHC_revisited/SceneQuery.h @ 2764

Revision 2764, 493 bytes checked in by mattausch, 17 years ago (diff)
Line 
1#ifndef _SCENEQUERY_H__
2#define _SCENEQUERY_H__
3
4#include "common.h"
5#include "AxisAlignedBox3.h"
6
7namespace CHCDemo
8{
9
10/** A simple class that computes the first intersection of a horizontal ray with
11        the scene. Can be used to "drop" objects in the scene.
12*/
13class SceneQuery
14{
15public:
16
17        SceneQuery(const AxisAlignedBox3 &sceneBox);
18
19        bool CalcIntersection(Vector3 &pt);
20
21protected:
22
23        void Prepare();
24
25
26        ///////////
27
28        AxisAlignedBox3 mSceneBox;
29};
30
31}
32
33#endif
Note: See TracBrowser for help on using the repository browser.