Hugin trunk 0.1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
KDTreeSpace::HyperRectangle< KE, TYPE > Class Template Reference

#include <KDTree.h>

Inheritance diagram for KDTreeSpace::HyperRectangle< KE, TYPE >:
Inheritance graph

Public Member Functions

 HyperRectangle ()
 
 HyperRectangle (int iDim)
 
 HyperRectangle (HyperRectangle &iOther)
 
bool split (HyperRectangle &oLeft, HyperRectangle &oRight, int iSplitDim, TYPE iSplitVal)
 
double calcSqDistance (const KE &iTarget)
 
bool hasHyperSphereIntersect (const KE &iTarget, double iSqDistance)
 
void display ()
 
bool isTargetIn (const KE &iTarget)
 

Public Attributes

int _dim
 
std::vector< TYPE_leftTop
 
std::vector< TYPE_rightBottom
 

Detailed Description

template<class KE, class TYPE>
class KDTreeSpace::HyperRectangle< KE, TYPE >

Definition at line 65 of file KDTree.h.

Constructor & Destructor Documentation

◆ HyperRectangle() [1/3]

template<class KE , class TYPE >
KDTreeSpace::HyperRectangle< KE, TYPE >::HyperRectangle ( )

Definition at line 372 of file KDTreeImpl.h.

◆ HyperRectangle() [2/3]

template<class KE , class TYPE >
KDTreeSpace::HyperRectangle< KE, TYPE >::HyperRectangle ( int  iDim)
explicit

Definition at line 381 of file KDTreeImpl.h.

◆ HyperRectangle() [3/3]

template<class KE , class TYPE >
KDTreeSpace::HyperRectangle< KE, TYPE >::HyperRectangle ( HyperRectangle< KE, TYPE > &  iOther)

Definition at line 391 of file KDTreeImpl.h.

Member Function Documentation

◆ calcSqDistance()

template<class KE , class TYPE >
double KDTreeSpace::HyperRectangle< KE, TYPE >::calcSqDistance ( const KE iTarget)

Definition at line 428 of file KDTreeImpl.h.

References threshold().

◆ display()

template<class KE , class TYPE >
void KDTreeSpace::HyperRectangle< KE, TYPE >::display ( )

Definition at line 473 of file KDTreeImpl.h.

References threshold().

◆ hasHyperSphereIntersect()

template<class KE , class TYPE >
bool KDTreeSpace::HyperRectangle< KE, TYPE >::hasHyperSphereIntersect ( const KE iTarget,
double  iSqDistance 
)

Definition at line 459 of file KDTreeImpl.h.

References threshold().

◆ isTargetIn()

template<class KE , class TYPE >
bool KDTreeSpace::HyperRectangle< KE, TYPE >::isTargetIn ( const KE iTarget)

Definition at line 487 of file KDTreeImpl.h.

References threshold().

◆ split()

template<class KE , class TYPE >
bool KDTreeSpace::HyperRectangle< KE, TYPE >::split ( HyperRectangle< KE, TYPE > &  oLeft,
HyperRectangle< KE, TYPE > &  oRight,
int  iSplitDim,
TYPE  iSplitVal 
)

Definition at line 404 of file KDTreeImpl.h.

References threshold().

Member Data Documentation

◆ _dim

Definition at line 77 of file KDTree.h.

◆ _leftTop

template<class KE , class TYPE >
std::vector<TYPE> KDTreeSpace::HyperRectangle< KE, TYPE >::_leftTop

Definition at line 78 of file KDTree.h.

◆ _rightBottom

template<class KE , class TYPE >
std::vector<TYPE> KDTreeSpace::HyperRectangle< KE, TYPE >::_rightBottom

Definition at line 78 of file KDTree.h.


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