Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/lib/collision_detection/obb_tree.h @ 4618

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

orxonox/trunk: now bounding box gets displayed very well

File size: 945 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#include "abstract_model.h"
12#include "material.h"
13
14class Material;
15class OBBTreeNode;
16
17//! A class for representing an obb tree
18class OBBTree : public BVTree {
19
20  public:
21    OBBTree();
22    virtual ~OBBTree();
23
24    virtual void spawnBVTree(int depth, sVec3D *verticesList, const int length);
25    virtual void flushTree();
26
27    void collideWith(const OBBTree &tree);
28
29    virtual void drawBV(int currentDepth, const int depth) const;
30    virtual void drawBVPolygon(int currentDepth, const int depth) const;
31    virtual void drawBVBlended(int currentDepth, const int depth) const;
32
33    void debug();
34
35  public:
36    static Material* material;
37
38
39  private:
40    OBBTreeNode*         rootNode;                        //!< reference to the root node of the tree
41
42};
43
44#endif /* _OBB_TREE_H */
Note: See TracBrowser for help on using the repository browser.