source: GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreBoundingBoxConverter.h @ 1296

Revision 1296, 985 bytes checked in by szydlowski, 18 years ago (diff)

Implemented PVS support in kdtree scene manager - not complete, defunct
modified BoundingBoxConverter? to work with KdTreeSceneManager?

Line 
1#ifndef _OgreBoundingBoxConverter_H__
2#define _OgreBoundingBoxConverter_H__
3 
4#include "OgreAxisAlignedBox.h"
5#include "AxisAlignedBox3.h"
6#include "Vector3.h"
7#include "BoundingBoxConverter.h"
8#include "Containers.h"
9
10namespace Ogre {
11
12class Entity;
13class OctreeSceneManager;
14class KdTreeSceneManager;
15
16/**     Class which converts preprocessor types to OGRE types
17*/
18class __declspec(dllexport) OgreBoundingBoxConverter: public GtpVisibilityPreprocessor::BoundingBoxConverter
19{
20public:
21        OgreBoundingBoxConverter(OctreeSceneManager *sm);
22        OgreBoundingBoxConverter(KdTreeSceneManager *sm);
23
24        bool IdentifyObjects(const GtpVisibilityPreprocessor::IndexedBoundingBoxContainer &iboxes,
25                                                 GtpVisibilityPreprocessor::ObjectContainer &objects) const;
26
27
28protected:
29
30        Entity *FindCorrespondingObject(const AxisAlignedBox &box) const;
31
32        OctreeSceneManager *mOctSceneMgr;
33        KdTreeSceneManager *mKdSceneMgr;
34};
35
36} // namespace Ogre
37
38#endif // OgreBoundingBoxConverter
Note: See TracBrowser for help on using the repository browser.