Blender V5.3
blender::kdtree::FilteredNearestQuery< ValueT, Filter > Class Template Reference

#include <BLI_kdtree_new.hh>

Public Member Functions

 FilteredNearestQuery (Filter filter)
int index () const
ValueT distance_sq () const
bool add_point (const ValueT distance_sq, const int index)
ValueT max_distance_sq () const

Static Public Attributes

static constexpr bool inclusive = false

Detailed Description

template<typename ValueT, typename Filter>
class blender::kdtree::FilteredNearestQuery< ValueT, Filter >

Like NearestQuery, but only the points accepted by a filter shrink the search radius.

Definition at line 315 of file BLI_kdtree_new.hh.

Constructor & Destructor Documentation

◆ FilteredNearestQuery()

template<typename ValueT, typename Filter>
blender::kdtree::FilteredNearestQuery< ValueT, Filter >::FilteredNearestQuery ( Filter filter)
inlineexplicit

Definition at line 324 of file BLI_kdtree_new.hh.

Member Function Documentation

◆ add_point()

template<typename ValueT, typename Filter>
bool blender::kdtree::FilteredNearestQuery< ValueT, Filter >::add_point ( const ValueT distance_sq,
const int index )
inline

Definition at line 335 of file BLI_kdtree_new.hh.

References distance_sq(), and index().

◆ distance_sq()

template<typename ValueT, typename Filter>
ValueT blender::kdtree::FilteredNearestQuery< ValueT, Filter >::distance_sq ( ) const
inline

Definition at line 330 of file BLI_kdtree_new.hh.

Referenced by add_point(), and blender::KDTreeNew< T >::find_nearest_filtered().

◆ index()

template<typename ValueT, typename Filter>
int blender::kdtree::FilteredNearestQuery< ValueT, Filter >::index ( ) const
inline

Definition at line 326 of file BLI_kdtree_new.hh.

Referenced by add_point(), and blender::KDTreeNew< T >::find_nearest_filtered().

◆ max_distance_sq()

template<typename ValueT, typename Filter>
ValueT blender::kdtree::FilteredNearestQuery< ValueT, Filter >::max_distance_sq ( ) const
inline

Definition at line 344 of file BLI_kdtree_new.hh.

Member Data Documentation

◆ inclusive

template<typename ValueT, typename Filter>
bool blender::kdtree::FilteredNearestQuery< ValueT, Filter >::inclusive = false
staticconstexpr

Definition at line 322 of file BLI_kdtree_new.hh.


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