Revision 2113,
813 bytes
checked in by mattausch, 18 years ago
(diff) |
warning: debug version
|
Rev | Line | |
---|
[2113] | 1 | #ifndef _IntersectionBoundingBoxConverter_H__ |
---|
| 2 | #define _IntersectionBoundingBoxConverter_H__ |
---|
| 3 | |
---|
| 4 | #include "Containers.h" |
---|
| 5 | #include "BoundingBoxConverter.h" |
---|
| 6 | |
---|
| 7 | namespace GtpVisibilityPreprocessor {
|
---|
| 8 |
|
---|
| 9 | class AxisAlignedBox3; |
---|
| 10 | class KdTree;
|
---|
| 11 |
|
---|
| 12 | /** Class which converts preprocessor types to OGRE types
|
---|
| 13 | */
|
---|
| 14 | class IntersectionBoundingBoxConverter: public BoundingBoxConverter
|
---|
| 15 | {
|
---|
| 16 | public:
|
---|
| 17 | IntersectionBoundingBoxConverter(KdTree *kdTree): mKdTree(kdTree) {}
|
---|
| 18 |
|
---|
| 19 | bool IdentifyObjects(const IndexedBoundingBoxContainer &iboxes,
|
---|
| 20 | ObjectContainer &objects) const;
|
---|
| 21 |
|
---|
| 22 |
|
---|
| 23 | protected:
|
---|
| 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.