Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/lib/collision_detection/obb_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: 776 bytes
Line 
1/*!
2    \file obb_tree.h
3    \brief Definition of an obb tree (object oriented Bounding Box)
4
5*/
6
7#ifndef _OBB_TREE_H
8#define _OBB_TREE_H
9
10#include "bv_tree.h"
11
12
13class OBBTreeNode;
14
15//! A class for representing an obb tree
16class OBBTree : public BVTree {
17
18 public:
19  OBBTree();
20  virtual ~OBBTree();
21
22  virtual void spawnBVTree(int depth);
23  virtual void flushTree();
24
25  void collideWith(const OBBTree &tree);
26
27  virtual void drawBV(int currentDepth, const int depth) const;
28  virtual void drawBVPolygon(int currentDepth, const int depth) const;
29  virtual void drawBVBlended(int currentDepth, const int depth) const;
30
31  void debug();
32
33 private:
34  OBBTreeNode*         rootNode;                        //!< reference to the root node of the tree
35
36};
37
38#endif /* _OBB_TREE_H */
Note: See TracBrowser for help on using the repository browser.