LBIBCell
|
class representing a node of a quadtree The template parameter Node needs to provide the methods getXPos() and getYPos() to access the postion of the node More...
#include <QuadTreeNode.hpp>
Public Member Functions | |
QuadTreeNode (const Rectangle &rect, int maximumItems) | |
QuadTreeNode Constructs a new QuadTreeNode. More... | |
~QuadTreeNode () | |
bool | put (std::shared_ptr< Node > pt) |
put Inserts a point into the Node More... | |
std::vector< std::shared_ptr < Node > > & | get (const Rectangle &rect, std::vector< std::shared_ptr< Node > > &vector) |
get Get all Points in the defined rectangle More... | |
class representing a node of a quadtree The template parameter Node needs to provide the methods getXPos() and getYPos() to access the postion of the node
Definition at line 34 of file QuadTreeNode.hpp.
|
explicit |
QuadTreeNode Constructs a new QuadTreeNode.
rect | The boarders of this node |
maximumItems | The number of items stored in one leaf |
Definition at line 120 of file QuadTreeNode.hpp.
UtilLib::geometry::QuadTreeNode< Node >::~QuadTreeNode | ( | ) |
Destructor
Definition at line 132 of file QuadTreeNode.hpp.
std::vector< std::shared_ptr< Node > > & UtilLib::geometry::QuadTreeNode< Node >::get | ( | const Rectangle & | rect, |
std::vector< std::shared_ptr< Node > > & | vector | ||
) |
get Get all Points in the defined rectangle
rect | The rectange |
vector | A vector of all Points found so far |
Definition at line 223 of file QuadTreeNode.hpp.
bool UtilLib::geometry::QuadTreeNode< Node >::put | ( | std::shared_ptr< Node > | pt | ) |
put Inserts a point into the Node
pt | A Pointer to a point stored in the tree. However the quadTree does not take over the ownership |
Definition at line 206 of file QuadTreeNode.hpp.