Point Cloud Viewer
1.00
A Viewer to display point clouds with phong shading by converting them to splats.
|
Stores an entity octree. More...
#include <entityoctreecontainer.h>
Public Member Functions | |
EntityOctreeContainer (float width=0, float x=0, float y=0, float z=0) | |
Constructor. More... | |
void | insert (Entity &entity) |
Insert an entity into this octree. More... | |
Entity ** | knnSearch (Entity &to, unsigned char k, float *distances=0) |
k-Nearest Neighbour search. More... | |
EntityOctree::Iterator | iterator () |
Returns an iterator that iterates over the whole octree. More... | |
unsigned int | size () |
Returns the number of Entities stored in the octree. More... | |
Stores an entity octree.
EntityOctreeContainer::EntityOctreeContainer | ( | float | width = 0 , |
float | x = 0 , |
||
float | y = 0 , |
||
float | z = 0 |
||
) |
Constructor.
width | The initial side length of the tree's bounding box. |
x | The x coordinate of the tree's center. |
y | The y coordinate of the tree's center. |
z | The z coordinate of the tree's center. |
void EntityOctreeContainer::insert | ( | Entity & | entity | ) |
Insert an entity into this octree.
Do not modify or delete the entity after it has been passed.
entity | The entity to insert. |
EntityOctree::Iterator EntityOctreeContainer::iterator | ( | ) |
Returns an iterator that iterates over the whole octree.
k-Nearest Neighbour search.
to | The reference entity to which the neighbours are searched. If it is stored in the tree it will be the first entry of the resturned list. |
k | The number of neighbours to search. |
distances | Optional; an array of length k into which the distances to the entities of the result list are stored. If less than k entities were found the remaining array entries are set to infinity. |
unsigned int EntityOctreeContainer::size | ( | ) |
Returns the number of Entities stored in the octree.