Last change
on this file since 4898 was
4898,
checked in by patrick, 19 years ago
|
orxonox/trunk: again some very fundamental changes in the tree spawing algorithm. some strange effects left
|
File size:
762 bytes
|
Line | |
---|
1 | /*! |
---|
2 | \file quadtree.h |
---|
3 | * Definition of a spatial data separation using quadtree |
---|
4 | |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef _QUADTREE_H |
---|
8 | #define _QUADTREE_H |
---|
9 | |
---|
10 | |
---|
11 | #include "base_object.h" |
---|
12 | #include "abstract_model.h" |
---|
13 | |
---|
14 | class QuadtreeNode; |
---|
15 | |
---|
16 | //! A class for quadtree separation of the world |
---|
17 | class Quadtree : public BaseObject { |
---|
18 | |
---|
19 | public: |
---|
20 | Quadtree(modelInfo* pModelInfo, const int treeDepth); |
---|
21 | virtual ~Quadtree(); |
---|
22 | |
---|
23 | void drawTree(int depth, int drawMode) const; |
---|
24 | |
---|
25 | private: |
---|
26 | QuadtreeNode* rootNode; //!< reference to the root node of the quadtree |
---|
27 | modelInfo* pModelInfo; //!< reference to the modelInfo of the object |
---|
28 | int treeDepth; //!< depth of the tree |
---|
29 | }; |
---|
30 | |
---|
31 | #endif /* _QUADTREE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.