Public Member Functions | Protected Member Functions | Protected Attributes | Friends

PtrOctree::cell_iterator Class Reference

Octree cell iterator : Traverse the octree returning basic information on the cells. More...

#include <ptr_octree.h>

Inheritance diagram for PtrOctree::cell_iterator:
PtrOctree::leaf_iterator

List of all members.

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_iteratoroperator= (const cell_iterator &i)
 Assignment operator.
bool operator() () const
 validation operator
cell_iteratoroperator++ ()
 next position
geom_celltop ()
 geom_cell accessor
realoperator* ()
 id accessor
Level & lv ()
 level accessor
realcx ()
 center x position accessor
realcy ()
 center y position accessor
realcz ()
 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

Detailed Description

Octree cell iterator : Traverse the octree returning basic information on the cells.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Defines