Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/lib/collision_detection/bv_tree.h @ 4528

Last change on this file since 4528 was 4528, checked in by patrick, 19 years ago

orxonox/trunk: started implementing the bv tree and more specificaly the obb tree

File size: 759 bytes
Line 
1/*!
2    \file bv_tree.h
3    \brief Definition of a bounding volume tree
4
5*/
6
7#ifndef _BV_TREE_H
8#define _BV_TREE_H
9
10#include "base_object.h"
11
12// FORWARD DEFINITION
13class BoundingVolume;
14
15
16//! A class that represents a bounding volume tree
17class BVTree : public BaseObject {
18
19 public:
20  BVTree();
21  virtual ~BVTree();
22
23  virtual void spawnBVTree(int depth);
24  virtual void flushTree();
25
26  BoundingVolume* getBV(int index) const;
27 
28  virtual void collideWith(const BVTree &tree);
29
30  virtual void drawBV(int currentDepth, const int depth) const;
31  virtual void drawBVPolygon(int currentDepth, const int depth) const;
32  virtual void drawBVBlended(int currentDepth, const int depth) const;
33
34 private:
35  BoundingVolume* firstElement;
36
37};
38
39#endif /* _BV_TREE_H */
Note: See TracBrowser for help on using the repository browser.