|
Last change
on this file since 4868 was
4868,
checked in by patrick, 20 years ago
|
|
orxonox/trunk: cleaned out a segfault in the getDimension function
|
|
File size:
747 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); |
|---|
| 21 | virtual ~Quadtree(); |
|---|
| 22 | |
|---|
| 23 | void separate(); |
|---|
| 24 | void separate(int treeDepth); |
|---|
| 25 | void separate(float minLength); |
|---|
| 26 | |
|---|
| 27 | void drawTree(int depth, int drawMode) const; |
|---|
| 28 | |
|---|
| 29 | private: |
|---|
| 30 | QuadtreeNode* rootNode; //!< reference to the root node of the quadtree |
|---|
| 31 | modelInfo* pModelInfo; //!< reference to the modelInfo of the object |
|---|
| 32 | |
|---|
| 33 | }; |
|---|
| 34 | |
|---|
| 35 | #endif /* _QUADTREE_H */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.