Simple ad-hoc 3-D point searcher. More...
#include <Core/Searcher/PointSimpleListSearcher3.h>
Classes | |
class | Builder |
Front-end to create PointSimpleListSearcher3 objects step by step. More... | |
Public Member Functions | |
PointSimpleListSearcher3 () | |
Default constructor. More... | |
PointSimpleListSearcher3 (const PointSimpleListSearcher3 &other) | |
Copy constructor. More... | |
void | Build (const ConstArrayAccessor1< Vector3D > &points) override |
Builds internal 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... | |
PointSimpleListSearcher3 & | operator= (const PointSimpleListSearcher3 &other) |
Assignment operator. More... | |
void | Set (const PointSimpleListSearcher3 &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 CubbyFlow::PointNeighborSearcher3 | |
PointNeighborSearcher3 () | |
Default constructor. More... | |
virtual | ~PointNeighborSearcher3 () |
Destructor. More... | |
virtual std::string | TypeName () const =0 |
Returns the type name of the derived class. More... | |
Static Public Member Functions | |
static Builder | GetBuilder () |
Returns builder fox PointSimpleListSearcher3. More... | |
Additional Inherited Members | |
Public Types inherited from CubbyFlow::PointNeighborSearcher3 | |
using | ForEachNearbyPointFunc = std::function< void(size_t, const Vector3D &)> |
Detailed Description
Simple ad-hoc 3-D point searcher.
This class implements 3-D point searcher simply by looking up every point in the list. Thus, this class is not ideal for searches involving large number of points, but only for small set of items.
Constructor & Destructor Documentation
◆ PointSimpleListSearcher3() [1/2]
CubbyFlow::PointSimpleListSearcher3::PointSimpleListSearcher3 | ( | ) |
Default constructor.
◆ PointSimpleListSearcher3() [2/2]
CubbyFlow::PointSimpleListSearcher3::PointSimpleListSearcher3 | ( | const PointSimpleListSearcher3 & | other | ) |
Copy constructor.
Member Function Documentation
◆ Build()
|
overridevirtual |
Builds internal structure for given points list.
For this class, this function simply copies the given point list to the internal list.
- Parameters
-
[in] points The points to search.
Implements CubbyFlow::PointNeighborSearcher3.
◆ Clone()
|
overridevirtual |
Creates a new instance of the object with same properties than original.
- Returns
- Copy of this object.
Implements CubbyFlow::PointNeighborSearcher3.
◆ Deserialize()
|
overridevirtual |
Deserializes the neighbor searcher from the buffer.
Implements CubbyFlow::Serializable.
◆ ForEachNearbyPoint()
|
overridevirtual |
Invokes the callback function for each nearby point around the origin within given radius.
- Parameters
-
[in] origin The origin position. [in] radius The search radius. [in] callback The callback function.
Implements CubbyFlow::PointNeighborSearcher3.
◆ GetBuilder()
|
static |
Returns builder fox PointSimpleListSearcher3.
◆ HasNearbyPoint()
|
overridevirtual |
Returns true if there are any nearby points for given origin within radius.
- Parameters
-
[in] origin The origin. [in] radius The radius.
- Returns
- True if has nearby point, false otherwise.
Implements CubbyFlow::PointNeighborSearcher3.
◆ operator=()
PointSimpleListSearcher3& CubbyFlow::PointSimpleListSearcher3::operator= | ( | const PointSimpleListSearcher3 & | other | ) |
Assignment operator.
◆ Serialize()
|
overridevirtual |
Serializes the neighbor searcher into the buffer.
Implements CubbyFlow::Serializable.
◆ Set()
void CubbyFlow::PointSimpleListSearcher3::Set | ( | const PointSimpleListSearcher3 & | other | ) |
Copy from the other instance.
The documentation for this class was generated from the following file:
- Core/Searcher/PointSimpleListSearcher3.h