MeVisLabToolboxReference
MeVisLab/Standard/Sources/Shared/MLPointCloudUtils/MLMinimalDistancePointClouds/TileSphereHashTable.h
Go to the documentation of this file.
00001 // **InsertLicense** code
00002 //----------------------------------------------------------------------------------
00007 
00012 //----------------------------------------------------------------------------------
00013 
00014 
00015 #ifndef __TileSphereHashTable_H
00016 #define __TileSphereHashTable_H
00017 
00018 
00019 #include "../MLPointCloudUtilsSystem.h"
00020 
00021 
00022 ML_START_NAMESPACE
00023 
00024 class TileSphere;
00025 
00030 class TileSphereHashTable
00031 {
00032 public:
00033 
00035   TileSphereHashTable();
00037   virtual ~TileSphereHashTable();
00038 
00040   void addPair(TileSphere* tileSphere1, TileSphere* tileSphere2);
00042   bool existPair(TileSphere* tileSphere1, TileSphere* tileSphere2);
00043 
00045   void getStatistics(int &addedPairs, int &hits, int &misses);
00046 
00047 
00048 private:
00049 
00051   int _hashSize;
00053   std::vector<MLuint32>* _hashTable;
00054 
00056   int _addedPairs, _hits, _misses;
00057 
00058 };
00059 
00060 ML_END_NAMESPACE
00061 
00062 #endif // __TileSphereHashTable_H