Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/lib/collision_detection/bounding_volume.h @ 4533

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

orxonox/trunk: flushing work

File size: 1.0 KB
RevLine 
[4510]1/*!
[4511]2    \file bounding_volume.h
3    \brief Definition of a bounding volume for collision detection algorithms
[4510]4
5*/
6
[4511]7#ifndef _BOUNDING_VOLUME_H
8#define _BOUNDING_VOLUME_H
[4510]9
10#include "base_object.h"
11
[4520]12class sVect3D;
13class Vector;
[4510]14
[4511]15//! An abstract class representing a bounding volume
16class BoundingVolume : public BaseObject {
[4510]17
18 public:
[4511]19  BoundingVolume();
20  virtual ~BoundingVolume();
[4510]21
[4520]22  inline const Vector* getCenter() const { return this->center; }
[4525]23  inline const int getIndex() { return this->treeIndex; }
[4510]24
[4521]25  virtual sVect3D* getVertices() const = NULL;
[4524]26  virtual void mergeWith(const BoundingVolume &bv) = NULL;
[4520]27
[4524]28  virtual void drawBV(int currentDepth, const int depth) const = NULL;
29  virtual void drawBVPolygon(int currentDepth, const int depth) const = NULL;
30  virtual void drawBVBlended(int currentDepth, const int depth) const = NULL;
[4521]31
[4525]32
[4533]33 protected:
[4521]34  Vector*             center;                     //!< Center point of box
[4510]35
[4521]36  unsigned int        treeIndex;                  //!< Index number of the BV in the tree
[4510]37};
38
[4511]39#endif /* _BOUNDING_VOLUME_H */
Note: See TracBrowser for help on using the repository browser.