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
22
23
25
26class TileSphere;
27
33{
34public:
35
40
45
47 void getStatistics(int &addedPairs, int &hits, int &misses);
48
49
50private:
51
53 int _hashSize;
55 std::vector<MLuint32>* _hashTable;
56
58 int _addedPairs, _hits, _misses;
59};
60
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
Target mlrange_cast(Source arg)
Generic version of checked ML casts.