Last change
on this file since 4550 was
4550,
checked in by patrick, 19 years ago
|
orxonox/trunk: draw functions and some sVec3D issues
|
File size:
1.0 KB
|
Line | |
---|
1 | /*! |
---|
2 | \file bv_tree.h |
---|
3 | \brief Definition of a bounding volume tree |
---|
4 | |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef _OBB_TREE_NODE_H |
---|
8 | #define _OBB_TREE_NODE_H |
---|
9 | |
---|
10 | #include "bv_tree_node.h" |
---|
11 | |
---|
12 | |
---|
13 | |
---|
14 | // FORWARD DEFINITION |
---|
15 | class BoundingVolume; |
---|
16 | //struct sVec3D; |
---|
17 | |
---|
18 | //! A class that represents a bounding volume tree |
---|
19 | class OBBTreeNode : public BVTreeNode { |
---|
20 | |
---|
21 | |
---|
22 | public: |
---|
23 | OBBTreeNode(); |
---|
24 | virtual ~OBBTreeNode(); |
---|
25 | |
---|
26 | virtual void spawnBVTree(const int depth, sVec3D *verticesList, const int length); |
---|
27 | |
---|
28 | BoundingVolume* getBV(int index) const { return this->bvElement; } |
---|
29 | inline const int getIndex() { return this->treeIndex; } |
---|
30 | |
---|
31 | virtual void collideWith(const BVTree &tree); |
---|
32 | |
---|
33 | virtual void drawBV(int currentDepth, const int depth) const; |
---|
34 | virtual void drawBVPolygon(int currentDepth, const int depth) const; |
---|
35 | virtual void drawBVBlended(int currentDepth, const int depth) const; |
---|
36 | |
---|
37 | |
---|
38 | protected: |
---|
39 | BoundingVolume* bvElement; |
---|
40 | OBBTreeNode* nodeLeft; |
---|
41 | OBBTreeNode* nodeRight; |
---|
42 | |
---|
43 | |
---|
44 | private: |
---|
45 | unsigned int treeIndex; //!< Index number of the BV in the tree |
---|
46 | |
---|
47 | }; |
---|
48 | |
---|
49 | #endif /* _OBB_TREE_NODE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.