source:
orxonox.OLD/orxonox/trunk/src/lib/collision_detection/bv_tree.h
@
4550
Last change on this file since 4550 was 4550, checked in by patrick, 19 years ago | |
---|---|
File size: 796 bytes |
Rev | Line | |
---|---|---|
[4510] | 1 | /*! |
[4511] | 2 | \file bv_tree.h |
3 | \brief Definition of a bounding volume tree | |
[4510] | 4 | |
5 | */ | |
6 | ||
[4511] | 7 | #ifndef _BV_TREE_H |
8 | #define _BV_TREE_H | |
[4510] | 9 | |
10 | #include "base_object.h" | |
11 | ||
12 | // FORWARD DEFINITION | |
[4524] | 13 | class BoundingVolume; |
[4510] | 14 | |
[4550] | 15 | |
[4514] | 16 | //! A class that represents a bounding volume tree |
[4511] | 17 | class BVTree : public BaseObject { |
[4510] | 18 | |
19 | public: | |
[4511] | 20 | BVTree(); |
21 | virtual ~BVTree(); | |
[4510] | 22 | |
[4528] | 23 | virtual void spawnBVTree(int depth); |
24 | virtual void flushTree(); | |
[4510] | 25 | |
[4524] | 26 | BoundingVolume* getBV(int index) const; |
27 | ||
[4528] | 28 | virtual void collideWith(const BVTree &tree); |
[4524] | 29 | |
[4528] | 30 | virtual void drawBV(int currentDepth, const int depth) const; |
31 | virtual void drawBVPolygon(int currentDepth, const int depth) const; | |
32 | virtual void drawBVBlended(int currentDepth, const int depth) const; | |
[4524] | 33 | |
[4531] | 34 | protected: |
[4533] | 35 | int numberOfVertices; |
[4531] | 36 | |
[4510] | 37 | private: |
[4524] | 38 | BoundingVolume* firstElement; |
[4510] | 39 | |
40 | }; | |
41 | ||
[4511] | 42 | #endif /* _BV_TREE_H */ |
Note: See TracBrowser
for help on using the repository browser.