Last change
on this file since 4587 was
4560,
checked in by patrick, 19 years ago
|
orxonox/trunk: compiles again, some smaller changes in the cd engine
|
File size:
1.1 KB
|
Line | |
---|
1 | /*! |
---|
2 | \file bounding_volume.h |
---|
3 | \brief Definition of a bounding volume for collision detection algorithms |
---|
4 | |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef _BOUNDING_VOLUME_H |
---|
8 | #define _BOUNDING_VOLUME_H |
---|
9 | |
---|
10 | #include "base_object.h" |
---|
11 | |
---|
12 | class sVect3D; |
---|
13 | class Vector; |
---|
14 | template<class T> class tList; |
---|
15 | |
---|
16 | |
---|
17 | //! An abstract class representing a bounding volume |
---|
18 | class BoundingVolume : public BaseObject { |
---|
19 | |
---|
20 | public: |
---|
21 | BoundingVolume(); |
---|
22 | virtual ~BoundingVolume(); |
---|
23 | |
---|
24 | inline const Vector* getCenter() const { return this->center; } |
---|
25 | |
---|
26 | virtual sVect3D* getVertices() const = NULL; |
---|
27 | virtual void mergeWith(const BoundingVolume &bv) = NULL; |
---|
28 | |
---|
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; |
---|
32 | |
---|
33 | |
---|
34 | public: |
---|
35 | Vector* center; //!< Center point of box |
---|
36 | |
---|
37 | sVect3D* vertices; //!< if CD_STORE_VERTICES enabled, this is the place, where the vert. will be sotred |
---|
38 | int numOfVertices; //!< number of vertices in the vertices buffer |
---|
39 | }; |
---|
40 | |
---|
41 | #endif /* _BOUNDING_VOLUME_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.