Abstract base class for 2-D intersection test query engine. More...
#include <Core/QueryEngine/IntersectionQueryEngine2.h>
Public Member Functions | |
virtual bool | IsIntersects (const BoundingBox2D &box, const BoxIntersectionTestFunc2< T > &testFunc) const =0 |
Returns true if given box intersects with any of the stored items. More... | |
virtual bool | IsIntersects (const Ray2D &ray, const RayIntersectionTestFunc2< T > &testFunc) const =0 |
Returns true if given ray intersects with any of the stored items. More... | |
virtual void | ForEachIntersectingItem (const BoundingBox2D &box, const BoxIntersectionTestFunc2< T > &testFunc, const IntersectionVisitorFunc2< T > &visitorFunc) const =0 |
Invokes visitorFunc for every intersecting items. More... | |
virtual void | ForEachIntersectingItem (const Ray2D &ray, const RayIntersectionTestFunc2< T > &testFunc, const IntersectionVisitorFunc2< T > &visitorFunc) const =0 |
Invokes visitorFunc for every intersecting items. More... | |
virtual ClosestIntersectionQueryResult2< T > | GetClosestIntersection (const Ray2D &ray, const GetRayIntersectionFunc2< T > &testFunc) const =0 |
Returns the closest intersection for given ray . More... | |
Detailed Description
template<typename T>
class CubbyFlow::IntersectionQueryEngine2< T >
Abstract base class for 2-D intersection test query engine.
Member Function Documentation
◆ ForEachIntersectingItem() [1/2]
|
pure virtual |
Invokes visitorFunc
for every intersecting items.
Implemented in CubbyFlow::Quadtree< T >, CubbyFlow::BVH2< T >, CubbyFlow::BVH2< ImplicitSurface2Ptr >, CubbyFlow::BVH2< Surface2Ptr >, and CubbyFlow::ListQueryEngine2< T >.
◆ ForEachIntersectingItem() [2/2]
|
pure virtual |
Invokes visitorFunc
for every intersecting items.
Implemented in CubbyFlow::Quadtree< T >, CubbyFlow::BVH2< T >, CubbyFlow::BVH2< ImplicitSurface2Ptr >, CubbyFlow::BVH2< Surface2Ptr >, and CubbyFlow::ListQueryEngine2< T >.
◆ GetClosestIntersection()
|
pure virtual |
Returns the closest intersection for given ray
.
Implemented in CubbyFlow::Quadtree< T >, CubbyFlow::BVH2< T >, CubbyFlow::BVH2< ImplicitSurface2Ptr >, CubbyFlow::BVH2< Surface2Ptr >, and CubbyFlow::ListQueryEngine2< T >.
◆ IsIntersects() [1/2]
|
pure virtual |
Returns true if given box
intersects with any of the stored items.
Implemented in CubbyFlow::Quadtree< T >, CubbyFlow::BVH2< T >, CubbyFlow::BVH2< ImplicitSurface2Ptr >, CubbyFlow::BVH2< Surface2Ptr >, and CubbyFlow::ListQueryEngine2< T >.
◆ IsIntersects() [2/2]
|
pure virtual |
Returns true if given ray
intersects with any of the stored items.
Implemented in CubbyFlow::Quadtree< T >, CubbyFlow::BVH2< T >, CubbyFlow::BVH2< ImplicitSurface2Ptr >, CubbyFlow::BVH2< Surface2Ptr >, and CubbyFlow::ListQueryEngine2< T >.
The documentation for this class was generated from the following file:
- Core/QueryEngine/IntersectionQueryEngine2.h