Ad-hoc list-based N-D intersection/nearest-neighbor query engine. More...
#include <Core/QueryEngine/ListQueryEngine.hpp>
Public Member Functions | |
void | Add (const T &item) |
Adds an item to the container. More... | |
void | Add (const ConstArrayView1< T > &items) |
Adds items to the container. More... | |
bool | Intersects (const BoundingBox< double, N > &box, const BoxIntersectionTestFunc< T, N > &testFunc) const override |
Returns true if given box intersects with any of the stored items. More... | |
bool | Intersects (const Ray< double, N > &ray, const RayIntersectionTestFunc< T, N > &testFunc) const override |
Returns true if given ray intersects with any of the stored items. More... | |
void | ForEachIntersectingItem (const BoundingBox< double, N > &box, const BoxIntersectionTestFunc< T, N > &testFunc, const IntersectionVisitorFunc< T > &visitorFunc) const override |
Invokes visitorFunc for every intersecting items. More... | |
void | ForEachIntersectingItem (const Ray< double, N > &ray, const RayIntersectionTestFunc< T, N > &testFunc, const IntersectionVisitorFunc< T > &visitorFunc) const override |
Invokes visitorFunc for every intersecting items. More... | |
ClosestIntersectionQueryResult< T, N > | ClosestIntersection (const Ray< double, N > &ray, const GetRayIntersectionFunc< T, N > &testFunc) const override |
Returns the closest intersection for given ray . More... | |
NearestNeighborQueryResult< T, N > | Nearest (const Vector< double, N > &pt, const NearestNeighborDistanceFunc< T, N > &distanceFunc) const override |
Public Member Functions inherited from CubbyFlow::IntersectionQueryEngine< T, N > | |
IntersectionQueryEngine ()=default | |
Default constructor. More... | |
virtual | ~IntersectionQueryEngine ()=default |
Default virtual destructor. More... | |
IntersectionQueryEngine (const IntersectionQueryEngine &other)=default | |
Default copy constructor. More... | |
IntersectionQueryEngine (IntersectionQueryEngine &&other) noexcept=default | |
Default move constructor. More... | |
IntersectionQueryEngine & | operator= (const IntersectionQueryEngine &other)=default |
Default copy assignment operator. More... | |
IntersectionQueryEngine & | operator= (IntersectionQueryEngine &&other) noexcept=default |
Default move assignment operator. More... | |
Public Member Functions inherited from CubbyFlow::NearestNeighborQueryEngine< T, N > | |
NearestNeighborQueryEngine ()=default | |
Default constructor. More... | |
virtual | ~NearestNeighborQueryEngine ()=default |
Default virtual destructor. More... | |
NearestNeighborQueryEngine (const NearestNeighborQueryEngine &other)=default | |
Default copy constructor. More... | |
NearestNeighborQueryEngine (NearestNeighborQueryEngine &&other) noexcept=default | |
Default move constructor. More... | |
NearestNeighborQueryEngine & | operator= (const NearestNeighborQueryEngine &other)=default |
Default copy assignment operator. More... | |
NearestNeighborQueryEngine & | operator= (NearestNeighborQueryEngine &&other) noexcept=default |
Default move assignment operator. More... | |
Detailed Description
template<typename T, size_t N>
class CubbyFlow::ListQueryEngine< T, N >
Ad-hoc list-based N-D intersection/nearest-neighbor query engine.
Member Function Documentation
◆ Add() [1/2]
void CubbyFlow::ListQueryEngine< T, N >::Add | ( | const T & | item | ) |
Adds an item to the container.
◆ Add() [2/2]
void CubbyFlow::ListQueryEngine< T, N >::Add | ( | const ConstArrayView1< T > & | items | ) |
Adds items to the container.
◆ ClosestIntersection()
|
overridevirtual |
Returns the closest intersection for given ray
.
Implements CubbyFlow::IntersectionQueryEngine< T, N >.
◆ ForEachIntersectingItem() [1/2]
|
overridevirtual |
Invokes visitorFunc
for every intersecting items.
Implements CubbyFlow::IntersectionQueryEngine< T, N >.
◆ ForEachIntersectingItem() [2/2]
|
overridevirtual |
Invokes visitorFunc
for every intersecting items.
Implements CubbyFlow::IntersectionQueryEngine< T, N >.
◆ Intersects() [1/2]
|
overridevirtual |
Returns true if given box
intersects with any of the stored items.
Implements CubbyFlow::IntersectionQueryEngine< T, N >.
◆ Intersects() [2/2]
|
overridevirtual |
Returns true if given ray
intersects with any of the stored items.
Implements CubbyFlow::IntersectionQueryEngine< T, N >.
◆ Nearest()
|
overridevirtual |
Returns the nearest neighbor for given point and distance measure function.
Implements CubbyFlow::NearestNeighborQueryEngine< T, N >.
The documentation for this class was generated from the following files:
- Core/QueryEngine/ListQueryEngine.hpp
- Core/QueryEngine/ListQueryEngine-Impl.hpp