Last change
on this file since 4544 was
4544,
checked in by patrick, 19 years ago
|
orxonox/trunk: new feature in vector class, now can overtake values of a sVec3D, spawn tree alg, fast-math library, thats not used anymore
|
File size:
1.0 KB
|
Rev | Line | |
---|
[4541] | 1 | /*! |
---|
| 2 | \file bv_tree.h |
---|
| 3 | \brief Definition of a bounding volume tree |
---|
| 4 | |
---|
| 5 | */ |
---|
| 6 | |
---|
| 7 | #ifndef _BV_TREE_NODE_H |
---|
| 8 | #define _BV_TREE_NODE_H |
---|
| 9 | |
---|
| 10 | #include "base_object.h" |
---|
[4544] | 11 | #include "fast_math.h" |
---|
[4541] | 12 | |
---|
| 13 | // FORWARD DEFINITION |
---|
| 14 | class BoundingVolume; |
---|
| 15 | class BVTree; |
---|
[4542] | 16 | template<class T> class tList; |
---|
[4541] | 17 | |
---|
| 18 | //! A class that represents a bounding volume tree |
---|
| 19 | class BVTreeNode : public BaseObject { |
---|
| 20 | |
---|
| 21 | public: |
---|
| 22 | BVTreeNode(); |
---|
| 23 | virtual ~BVTreeNode(); |
---|
| 24 | |
---|
[4543] | 25 | virtual void spawnBVTree(const int depth, sVec3D *verticesList, const int length ) = NULL; |
---|
[4541] | 26 | |
---|
| 27 | virtual BoundingVolume* getBV(int index) const = NULL; |
---|
| 28 | inline const int getIndex() { return this->treeIndex; } |
---|
| 29 | |
---|
| 30 | virtual void collideWith(const BVTree &tree) = NULL; |
---|
| 31 | |
---|
| 32 | virtual void drawBV(int currentDepth, const int depth) const = NULL; |
---|
| 33 | virtual void drawBVPolygon(int currentDepth, const int depth) const = NULL; |
---|
| 34 | virtual void drawBVBlended(int currentDepth, const int depth) const = NULL; |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | private: |
---|
| 38 | unsigned int treeIndex; //!< Index number of the BV in the tree |
---|
| 39 | |
---|
| 40 | }; |
---|
| 41 | |
---|
| 42 | #endif /* _BV_TREE_NODE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.