|
Jafar
|
This class allow to store geometric objects in a voxel space. More...
This class allow to store geometric objects in a voxel space.
_TObject_ can be of any type but must give access to the atom through _BoundingBoxGetter_.
_BoundingBoxGetter_ defines the following static function: const geom::Atom<_dimension_>& _BoundingBoxGetter_::boundingBox( const _TObject* );
Definition at line 176 of file VoxelSpace.hpp.
#include <VoxelSpace.hpp>
Classes | |
| struct | FindObjectsFunctor |
| This functor is used to retrieve all objects inside a bounding box. More... | |
| struct | FindVoxelsFunctor |
| This functor is used to find all the voxels inside a bounding box. More... | |
| struct | InsertFunctor |
| This functor is used to insert a new object. More... | |
| struct | RemoveFunctor |
| struct | StreamFunctor |
| class | Voxel |
Public Member Functions | |
| VoxelSpace (double voxelSize_) | |
| Creates a new space of voxels. | |
| void | insertObject (_TObject_ *object) |
| Insert an object into the VoxelSpace. | |
| void | removeObject (_TObject_ *object) |
| Remove an obejct from the VoxelSpace . | |
| std::list< const Voxel * > | voxelsCountaining (const _TObject_ *object) const |
| std::list< _TObject_ * > | objectsIn (const BoundingBoxD &) const |
Private Types | |
|
typedef geom::BoundingBox < _dimension_ > | BoundingBoxD |
|
typedef Atom< _dimension_ > ::HomogenousVecD | HomogenousVecD |
|
typedef boost::numeric::ublas::bounded_vector < int, _dimension_ > | IndexVec |
| typedef std::list< _TObject_ * > | ObjectsList |
| typedef ObjectsList::iterator | ObjectsList_it |
| typedef ObjectsList::const_iterator | ObjectsList_cit |
Private Member Functions | |
| IndexVec | indexFor (const HomogenousVecD &v) const |
Private Attributes | |
|
VoxelMultiDimensionStorage < _dimension_, Voxel > | m_voxels |
| This parameter defines the size of a voxel. | |
Friends | |
| std::ostream & | operator<< (std::ostream &s, const VoxelSpace< _dimension_, _TObject_, _BoundingBoxGetter_ > &) |
| IndexVec jafar::geom::VoxelSpace< _dimension_, _TObject_, _BoundingBoxGetter_ >::indexFor | ( | const HomogenousVecD & | v | ) | const [private] |
| void jafar::geom::VoxelSpace< _dimension_, _TObject_, _BoundingBoxGetter_ >::insertObject | ( | _TObject_ * | object | ) |
Insert an object into the VoxelSpace.
| _TObject_ | object to insert. |
| std::list<const Voxel*> jafar::geom::VoxelSpace< _dimension_, _TObject_, _BoundingBoxGetter_ >::voxelsCountaining | ( | const _TObject_ * | object | ) | const |
| Generated on Wed Oct 15 2014 00:37:38 for Jafar by doxygen 1.7.6.1 |
|