| 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 | #include "base_object.h" | 
|---|
| 11 |  | 
|---|
| 12 | // FORWARD DEFINITION | 
|---|
| 13 | class BoundingVolume; | 
|---|
| 14 | class sVec3D; | 
|---|
| 15 |  | 
|---|
| 16 | //! A class that represents a bounding volume tree | 
|---|
| 17 | class BVTree : public BaseObject { | 
|---|
| 18 |  | 
|---|
| 19 |  public: | 
|---|
| 20 |   BVTree(); | 
|---|
| 21 |   virtual ~BVTree(); | 
|---|
| 22 |  | 
|---|
| 23 |   virtual void spawnBVTree(int depth); | 
|---|
| 24 |   virtual void flushTree(); | 
|---|
| 25 |  | 
|---|
| 26 |   BoundingVolume* getBV(int index) const; | 
|---|
| 27 |    | 
|---|
| 28 |   virtual void collideWith(const BVTree &tree); | 
|---|
| 29 |  | 
|---|
| 30 |   virtual void drawBV(int currentDepth, const int depth) const; | 
|---|
| 31 |   virtual void drawBVPolygon(int currentDepth, const int depth) const; | 
|---|
| 32 |   virtual void drawBVBlended(int currentDepth, const int depth) const; | 
|---|
| 33 |  | 
|---|
| 34 |  protected: | 
|---|
| 35 |   sVec3D* vertices; | 
|---|
| 36 |   int numberOfVertices; | 
|---|
| 37 |  | 
|---|
| 38 |  private: | 
|---|
| 39 |   BoundingVolume* firstElement; | 
|---|
| 40 |  | 
|---|
| 41 | }; | 
|---|
| 42 |  | 
|---|
| 43 | #endif /* _BV_TREE_H */ | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.