Changeset 6657 in orxonox.OLD for branches/cd_merge/src/lib/collision_detection/bv_tree_node.h
- Timestamp:
- Jan 23, 2006, 2:25:13 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cd_merge/src/lib/collision_detection/bv_tree_node.h
r6022 r6657 8 8 #define _BV_TREE_NODE_H 9 9 10 10 11 #include "base_object.h" 11 12 #include "model.h" 12 13 #include "vector.h" 13 14 14 // FORWARD DECLARATION 15 16 // forward declarations 15 17 class BoundingVolume; 16 18 class BVTree; … … 19 21 template<class T> class tList; 20 22 23 21 24 //! A class that represents a bounding volume tree 22 25 class BVTreeNode : public BaseObject { 26 23 27 24 28 public: … … 26 30 virtual ~BVTreeNode(); 27 31 28 virtual void spawnBVTree(const int depth, const sVec3D *verticesList, unsigned int length ) = 0; 29 virtual void spawnBVTree(const int depth, const modelInfo& modInfo) = 0; 32 virtual const BoundingVolume* getBV() const = 0; 33 /** returns the index of this bounding volume tree node @returns index of this index */ 34 inline const int getIndex() const { return this->treeIndex; } 30 35 31 virtual BoundingVolume* getBV(int index) const = 0; 32 inline const int getIndex() { return this->treeIndex; } 33 34 virtual void collideWith(BVTreeNode* treeNode, WorldEntity* nodeA, WorldEntity* nodeB) = 0; 35 36 virtual void spawnBVTree(const modelInfo& modInfo, const int* triangleIndexes, int length) = 0; 37 virtual void collideWith(const BVTreeNode& treeNode, const WorldEntity& nodeA, const WorldEntity& nodeB) const = 0; 36 38 virtual void drawBV(int depth, int drawMode, const Vector& color = Vector(1,0,0), bool top = true) const = 0; 37 39
Note: See TracChangeset
for help on using the changeset viewer.