Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: mod some interface arguments, defined some functions of bv tree

File size: 711 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  void spawnBVTree(int depth);
24  void flushTree();
25
26  BoundingVolume* getBV(int index) const;
27 
28  void collideWith(const BVTree &tree);
29
30  void drawBV(int currentDepth, const int depth) const;
31  void drawBVPolygon(int currentDepth, const int depth) const;
32  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.