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 | |
---|
10 | namespace Ogre {
|
---|
11 |
|
---|
12 | class Entity; |
---|
13 | class OctreeSceneManager;
|
---|
14 | class KdTreeSceneManager;
|
---|
15 |
|
---|
16 | /** Class which converts preprocessor types to OGRE types
|
---|
17 | */
|
---|
18 | class __declspec(dllexport) OgreBoundingBoxConverter: public GtpVisibilityPreprocessor::BoundingBoxConverter
|
---|
19 | {
|
---|
20 | public:
|
---|
21 | OgreBoundingBoxConverter(OctreeSceneManager *sm);
|
---|
22 | OgreBoundingBoxConverter(KdTreeSceneManager *sm);
|
---|
23 |
|
---|
24 | bool IdentifyObjects(const GtpVisibilityPreprocessor::IndexedBoundingBoxContainer &iboxes,
|
---|
25 | GtpVisibilityPreprocessor::ObjectContainer &objects) const;
|
---|
26 |
|
---|
27 |
|
---|
28 | protected:
|
---|
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.