Last change
on this file since 5351 was
5279,
checked in by bensch, 19 years ago
|
orxonox/trunk: almost mac compatibility
|
File size:
924 bytes
|
Rev | Line | |
---|
[4618] | 1 | /*! |
---|
[5039] | 2 | * @file bv_tree.h |
---|
[4836] | 3 | * Definition of a bounding volume tree |
---|
[4541] | 4 | |
---|
| 5 | */ |
---|
| 6 | |
---|
| 7 | #ifndef _BV_TREE_NODE_H |
---|
| 8 | #define _BV_TREE_NODE_H |
---|
| 9 | |
---|
| 10 | #include "base_object.h" |
---|
[4548] | 11 | #include "abstract_model.h" |
---|
[4541] | 12 | |
---|
| 13 | // FORWARD DEFINITION |
---|
| 14 | class BoundingVolume; |
---|
| 15 | class BVTree; |
---|
[4700] | 16 | class PNode; |
---|
[5028] | 17 | class WorldEntity; |
---|
[4542] | 18 | template<class T> class tList; |
---|
[4541] | 19 | |
---|
| 20 | //! A class that represents a bounding volume tree |
---|
| 21 | class BVTreeNode : public BaseObject { |
---|
| 22 | |
---|
| 23 | public: |
---|
| 24 | BVTreeNode(); |
---|
| 25 | virtual ~BVTreeNode(); |
---|
| 26 | |
---|
[5279] | 27 | virtual void spawnBVTree(const int depth, sVec3D *verticesList, const int length ) = 0; |
---|
[4541] | 28 | |
---|
[5279] | 29 | virtual BoundingVolume* getBV(int index) const = 0; |
---|
[4618] | 30 | inline const int getIndex() { return this->treeIndex; } |
---|
[4541] | 31 | |
---|
[5279] | 32 | virtual void collideWith(BVTreeNode* treeNode, WorldEntity* nodeA, WorldEntity* nodeB) = 0; |
---|
[4541] | 33 | |
---|
[5279] | 34 | virtual void drawBV(int depth, int drawMode) = 0; |
---|
[4541] | 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.