VoxelHash.h

Go to the documentation of this file.
00001 #ifndef SimTK_MOLMODEL_VOXELMAP_H
00002 #define SimTK_MOLMODEL_VOXELMAP_H
00003 
00004 namespace SimTK {
00005 
00006 // integer x, y, z index of a voxel in a VoxelMap
00007 class SimTK_MOLMODEL_EXPORT VoxelIndex
00008 {
00009 public:
00010     VoxelIndex(int x, int y, int z) : x(x), y(y), z(z) {}
00011 
00012     bool operator<(const VoxelIndex& other)
00013     {
00014         if (x < other.x) return true;
00015     }
00016 
00017 private:
00018     int x, y, z;
00019 };
00020 
00021 // single voxel unit in a VoxelMap
00022 // contains a set of objects in a cube-shaped region of space
00023 template <Type T>
00024 class SimTK_MOLMODEL_EXPORT Voxel
00025 {
00026 public:
00027     typedef std::pair<SimTK::Vec3, T> Occupant;
00028 
00029     class Map<T>;
00030 private:
00031     std::set<Occupant> occupants;
00032 };
00033 
00034 // 
00035 template <Type T>
00036 class SimTK_MOLMODEL_EXPORT Voxel::Map
00037 {
00038 public:
00039 };
00040 
00041 
00042 }
00043 
00044 #endif // SimTK_MOLMODEL_VOXELMAP_H

Generated on Fri Sep 26 07:44:19 2008 for SimTKcore by  doxygen 1.5.6