Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/lib/collision_detection/bv_tree.h @ 4697

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

orxonox/trunk: no only the overlap test is missing

File size: 936 bytes
Line 
1/*!
2    \file bv_tree.h
3    \brief Definition of a bounding volume tree
4
5*/
6
7#ifndef _BV_TREE_H
8#define _BV_TREE_H
9
10
11#include "base_object.h"
12#include "abstract_model.h"
13
14// FORWARD DEFINITION
15class BoundingVolume;
16class BVTreeNode;
17
18typedef enum DrawMode
19{
20  DRAW_ALL               = 1<<0,
21  DRAW_SINGLE            = 1<<1,
22
23  DRAW_SEPARATING_PLANE  = 1<<2,
24  DRAW_BV_AXIS           = 1<<3,
25  DRAW_BV_BLENDED        = 1<<4,
26  DRAW_BV_POLYGON        = 1<<5,
27  DRAW_MODEL             = 1<<6
28};
29
30
31//! A class that represents a bounding volume tree
32class BVTree : public BaseObject {
33
34 public:
35  BVTree();
36  virtual ~BVTree();
37
38  virtual void spawnBVTree(int depth, sVec3D *verticesList, const int length) = NULL;
39  virtual void flushTree() = NULL;
40
41  virtual void collideWith(BVTree* tree) = NULL;
42
43  virtual void drawBV(int depth, int drawMode) const = NULL;
44
45
46 protected:
47  int numberOfVertices;
48
49 private:
50
51
52};
53
54#endif /* _BV_TREE_H */
Note: See TracBrowser for help on using the repository browser.