Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/collision_detection/src/lib/collision_detection/bv_tree_node.h @ 5718

Last change on this file since 5718 was 5718, checked in by patrick, 18 years ago

collision_detection: and again a heavy cleanup in the function arguments

File size: 1.1 KB
Line 
1/*!
2 * @file bv_tree.h
3  *  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#include "vector.h"
13
14// FORWARD DECLARATION
15class BoundingVolume;
16class BVTree;
17class PNode;
18class WorldEntity;
19template<class T> class tList;
20
21
22//! A class that represents a bounding volume tree
23class BVTreeNode : public BaseObject {
24
25
26 public:
27  BVTreeNode();
28  virtual ~BVTreeNode();
29
30  virtual const BoundingVolume* getBV() const = 0;
31  inline const int getIndex() const { return this->treeIndex; }
32
33  virtual void spawnBVTree(const sVec3D *verticesList, unsigned int length ) = 0;
34  virtual void spawnBVTree(const modelInfo& modInfo, const int* triangleIndexes, unsigned int length) = 0;
35
36  virtual void collideWith(const BVTreeNode& treeNode, const WorldEntity& nodeA, const WorldEntity& nodeB) const = 0;
37
38  virtual void drawBV(int depth, int drawMode, const Vector& color = Vector(1,0,0), bool top = true) const = 0;
39
40
41 private:
42  unsigned int        treeIndex;                  //!< Index number of the BV in the tree
43
44};
45
46#endif /* _BV_TREE_NODE_H */
Note: See TracBrowser for help on using the repository browser.