Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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: 796 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 protected:
35  int numberOfVertices;
36
37 private:
38  BoundingVolume* firstElement;
39
40};
41
42#endif /* _BV_TREE_H */
Note: See TracBrowser for help on using the repository browser.