Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: now drawing o-boundingbox as a polygon, seems to be one minor accuracy problem

File size: 1.2 KB
RevLine 
[4588]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"
[4588]11#include "abstract_model.h"
[4510]12
[4520]13class Vector;
[4541]14template<class T> class tList;
[4510]15
[4541]16
[4511]17//! An abstract class representing a bounding volume
18class BoundingVolume : public BaseObject {
[4510]19
20 public:
[4511]21  BoundingVolume();
22  virtual ~BoundingVolume();
[4510]23
[4520]24  inline const Vector* getCenter() const { return this->center; }
[4510]25
[4588]26  sVec3D* getVertices() const { return this->vertices; }
[4524]27  virtual void mergeWith(const BoundingVolume &bv) = NULL;
[4520]28
[4524]29  virtual void drawBV(int currentDepth, const int depth) const = NULL;
30  virtual void drawBVPolygon(int currentDepth, const int depth) const = NULL;
31  virtual void drawBVBlended(int currentDepth, const int depth) const = NULL;
[4521]32
[4525]33
[4560]34 public:
[4521]35  Vector*             center;                     //!< Center point of box
[4510]36
[4588]37  sVec3D*             vertices;                   //!< if CD_STORE_VERTICES enabled, this is the place, where the vert. will be sotred
[4557]38  int                 numOfVertices;              //!< number of vertices in the vertices buffer
[4510]39};
40
[4511]41#endif /* _BOUNDING_VOLUME_H */
Note: See TracBrowser for help on using the repository browser.