Jet  v1.3.3
Classes | Public Member Functions | Static Public Member Functions | List of all members
jet::PointKdTreeSearcher3 Class Referencefinal

KdTree-based 3-D point searcher. More...

#include <jet/point_kdtree_searcher3.h>

Inheritance diagram for jet::PointKdTreeSearcher3:
jet::PointNeighborSearcher3 jet::Serializable

Classes

class  Builder
 Front-end to create PointKdTreeSearcher3 objects step by step. More...
 

Public Member Functions

 PointKdTreeSearcher3 ()
 Constructs an empty kD-tree instance. More...
 
 PointKdTreeSearcher3 (const PointKdTreeSearcher3 &other)
 Copy constructor. More...
 
void build (const ConstArrayAccessor1< Vector3D > &points) override
 Builds internal acceleration structure for given points list. More...
 
void forEachNearbyPoint (const Vector3D &origin, double radius, const ForEachNearbyPointFunc &callback) const override
 
bool hasNearbyPoint (const Vector3D &origin, double radius) const override
 
PointNeighborSearcher3Ptr clone () const override
 Creates a new instance of the object with same properties than original. More...
 
PointKdTreeSearcher3operator= (const PointKdTreeSearcher3 &other)
 Assignment operator. More...
 
void set (const PointKdTreeSearcher3 &other)
 Copy from the other instance. More...
 
void serialize (std::vector< uint8_t > *buffer) const override
 Serializes the neighbor searcher into the buffer. More...
 
void deserialize (const std::vector< uint8_t > &buffer) override
 Deserializes the neighbor searcher from the buffer. More...
 
- Public Member Functions inherited from jet::PointNeighborSearcher3
 PointNeighborSearcher3 ()
 Default constructor. More...
 
virtual ~PointNeighborSearcher3 ()
 Destructor. More...
 
virtual std::string typeName () const =0
 Returns the type name of the derived class. More...
 
- Public Member Functions inherited from jet::Serializable
 Serializable ()=default
 
virtual ~Serializable ()=default
 

Static Public Member Functions

static Builder builder ()
 Returns builder fox PointKdTreeSearcher3. More...
 

Additional Inherited Members

- Public Types inherited from jet::PointNeighborSearcher3
typedef std::function< void(size_t, const Vector3D &)> ForEachNearbyPointFunc
 

Detailed Description

KdTree-based 3-D point searcher.

This class implements 3-D point searcher by using KdTree for its internal acceleration data structure.

Constructor & Destructor Documentation

◆ PointKdTreeSearcher3() [1/2]

jet::PointKdTreeSearcher3::PointKdTreeSearcher3 ( )

Constructs an empty kD-tree instance.

◆ PointKdTreeSearcher3() [2/2]

jet::PointKdTreeSearcher3::PointKdTreeSearcher3 ( const PointKdTreeSearcher3 other)

Copy constructor.

Member Function Documentation

◆ build()

void jet::PointKdTreeSearcher3::build ( const ConstArrayAccessor1< Vector3D > &  points)
overridevirtual

Builds internal acceleration structure for given points list.

Implements jet::PointNeighborSearcher3.

◆ builder()

static Builder jet::PointKdTreeSearcher3::builder ( )
static

Returns builder fox PointKdTreeSearcher3.

◆ clone()

PointNeighborSearcher3Ptr jet::PointKdTreeSearcher3::clone ( ) const
overridevirtual

Creates a new instance of the object with same properties than original.

Returns
Copy of this object.

Implements jet::PointNeighborSearcher3.

◆ deserialize()

void jet::PointKdTreeSearcher3::deserialize ( const std::vector< uint8_t > &  buffer)
overridevirtual

Deserializes the neighbor searcher from the buffer.

Implements jet::Serializable.

◆ forEachNearbyPoint()

void jet::PointKdTreeSearcher3::forEachNearbyPoint ( const Vector3D origin,
double  radius,
const ForEachNearbyPointFunc callback 
) const
overridevirtual

Invokes the callback function for each nearby point around the origin within given radius.

Parameters
[in]originThe origin position.
[in]radiusThe search radius.
[in]callbackThe callback function.

Implements jet::PointNeighborSearcher3.

◆ hasNearbyPoint()

bool jet::PointKdTreeSearcher3::hasNearbyPoint ( const Vector3D origin,
double  radius 
) const
overridevirtual

Returns true if there are any nearby points for given origin within radius.

Parameters
[in]originThe origin.
[in]radiusThe radius.
Returns
True if has nearby point, false otherwise.

Implements jet::PointNeighborSearcher3.

◆ operator=()

PointKdTreeSearcher3& jet::PointKdTreeSearcher3::operator= ( const PointKdTreeSearcher3 other)

Assignment operator.

◆ serialize()

void jet::PointKdTreeSearcher3::serialize ( std::vector< uint8_t > *  buffer) const
overridevirtual

Serializes the neighbor searcher into the buffer.

Implements jet::Serializable.

◆ set()

void jet::PointKdTreeSearcher3::set ( const PointKdTreeSearcher3 other)

Copy from the other instance.


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