Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
gte::NearestNeighborQuery< N, Real, Site, MaxNeighbors > Class Template Reference

#include <GteNearestNeighborQuery.h>

Classes

struct  Node
 
class  SortFunctor
 

Public Member Functions

int FindNeighbors (Vector< N, Real > const &point, Real radius, std::array< int, MaxNeighbors > &neighbors) const
 
int GetMaxLeafSize () const
 
int GetMaxLevel () const
 
 NearestNeighborQuery (std::vector< Site > const &sites, int maxLeafSize, int maxLevel)
 

Private Types

typedef std::pair< Vector< N, Real >, intSortedPoint
 

Private Member Functions

void Build (int numSites, int siteOffset, int nodeIndex, int level)
 

Private Attributes

int mMaxLeafSize
 
int mMaxLevel
 
std::vector< NodemNodes
 
std::vector< SortedPointmSortedPoints
 

Detailed Description

template<int N, typename Real, typename Site, int MaxNeighbors>
class gte::NearestNeighborQuery< N, Real, Site, MaxNeighbors >

Definition at line 29 of file GteNearestNeighborQuery.h.

Member Typedef Documentation

template<int N, typename Real , typename Site , int MaxNeighbors>
typedef std::pair<Vector<N, Real>, int> gte::NearestNeighborQuery< N, Real, Site, MaxNeighbors >::SortedPoint
private

Definition at line 48 of file GteNearestNeighborQuery.h.

Constructor & Destructor Documentation

template<int N, typename Real , typename Site , int MaxNeighbors>
gte::NearestNeighborQuery< N, Real, Site, MaxNeighbors >::NearestNeighborQuery ( std::vector< Site > const &  sites,
int  maxLeafSize,
int  maxLevel 
)

Definition at line 83 of file GteNearestNeighborQuery.h.

Member Function Documentation

template<int N, typename Real , typename Site , int MaxNeighbors>
void gte::NearestNeighborQuery< N, Real, Site, MaxNeighbors >::Build ( int  numSites,
int  siteOffset,
int  nodeIndex,
int  level 
)
private

Definition at line 193 of file GteNearestNeighborQuery.h.

template<int N, typename Real , typename Site , int MaxNeighbors>
int gte::NearestNeighborQuery< N, Real, Site, MaxNeighbors >::FindNeighbors ( Vector< N, Real > const &  point,
Real  radius,
std::array< int, MaxNeighbors > &  neighbors 
) const

Definition at line 113 of file GteNearestNeighborQuery.h.

template<int N, typename Real , typename Site , int MaxNeighbors>
int gte::NearestNeighborQuery< N, Real, Site, MaxNeighbors >::GetMaxLeafSize ( ) const
inline

Definition at line 101 of file GteNearestNeighborQuery.h.

template<int N, typename Real , typename Site , int MaxNeighbors>
int gte::NearestNeighborQuery< N, Real, Site, MaxNeighbors >::GetMaxLevel ( ) const
inline

Definition at line 107 of file GteNearestNeighborQuery.h.

Member Data Documentation

template<int N, typename Real , typename Site , int MaxNeighbors>
int gte::NearestNeighborQuery< N, Real, Site, MaxNeighbors >::mMaxLeafSize
private

Definition at line 75 of file GteNearestNeighborQuery.h.

template<int N, typename Real , typename Site , int MaxNeighbors>
int gte::NearestNeighborQuery< N, Real, Site, MaxNeighbors >::mMaxLevel
private

Definition at line 76 of file GteNearestNeighborQuery.h.

template<int N, typename Real , typename Site , int MaxNeighbors>
std::vector<Node> gte::NearestNeighborQuery< N, Real, Site, MaxNeighbors >::mNodes
private

Definition at line 78 of file GteNearestNeighborQuery.h.

template<int N, typename Real , typename Site , int MaxNeighbors>
std::vector<SortedPoint> gte::NearestNeighborQuery< N, Real, Site, MaxNeighbors >::mSortedPoints
private

Definition at line 77 of file GteNearestNeighborQuery.h.


The documentation for this class was generated from the following file:


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:06