GraphPyramidLookupTable.h
Go to the documentation of this file.
1// *****************************************************************
2// Filename: GraphPyramidLookupTable.h
3// Copyright: Kai Welke, Chair Prof. Dillmann (IAIM),
4// Institute for Computer Science and Engineering (CSE),
5// University of Karlsruhe. All rights reserved.
6// Author: Kai Welke
7// Date: 10.10.2008
8// *****************************************************************
9
10#pragma once
11
12// *****************************************************************
13// includes
14// *****************************************************************
15#include <list>
16
17#include "GraphLookupTable.h"
18#include "SphericalGraph.h"
19
20// *****************************************************************
21// decleration of CGraphPyramidLookupTable
22// *****************************************************************
24{
25public:
26 // construction / destruction
27 CGraphPyramidLookupTable(int nMaxZenithBins, int nMaxAzimuthBins);
29
30 // build table
32
33 // operation
34 int getClosestNode(Eigen::Vector3d position);
35 int getClosestNode(TSphereCoord position);
36
37private:
38 std::list<CGraphLookupTable*> m_Tables;
39 int m_nSubDivision;
40 int m_nLevels;
41
42 int m_nMaxZenithBins;
43 int m_nMaxAzimuthBins;
44};
int getClosestNode(Eigen::Vector3d position)
CGraphPyramidLookupTable(int nMaxZenithBins, int nMaxAzimuthBins)
void buildLookupTable(CSphericalGraph *pGraph)