|
| | Octree ()=default |
| | Default constructor. More...
|
| |
| | Octree (const Octree &)=default |
| | Default copy constructor. More...
|
| |
| | Octree (Octree &&) noexcept=default |
| | Default move constructor. More...
|
| |
| virtual | ~Octree ()=default |
| | Default virtual destructor. More...
|
| |
| Octree & | operator= (const Octree &)=default |
| | Default copy assignment operator. More...
|
| |
| Octree & | operator= (Octree &&) noexcept=default |
| | Default move assignment operator. More...
|
| |
| 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. More...
|
| |
| 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. More...
|
| |
| bool | Intersects (const Ray3D &ray, const RayIntersectionTestFunc3< T > &testFunc) const override |
| | Returns true if given ray intersects with any of the stored items. More...
|
| |
| void | ForEachIntersectingItem (const BoundingBox3D &box, const BoxIntersectionTestFunc3< T > &testFunc, const IntersectionVisitorFunc< T > &visitorFunc) const override |
| | Invokes visitorFunc for every intersecting items. More...
|
| |
| void | ForEachIntersectingItem (const Ray3D &ray, const RayIntersectionTestFunc3< T > &testFunc, const IntersectionVisitorFunc< T > &visitorFunc) const override |
| | Invokes visitorFunc for every intersecting items. More...
|
| |
| ClosestIntersectionQueryResult3< T > | ClosestIntersection (const Ray3D &ray, const GetRayIntersectionFunc3< T > &testFunc) const override |
| | Returns the closest intersection for given ray. More...
|
| |
| Iterator | begin () |
| | Returns the begin iterator of the item. More...
|
| |
| Iterator | end () |
| | Returns the end iterator of the item. More...
|
| |
| ConstIterator | begin () const |
| | Returns the immutable begin iterator of the item. More...
|
| |
| ConstIterator | end () const |
| | Returns the immutable end iterator of the item. More...
|
| |
| size_t | GetNumberOfItems () const |
| | Returns the number of items. More...
|
| |
| const T & | GetItem (size_t i) const |
| | Returns the item at i. More...
|
| |
| size_t | GetNumberOfNodes () const |
| | Returns the number of octree nodes. More...
|
| |
| const std::vector< size_t > & | GetItemsAtNode (size_t nodeIdx) const |
| | Returns the list of the items for given node index. More...
|
| |
| size_t | GetChildIndex (size_t nodeIdx, size_t childIdx) const |
| | Returns a child's index for given node. More...
|
| |
| const BoundingBox3D & | GetBoundingBox () const |
| | Returns the bounding box of this octree. More...
|
| |
| size_t | GetMaxDepth () const |
| | Returns the maximum depth of the tree. More...
|
| |
| | IntersectionQueryEngine ()=default |
| | Default constructor. More...
|
| |
| virtual | ~IntersectionQueryEngine ()=default |
| | Default virtual destructor. More...
|
| |
| | IntersectionQueryEngine (const IntersectionQueryEngine &other)=default |
| | Default copy constructor. More...
|
| |
| | IntersectionQueryEngine (IntersectionQueryEngine &&other) noexcept=default |
| | Default move constructor. More...
|
| |
| IntersectionQueryEngine & | operator= (const IntersectionQueryEngine &other)=default |
| | Default copy assignment operator. More...
|
| |
| IntersectionQueryEngine & | operator= (IntersectionQueryEngine &&other) noexcept=default |
| | Default move assignment operator. More...
|
| |
| 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. More...
|
| |
| 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. More...
|
| |
| 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. More...
|
| |
| 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. More...
|
| |
| virtual ClosestIntersectionQueryResult< T, N > | ClosestIntersection (const Ray< double, N > &ray, const GetRayIntersectionFunc< T, N > &testFunc) const =0 |
| | Returns the closest intersection for given ray. More...
|
| |
| | NearestNeighborQueryEngine ()=default |
| | Default constructor. More...
|
| |
| virtual | ~NearestNeighborQueryEngine ()=default |
| | Default virtual destructor. More...
|
| |
| | NearestNeighborQueryEngine (const NearestNeighborQueryEngine &other)=default |
| | Default copy constructor. More...
|
| |
| | NearestNeighborQueryEngine (NearestNeighborQueryEngine &&other) noexcept=default |
| | Default move constructor. More...
|
| |
| NearestNeighborQueryEngine & | operator= (const NearestNeighborQueryEngine &other)=default |
| | Default copy assignment operator. More...
|
| |
| NearestNeighborQueryEngine & | operator= (NearestNeighborQueryEngine &&other) noexcept=default |
| | Default move assignment operator. More...
|
| |
| 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
-