|
Last change
on this file since 4539 was
4531,
checked in by patrick, 20 years ago
|
|
orxonox/trunk: some more function skeletons implemented
|
|
File size:
664 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 "base_object.h" |
|---|
| 11 | #include "bv_tree.h" |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | //! A class for representing an obb tree |
|---|
| 15 | class OBBTree : public BVTree { |
|---|
| 16 | |
|---|
| 17 | public: |
|---|
| 18 | OBBTree(); |
|---|
| 19 | virtual ~OBBTree(); |
|---|
| 20 | |
|---|
| 21 | virtual void spawnBVTree(int depth); |
|---|
| 22 | virtual void flushTree(); |
|---|
| 23 | |
|---|
| 24 | void collideWith(const OBBTree &tree); |
|---|
| 25 | |
|---|
| 26 | virtual void drawBV(int currentDepth, const int depth) const; |
|---|
| 27 | virtual void drawBVPolygon(int currentDepth, const int depth) const; |
|---|
| 28 | virtual void drawBVBlended(int currentDepth, const int depth) const; |
|---|
| 29 | |
|---|
| 30 | private: |
|---|
| 31 | |
|---|
| 32 | }; |
|---|
| 33 | |
|---|
| 34 | #endif /* _OBB_TREE_H */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.