Jet  v1.3.3
Public Member Functions | List of all members
jet::IntersectionQueryEngine3< T > Class Template Referenceabstract

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

#include <jet/intersection_query_engine3.h>

Inheritance diagram for jet::IntersectionQueryEngine3< T >:
jet::Bvh3< T > jet::ListQueryEngine3< T > jet::Octree< T >

Public Member Functions

virtual bool intersects (const BoundingBox3D &box, const BoxIntersectionTestFunc3< T > &testFunc) const =0
 Returns true if given box intersects with any of the stored items. More...
 
virtual bool intersects (const Ray3D &ray, const RayIntersectionTestFunc3< T > &testFunc) const =0
 Returns true if given ray intersects with any of the stored items. More...
 
virtual void forEachIntersectingItem (const BoundingBox3D &box, const BoxIntersectionTestFunc3< T > &testFunc, const IntersectionVisitorFunc3< T > &visitorFunc) const =0
 Invokes visitorFunc for every intersecting items. More...
 
virtual void forEachIntersectingItem (const Ray3D &ray, const RayIntersectionTestFunc3< T > &testFunc, const IntersectionVisitorFunc3< T > &visitorFunc) const =0
 Invokes visitorFunc for every intersecting items. More...
 
virtual ClosestIntersectionQueryResult3< T > closestIntersection (const Ray3D &ray, const GetRayIntersectionFunc3< T > &testFunc) const =0
 Returns the closest intersection for given ray. More...
 

Detailed Description

template<typename T>
class jet::IntersectionQueryEngine3< T >

Abstract base class for 3-D intersection test query engine.

Member Function Documentation

◆ closestIntersection()

template<typename T >
virtual ClosestIntersectionQueryResult3<T> jet::IntersectionQueryEngine3< T >::closestIntersection ( const Ray3D ray,
const GetRayIntersectionFunc3< T > &  testFunc 
) const
pure virtual

◆ forEachIntersectingItem() [1/2]

template<typename T >
virtual void jet::IntersectionQueryEngine3< T >::forEachIntersectingItem ( const BoundingBox3D box,
const BoxIntersectionTestFunc3< T > &  testFunc,
const IntersectionVisitorFunc3< T > &  visitorFunc 
) const
pure virtual

◆ forEachIntersectingItem() [2/2]

template<typename T >
virtual void jet::IntersectionQueryEngine3< T >::forEachIntersectingItem ( const Ray3D ray,
const RayIntersectionTestFunc3< T > &  testFunc,
const IntersectionVisitorFunc3< T > &  visitorFunc 
) const
pure virtual

◆ intersects() [1/2]

template<typename T >
virtual bool jet::IntersectionQueryEngine3< T >::intersects ( const BoundingBox3D box,
const BoxIntersectionTestFunc3< T > &  testFunc 
) const
pure virtual

Returns true if given box intersects with any of the stored items.

Implemented in jet::Octree< T >, jet::Bvh3< T >, jet::ListQueryEngine3< T >, jet::Bvh3< Surface3Ptr >, jet::Bvh3< size_t >, and jet::Bvh3< ImplicitSurface3Ptr >.

◆ intersects() [2/2]

template<typename T >
virtual bool jet::IntersectionQueryEngine3< T >::intersects ( const Ray3D ray,
const RayIntersectionTestFunc3< T > &  testFunc 
) const
pure virtual

Returns true if given ray intersects with any of the stored items.

Implemented in jet::Octree< T >, jet::Bvh3< T >, jet::ListQueryEngine3< T >, jet::Bvh3< Surface3Ptr >, jet::Bvh3< size_t >, and jet::Bvh3< ImplicitSurface3Ptr >.


The documentation for this class was generated from the following file: