Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/lib/graphics/spatial_separation/quadtree.h @ 4853

Last change on this file since 4853 was 4845, checked in by patrick, 19 years ago

orxonox/trunk: added the rectangle to the vector file, since it is a geometrical body like a plane (the plane without arrows…), moved getDimension function to the QuadtreeNode

File size: 681 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
14class QuadtreeNode;
15
16//! A class for quadtree separation of the world
17class Quadtree : public BaseObject {
18
19 public:
20  Quadtree(modelInfo* pModelInfo);
21  virtual ~Quadtree();
22
23  void separate();
24
25  void drawTree(int depth, int drawMode) const;
26
27 private:
28   QuadtreeNode*                   rootNode;              //!< reference to the root node of the quadtree
29   modelInfo*                      pModelInfo;            //!< reference to the modelInfo of the object
30
31};
32
33#endif /* _QUADTREE_H */
Note: See TracBrowser for help on using the repository browser.