Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 13, 2005, 9:17:55 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: now bounding box gets displayed very well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/collision_detection/obb_tree.h

    r4551 r4616  
    1 /*! 
     1/*!
    22    \file obb_tree.h
    33    \brief Definition of an obb tree (object oriented Bounding Box)
     
    1010#include "bv_tree.h"
    1111#include "abstract_model.h"
     12#include "material.h"
    1213
     14class Material;
    1315class OBBTreeNode;
    1416
     
    1618class OBBTree : public BVTree {
    1719
    18  public:
    19   OBBTree();
    20   virtual ~OBBTree();
     20  public:
     21    OBBTree();
     22    virtual ~OBBTree();
    2123
    22   virtual void spawnBVTree(int depth, sVec3D *verticesList, const int length);
    23   virtual void flushTree();
     24    virtual void spawnBVTree(int depth, sVec3D *verticesList, const int length);
     25    virtual void flushTree();
    2426
    25   void collideWith(const OBBTree &tree);
     27    void collideWith(const OBBTree &tree);
    2628
    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;
     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;
    3032
    31   void debug();
     33    void debug();
    3234
    33  private:
    34   OBBTreeNode*         rootNode;                        //!< reference to the root node of the tree
     35  public:
     36    static Material* material;
     37
     38
     39  private:
     40    OBBTreeNode*         rootNode;                        //!< reference to the root node of the tree
    3541
    3642};
Note: See TracChangeset for help on using the changeset viewer.