Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: no only the overlap test is missing

File size: 894 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#include "abstract_model.h"
12
13// FORWARD DEFINITION
14class BoundingVolume;
15class BVTree;
16//struct sVec3D;
17template<class T> class tList;
18
19//! A class that represents a bounding volume tree
20class BVTreeNode : public BaseObject {
21
22 public:
23  BVTreeNode();
24  virtual ~BVTreeNode();
25
26  virtual void spawnBVTree(const int depth, sVec3D *verticesList, const int length ) = NULL;
27
28  virtual BoundingVolume* getBV(int index) const = NULL;
29  inline const int getIndex() { return this->treeIndex; }
30
31  virtual void collideWith(BVTreeNode* treeNode) = NULL;
32
33  virtual void drawBV(int depth, int drawMode) 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.