Last change
on this file since 4585 was
4551,
checked in by patrick, 19 years ago
|
orxonox/trunk: further work on the test env, cdengine draw functions, debug functions
|
File size:
843 bytes
|
Line | |
---|
1 | /*! |
---|
2 | \file obb_tree.h |
---|
3 | \brief Definition of an obb tree (object oriented Bounding Box) |
---|
4 | |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef _OBB_TREE_H |
---|
8 | #define _OBB_TREE_H |
---|
9 | |
---|
10 | #include "bv_tree.h" |
---|
11 | #include "abstract_model.h" |
---|
12 | |
---|
13 | class OBBTreeNode; |
---|
14 | |
---|
15 | //! A class for representing an obb tree |
---|
16 | class OBBTree : public BVTree { |
---|
17 | |
---|
18 | public: |
---|
19 | OBBTree(); |
---|
20 | virtual ~OBBTree(); |
---|
21 | |
---|
22 | virtual void spawnBVTree(int depth, sVec3D *verticesList, const int length); |
---|
23 | virtual void flushTree(); |
---|
24 | |
---|
25 | void collideWith(const OBBTree &tree); |
---|
26 | |
---|
27 | virtual void drawBV(int currentDepth, const int depth) const; |
---|
28 | virtual void drawBVPolygon(int currentDepth, const int depth) const; |
---|
29 | virtual void drawBVBlended(int currentDepth, const int depth) const; |
---|
30 | |
---|
31 | void debug(); |
---|
32 | |
---|
33 | private: |
---|
34 | OBBTreeNode* rootNode; //!< reference to the root node of the tree |
---|
35 | |
---|
36 | }; |
---|
37 | |
---|
38 | #endif /* _OBB_TREE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.