Main Page | Class Hierarchy | Class List | File List | Class Members

Voxelizer Class Reference

#include <voxelizer.h>

List of all members.

Public Member Functions

 Voxelizer (SPH &sph, const double d_min)
void reset ()
bool next ()
bool at_end () const
const Geometryget_voxel () const
void to_xml (std::ostream &o)


Detailed Description

Vozelizes a sph space.

Author:
Moritz Franosch


Constructor & Destructor Documentation

Voxelizer::Voxelizer SPH sph,
const double  d_min
 

Constructs a voxelized space from a sph space.

The voxels start at diameter sph.get_d() and are recursively made smaller until d_min.

d_min Minimum diameter of voxels.


Member Function Documentation

bool Voxelizer::at_end  )  const
 

Last next() has returned false.

const Geometry & Voxelizer::get_voxel  )  const
 

Returns a reference to the current voxel.

bool Voxelizer::next  ) 
 

Iterator set to next voxel.

Returns false if no next voxel exists.

void Voxelizer::reset  ) 
 

Resets iterator through voxels.

void Voxelizer::to_xml std::ostream &  o  ) 
 

Output of voxelizer as XML.


The documentation for this class was generated from the following files:
Generated on Fri Apr 22 11:06:54 2005 for partsim.kdevelop by doxygen 1.3.6