Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: implemented some new functions for the quadtree(node) classes

File size: 658 bytes
RevLine 
[4790]1/*!
2    \file quadtree.h
3    \brief Definition of a spatial data separation using quadtree
4
5*/
6
7#ifndef _QUADTREE_H
8#define _QUADTREE_H
9
10
[4805]11#include "base_object.h"
[4810]12#include "vector.h"
[4790]13
[4810]14class QuadtreeNode;
15
[4790]16//! A class for quadtree separation of the world
[4805]17class Quadtree : public BaseObject {
[4790]18
19 public:
20  Quadtree();
21  virtual ~Quadtree();
22
[4812]23  void separate();
24
[4811]25  void drawTree(int depth, int drawMode) const;
[4790]26
27 private:
[4811]28   QuadtreeNode*                   rootNode;              //!< reference to the root node of the quadtree
29   modelInfo*                      pModelInfo;            //!< reference to the modelInfo of the object
[4790]30
31};
32
33#endif /* _QUADTREE_H */
Note: See TracBrowser for help on using the repository browser.