source: GTP/trunk/Lib/Vis/Preprocessing/src/IntersectionBoundingBoxConverter.h @ 2655

Revision 2655, 820 bytes checked in by mattausch, 17 years ago (diff)
RevLine 
[2655]1#ifndef _IntersectionBoundingBoxConverter_H__
2#define _IntersectionBoundingBoxConverter_H__
3
4#include "Containers.h"
5#include "BoundingBoxConverter.h"
6
[2113]7namespace GtpVisibilityPreprocessor {
8
[2655]9class AxisAlignedBox3;
[2113]10class KdTree;
11
12/**     Class which converts preprocessor types to OGRE types
13*/
14class IntersectionBoundingBoxConverter: public BoundingBoxConverter
15{
16public:
17        IntersectionBoundingBoxConverter(KdTree *kdTree): mKdTree(kdTree) {}
18       
19        bool IdentifyObjects(const IndexedBoundingBoxContainer &iboxes,
20                                                 ObjectContainer &objects) const;
21
22
23protected:
24
25        /** find objects which are intersected by this box
26        */
27        void FindIntersectingObjects(const AxisAlignedBox3 &box,
28                                                                 ObjectContainer &objects) const;
29
30        KdTree *mKdTree;
31};
32
33}
34
35#endif // IntersectionBoundingBoxConverter
Note: See TracBrowser for help on using the repository browser.