Octree cell iterator : Traverse the octree returning basic information on the cells. More...
#include <ptr_octree.h>
Public Member Functions | |
cell_iterator (PtrOctree::cell *root=NULL, real cx_=0.5, real cy_=0.5, real cz_=0.5, Level lv_=0) | |
Default constructor : Constructs an iterator from a cell. | |
~cell_iterator () | |
Destructor. | |
cell_iterator (const cell_iterator &i) | |
Copy constructor. | |
cell_iterator & | operator= (const cell_iterator &i) |
Assignment operator. | |
bool | operator() () const |
validation operator | |
cell_iterator & | operator++ () |
next position | |
geom_cell & | top () |
geom_cell accessor | |
real & | operator* () |
id accessor | |
Level & | lv () |
level accessor | |
real & | cx () |
center x position accessor | |
real & | cy () |
center y position accessor | |
real & | cz () |
center y position accessor | |
real | sz () |
size accessor | |
bool | is_leaf () const |
points accessor | |
bool | contains (real x, real y, real z) const |
inside test | |
bool | son (int i, geom_cell &s_) |
get son from its side: | |
void | draw_wire () const |
Draws the cell wire with opengl. | |
Protected Member Functions | |
std::stack< geom_cell > & | s () |
stack accessor for ad hoc iterations | |
Protected Attributes | |
std::stack< geom_cell > | _s |
Octree traversal stack. | |
Friends | |
class | PtrOctree |
Octree cell iterator : Traverse the octree returning basic information on the cells.