Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4550 in orxonox.OLD for orxonox/trunk/src/lib/collision_detection


Ignore:
Timestamp:
Jun 8, 2005, 10:34:04 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: draw functions and some sVec3D issues

Location:
orxonox/trunk/src/lib/collision_detection
Files:
6 edited

Legend:

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

    r4533 r4550  
    1212// FORWARD DEFINITION
    1313class BoundingVolume;
    14 class sVec3D;
     14
    1515
    1616//! A class that represents a bounding volume tree
     
    3333
    3434 protected:
    35   sVec3D* vertices;
    3635  int numberOfVertices;
    3736
  • orxonox/trunk/src/lib/collision_detection/bv_tree_node.h

    r4548 r4550  
    1414class BoundingVolume;
    1515class BVTree;
     16//struct sVec3D;
    1617template<class T> class tList;
    1718
  • orxonox/trunk/src/lib/collision_detection/obb_tree.cc

    r4546 r4550  
    1717
    1818#include "obb_tree.h"
     19#include "obb_tree_node.h"
    1920#include "obb.h"
    2021#include "debug.h"
     22#include "compiler.h"
    2123
    2224using namespace std;
     
    5860
    5961void OBBTree::drawBV(int currentDepth, const int depth) const
    60 {}
     62{
     63  if( likely(this->rootNode != NULL))
     64    this->rootNode->drawBV(currentDepth, depth);
     65}
    6166
    6267
    6368void OBBTree::drawBVPolygon(int currentDepth, const int depth) const
    64 {}
     69{
     70  if( likely(this->rootNode != NULL))
     71    this->rootNode->drawBVPolygon(currentDepth, depth);
     72}
    6573
    6674
    6775void OBBTree::drawBVBlended(int currentDepth, const int depth) const
    68 {}
     76{
     77  if( likely(this->rootNode != NULL))
     78    this->rootNode->drawBVBlended(currentDepth, depth);
     79}
    6980
    7081
  • orxonox/trunk/src/lib/collision_detection/obb_tree.h

    r4546 r4550  
    88#define _OBB_TREE_H
    99
    10 #include "base_object.h"
    1110#include "bv_tree.h"
    1211
     12
     13class OBBTreeNode;
    1314
    1415//! A class for representing an obb tree
     
    3132
    3233 private:
     34  OBBTreeNode*         rootNode;                        //!< reference to the root node of the tree
    3335
    3436};
  • orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc

    r4548 r4550  
    2020#include "obb.h"
    2121#include "vector.h"
     22#include "abstract_model.h"
    2223
    2324#include <math.h>
  • orxonox/trunk/src/lib/collision_detection/obb_tree_node.h

    r4548 r4550  
    99
    1010#include "bv_tree_node.h"
    11 #include "abstract_model.h"
     11
     12
    1213
    1314// FORWARD DEFINITION
    1415class BoundingVolume;
     16//struct sVec3D;
    1517
    1618//! A class that represents a bounding volume tree
Note: See TracChangeset for help on using the changeset viewer.