/*! \file bv_tree.h \brief Definition of a bounding volume tree */ #ifndef _BV_TREE_H #define _BV_TREE_H #include "base_object.h" #include "abstract_model.h" // FORWARD DEFINITION class BoundingVolume; class BVTreeNode; typedef enum DrawMode { DRAW_ALL = 1<<0, DRAW_SINGLE = 1<<1, DRAW_SEPARATING_PLANE = 1<<2, DRAW_BV_AXIS = 1<<3, DRAW_BV_BLENDED = 1<<4, DRAW_BV_POLYGON = 1<<5, DRAW_MODEL = 1<<6 }; //! A class that represents a bounding volume tree class BVTree : public BaseObject { public: BVTree(); virtual ~BVTree(); virtual void spawnBVTree(int depth, sVec3D *verticesList, const int length) = NULL; virtual void flushTree() = NULL; virtual void collideWith(BVTree* tree) = NULL; virtual void drawBV(int depth, int drawMode) const = NULL; protected: int numberOfVertices; private: }; #endif /* _BV_TREE_H */