Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jun 7, 2005, 9:22:30 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: some more function skeletons implemented

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

Legend:

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

    r4528 r4531  
    1212// FORWARD DEFINITION
    1313class BoundingVolume;
    14 
     14class sVec3D;
    1515
    1616//! A class that represents a bounding volume tree
     
    3232  virtual void drawBVBlended(int currentDepth, const int depth) const;
    3333
     34 protected:
     35  sVec3D* vertices;
     36
    3437 private:
    3538  BoundingVolume* firstElement;
  • orxonox/trunk/src/lib/collision_detection/obb.cc

    r4511 r4531  
    3838  // delete what has to be deleted here
    3939}
     40
     41
     42sVect3D* OBB::getVertices() const
     43{}
     44
     45
     46void OBB::mergeWith(const BoundingVolume &bv)
     47{}
     48
     49
     50void OBB::drawBV(int currentDepth, const int depth) const
     51{}
     52
     53
     54void OBB::drawBVPolygon(int currentDepth, const int depth) const
     55{}
     56
     57
     58void OBB::drawBVBlended(int currentDepth, const int depth) const
     59{}
  • orxonox/trunk/src/lib/collision_detection/obb.h

    r4526 r4531  
    2222  inline const sVect3D* getHalfLength() const { return this->halfLength; }
    2323
     24  virtual sVect3D* getVertices() const;
     25  virtual void mergeWith(const BoundingVolume &bv);
     26
     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;
     30
     31
    2432 private:
    2533  Vector*          axis;                       //!< Axes of oriented box [x,y,z]
  • orxonox/trunk/src/lib/collision_detection/obb_tree.cc

    r4528 r4531  
    1717
    1818#include "obb_tree.h"
     19#include "obb.h"
    1920
    2021using namespace std;
     
    4243
    4344void OBBTree::spawnBVTree(int depth)
    44 {}
     45{
     46  OBB obb();
     47 
     48}
    4549
    4650
  • orxonox/trunk/src/lib/collision_detection/obb_tree.h

    r4528 r4531  
    1010#include "base_object.h"
    1111#include "bv_tree.h"
     12
    1213
    1314//! A class for representing an obb tree
Note: See TracChangeset for help on using the changeset viewer.