|
| | Octree ()=default |
| | Default constructor.
|
| |
| | Octree (const Octree &)=default |
| | Default copy constructor.
|
| |
| | Octree (Octree &&) noexcept=default |
| | Default move constructor.
|
| |
| virtual | ~Octree ()=default |
| | Default virtual destructor.
|
| |
| Octree & | operator= (const Octree &)=default |
| | Default copy assignment operator.
|
| |
| Octree & | operator= (Octree &&) noexcept=default |
| | Default move assignment operator.
|
| |
| void | Build (const std::vector< T > &items, const BoundingBox3D &bound, const BoxIntersectionTestFunc3< T > &testFunc, size_t maxDepth) |
| |
| void | Clear () |
| | Clears all the contents of this instance.
|
| |
| NearestNeighborQueryResult3< T > | Nearest (const Vector3D &pt, const NearestNeighborDistanceFunc3< T > &distanceFunc) const override |
| |
| bool | Intersects (const BoundingBox3D &box, const BoxIntersectionTestFunc3< T > &testFunc) const override |
| | Returns true if given box intersects with any of the stored items.
|
| |
| bool | Intersects (const Ray3D &ray, const RayIntersectionTestFunc3< T > &testFunc) const override |
| | Returns true if given ray intersects with any of the stored items.
|
| |
| void | ForEachIntersectingItem (const BoundingBox3D &box, const BoxIntersectionTestFunc3< T > &testFunc, const IntersectionVisitorFunc< T > &visitorFunc) const override |
| | Invokes visitorFunc for every intersecting items.
|
| |
| void | ForEachIntersectingItem (const Ray3D &ray, const RayIntersectionTestFunc3< T > &testFunc, const IntersectionVisitorFunc< T > &visitorFunc) const override |
| | Invokes visitorFunc for every intersecting items.
|
| |
| ClosestIntersectionQueryResult3< T > | ClosestIntersection (const Ray3D &ray, const GetRayIntersectionFunc3< T > &testFunc) const override |
| | Returns the closest intersection for given ray.
|
| |
| Iterator | begin () |
| | Returns the begin iterator of the item.
|
| |
| Iterator | end () |
| | Returns the end iterator of the item.
|
| |
| ConstIterator | begin () const |
| | Returns the immutable begin iterator of the item.
|
| |
| ConstIterator | end () const |
| | Returns the immutable end iterator of the item.
|
| |
| size_t | GetNumberOfItems () const |
| | Returns the number of items.
|
| |
| const T & | GetItem (size_t i) const |
| | Returns the item at i.
|
| |
| size_t | GetNumberOfNodes () const |
| | Returns the number of octree nodes.
|
| |
| const std::vector< size_t > & | GetItemsAtNode (size_t nodeIdx) const |
| | Returns the list of the items for given node index.
|
| |
| size_t | GetChildIndex (size_t nodeIdx, size_t childIdx) const |
| | Returns a child's index for given node.
|
| |
| const BoundingBox3D & | GetBoundingBox () const |
| | Returns the bounding box of this octree.
|
| |
| size_t | GetMaxDepth () const |
| | Returns the maximum depth of the tree.
|
| |
| | IntersectionQueryEngine ()=default |
| | Default constructor.
|
| |
| virtual | ~IntersectionQueryEngine ()=default |
| | Default virtual destructor.
|
| |
| | IntersectionQueryEngine (const IntersectionQueryEngine &other)=default |
| | Default copy constructor.
|
| |
| | IntersectionQueryEngine (IntersectionQueryEngine &&other) noexcept=default |
| | Default move constructor.
|
| |
| IntersectionQueryEngine & | operator= (const IntersectionQueryEngine &other)=default |
| | Default copy assignment operator.
|
| |
| IntersectionQueryEngine & | operator= (IntersectionQueryEngine &&other) noexcept=default |
| | Default move assignment operator.
|
| |
| virtual bool | Intersects (const BoundingBox< double, N > &box, const BoxIntersectionTestFunc< T, N > &testFunc) const =0 |
| | Returns true if given box intersects with any of the stored items.
|
| |
| virtual bool | Intersects (const Ray< double, N > &ray, const RayIntersectionTestFunc< T, N > &testFunc) const =0 |
| | Returns true if given ray intersects with any of the stored items.
|
| |
| virtual void | ForEachIntersectingItem (const BoundingBox< double, N > &box, const BoxIntersectionTestFunc< T, N > &testFunc, const IntersectionVisitorFunc< T > &visitorFunc) const =0 |
| | Invokes visitorFunc for every intersecting items.
|
| |
| virtual void | ForEachIntersectingItem (const Ray< double, N > &ray, const RayIntersectionTestFunc< T, N > &testFunc, const IntersectionVisitorFunc< T > &visitorFunc) const =0 |
| | Invokes visitorFunc for every intersecting items.
|
| |
| virtual ClosestIntersectionQueryResult< T, N > | ClosestIntersection (const Ray< double, N > &ray, const GetRayIntersectionFunc< T, N > &testFunc) const =0 |
| | Returns the closest intersection for given ray.
|
| |
| | NearestNeighborQueryEngine ()=default |
| | Default constructor.
|
| |
| virtual | ~NearestNeighborQueryEngine ()=default |
| | Default virtual destructor.
|
| |
| | NearestNeighborQueryEngine (const NearestNeighborQueryEngine &other)=default |
| | Default copy constructor.
|
| |
| | NearestNeighborQueryEngine (NearestNeighborQueryEngine &&other) noexcept=default |
| | Default move constructor.
|
| |
| NearestNeighborQueryEngine & | operator= (const NearestNeighborQueryEngine &other)=default |
| | Default copy assignment operator.
|
| |
| NearestNeighborQueryEngine & | operator= (NearestNeighborQueryEngine &&other) noexcept=default |
| | Default move assignment operator.
|
| |
| virtual NearestNeighborQueryResult< T, N > | Nearest (const Vector< double, N > &pt, const NearestNeighborDistanceFunc< T, N > &distanceFunc) const =0 |
| |
template<
typename T>
class CubbyFlow::Octree< T >
Generic octree data structure.
This class is a generic octree representation to store arbitrary spatial data. The octree supports closest neighbor search, overlapping test, and ray intersection test.
- Template Parameters
-