MeVisLab Toolbox Reference
TileSphereHashTable.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2007, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 
18 
19 #pragma once
20 
21 #include "../MLPointCloudUtilsSystem.h"
22 
23 
24 ML_START_NAMESPACE
25 
26 class TileSphere;
27 
33 {
34 public:
35 
40 
42  void addPair(TileSphere* tileSphere1, TileSphere* tileSphere2);
44  bool existPair(TileSphere* tileSphere1, TileSphere* tileSphere2);
45 
47  void getStatistics(int &addedPairs, int &hits, int &misses);
48 
49 
50 private:
51 
53  int _hashSize;
55  std::vector<MLuint32>* _hashTable;
56 
58  int _addedPairs, _hits, _misses;
59 };
60 
61 ML_END_NAMESPACE
TileSphereHashTable is used in the classes MinimalDistancePointClouds and TileSphere.
TileSphereHashTable()
Constructor.
void addPair(TileSphere *tileSphere1, TileSphere *tileSphere2)
Adds a pair of spheres into the hash table.
bool existPair(TileSphere *tileSphere1, TileSphere *tileSphere2)
Checks whether the given pair exists or not.
void getStatistics(int &addedPairs, int &hits, int &misses)
Hash table statistics.
virtual ~TileSphereHashTable()
Destructor.
TileSphere is used in the class MinimalDistancePointClouds.
Definition: TileSphere.h:37