CubbyFlow::IntersectionQueryEngine2< T > Class Template Referenceabstract

Abstract base class for 2-D intersection test query engine. More...

#include <Core/QueryEngine/IntersectionQueryEngine2.h>

Inheritance diagram for CubbyFlow::IntersectionQueryEngine2< T >:
CubbyFlow::BVH2< T > CubbyFlow::ListQueryEngine2< T > CubbyFlow::Quadtree< T >

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]

template<typename T>
virtual void CubbyFlow::IntersectionQueryEngine2< T >::ForEachIntersectingItem ( const BoundingBox2D box,
const BoxIntersectionTestFunc2< T > &  testFunc,
const IntersectionVisitorFunc2< T > &  visitorFunc 
) const
pure virtual

◆ ForEachIntersectingItem() [2/2]

template<typename T>
virtual void CubbyFlow::IntersectionQueryEngine2< T >::ForEachIntersectingItem ( const Ray2D ray,
const RayIntersectionTestFunc2< T > &  testFunc,
const IntersectionVisitorFunc2< T > &  visitorFunc 
) const
pure virtual

◆ GetClosestIntersection()

template<typename T>
virtual ClosestIntersectionQueryResult2<T> CubbyFlow::IntersectionQueryEngine2< T >::GetClosestIntersection ( const Ray2D ray,
const GetRayIntersectionFunc2< T > &  testFunc 
) const
pure virtual

◆ IsIntersects() [1/2]

template<typename T>
virtual bool CubbyFlow::IntersectionQueryEngine2< T >::IsIntersects ( const BoundingBox2D box,
const BoxIntersectionTestFunc2< T > &  testFunc 
) const
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]

template<typename T>
virtual bool CubbyFlow::IntersectionQueryEngine2< T >::IsIntersects ( const Ray2D ray,
const RayIntersectionTestFunc2< T > &  testFunc 
) const
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: