Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/lib/collision_detection/obb_tree_node.h @ 4547

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

orxonox/trunk: new feature in vector class, now can overtake values of a sVec3D, spawn tree alg, fast-math library, thats not used anymore :)

File size: 1.0 KB
Line 
1/*!
2    \file bv_tree.h
3    \brief Definition of a bounding volume tree
4
5*/
6
7#ifndef _OBB_TREE_NODE_H
8#define _OBB_TREE_NODE_H
9
10#include "bv_tree_node.h"
11
12// FORWARD DEFINITION
13class BoundingVolume;
14
15//! A class that represents a bounding volume tree
16class OBBTreeNode : public BVTreeNode {
17
18
19 public:
20  OBBTreeNode();
21  virtual ~OBBTreeNode();
22
23  virtual void spawnBVTree(const int depth, sVec3D *verticesList, const int length);
24
25  BoundingVolume* getBV(int index) const { return this->bvElement; }
26  inline const int getIndex() { return this->treeIndex; } 
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
35 protected:
36  BoundingVolume* bvElement;
37  OBBTreeNode* nodeLeft;
38  OBBTreeNode* nodeRight;
39
40
41 private:
42  unsigned int        treeIndex;                  //!< Index number of the BV in the tree
43
44};
45
46#endif /* _OBB_TREE_NODE_H */
Note: See TracBrowser for help on using the repository browser.