Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/lib/collision_detection/bv_tree_node.h @ 4541

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

orxonox/trunk: added obb tree node structure to be more modular

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