Changeset 6909 in orxonox.OLD for branches/current_cd/src/lib/collision_detection/bv_tree.h
- Timestamp:
- Jan 31, 2006, 6:02:16 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/current_cd/src/lib/collision_detection/bv_tree.h
r6022 r6909 18 18 class WorldEntity; 19 19 20 //! draw mode for the bounding volume 20 21 typedef enum DrawMode 21 22 { … … 33 34 34 35 //! A class that represents a bounding volume tree 35 class BVTree : public BaseObject { 36 class BVTree : public BaseObject 37 { 36 38 37 public:38 BVTree();39 virtual ~BVTree();39 public: 40 BVTree(); 41 virtual ~BVTree(); 40 42 41 virtual void spawnBVTree(int depth, sVec3D *verticesList, const int length) = 0; 42 virtual void spawnBVTree(int depth, const modelInfo& modInfo) = 0; 43 virtual void flushTree() = 0; 43 virtual void spawnBVTree(const modelInfo& modelInf) = 0; 44 virtual void flushTree() = 0; 44 45 45 virtual void collideWith(BVTree* tree, WorldEntity* nodeA, WorldEntity* nodeB) = 0; 46 virtual void collideWith(WorldEntity* entity1, WorldEntity* entity2) = 0; 46 virtual void collideWith(const WorldEntity& entity1, const WorldEntity& entity2) const = 0; 47 47 48 /** @param depth: depth, @param drawMode: how to draw the Model */ 49 virtual void drawBV(int depth, int drawMode) const = 0; 50 51 52 protected: 53 int numberOfVertices; 54 55 private: 56 57 48 virtual void drawBV(int depth, int drawMode) const = 0; 58 49 }; 59 50
Note: See TracChangeset
for help on using the changeset viewer.