Jet
v1.3.3
|
Ad-hoc list-based 2-D intersection/nearest-neighbor query engine. More...
#include <jet/list_query_engine2.h>
Public Member Functions | |
void | add (const T &item) |
Adds an item to the container. More... | |
void | add (const std::vector< T > &items) |
Adds items to the container. More... | |
bool | intersects (const BoundingBox2D &box, const BoxIntersectionTestFunc2< T > &testFunc) const override |
Returns true if given box intersects with any of the stored items. More... | |
bool | intersects (const Ray2D &ray, const RayIntersectionTestFunc2< T > &testFunc) const override |
Returns true if given ray intersects with any of the stored items. More... | |
void | forEachIntersectingItem (const BoundingBox2D &box, const BoxIntersectionTestFunc2< T > &testFunc, const IntersectionVisitorFunc2< T > &visitorFunc) const override |
Invokes visitorFunc for every intersecting items. More... | |
void | forEachIntersectingItem (const Ray2D &ray, const RayIntersectionTestFunc2< T > &testFunc, const IntersectionVisitorFunc2< T > &visitorFunc) const override |
Invokes visitorFunc for every intersecting items. More... | |
ClosestIntersectionQueryResult2< T > | closestIntersection (const Ray2D &ray, const GetRayIntersectionFunc2< T > &testFunc) const override |
Returns the closest intersection for given ray . More... | |
NearestNeighborQueryResult2< T > | nearest (const Vector2D &pt, const NearestNeighborDistanceFunc2< T > &distanceFunc) const override |
Ad-hoc list-based 2-D intersection/nearest-neighbor query engine.
void jet::ListQueryEngine2< T >::add | ( | const std::vector< T > & | items | ) |
Adds items to the container.
void jet::ListQueryEngine2< T >::add | ( | const T & | item | ) |
Adds an item to the container.
|
overridevirtual |
Returns the closest intersection for given ray
.
Implements jet::IntersectionQueryEngine2< T >.
|
overridevirtual |
Invokes visitorFunc
for every intersecting items.
Implements jet::IntersectionQueryEngine2< T >.
|
overridevirtual |
Invokes visitorFunc
for every intersecting items.
Implements jet::IntersectionQueryEngine2< T >.
|
overridevirtual |
Returns true if given box
intersects with any of the stored items.
Implements jet::IntersectionQueryEngine2< T >.
|
overridevirtual |
Returns true if given ray
intersects with any of the stored items.
Implements jet::IntersectionQueryEngine2< T >.
|
overridevirtual |
Returns the nearest neighbor for given point and distance measure function.
Implements jet::NearestNeighborQueryEngine2< T >.