![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Accessed version of CLBVHTraverser. More...
Collaboration diagram for shamtree::CLBVHTraverserAccessed< Tmorton, Tvec, dim >:Public Member Functions | |
| template<class Functor1 , class Functor2 , class Functor3 > | |
| void | traverse_tree_base (Functor1 &&traverse_condition, Functor2 &&on_found_leaf, Functor3 &&on_excluded_node) const |
| Traverses the tree by calling tree_traverser's stack_based_traversal. | |
| template<class Functor1 , class Functor2 , class Functor3 > | |
| void | traverse_tree_base (u32 root_node, Functor1 &&traverse_condition, Functor2 &&on_found_leaf, Functor3 &&on_excluded_node) const |
| version with root node | |
| template<class Functor1 , class Functor2 > | |
| void | rtree_for (Functor1 &&traverse_condition_with_aabb, Functor2 &&on_found_leaf) const |
Public Attributes | |
| KarrasTreeTraverserAccessed | tree_traverser |
| Tree traverser. | |
| const Tvec * | aabb_min |
| Minimum of the AABB. | |
| const Tvec * | aabb_max |
| Maximum of the AABB. | |
Static Public Attributes | |
| static constexpr u32 | tree_depth_max = shamrock::sfc::MortonCodes<Tmorton, 3>::significant_bits + 1 |
| maximum depth of the tree according to the morton codes | |
Accessed version of CLBVHTraverser.
Definition at line 74 of file CLBVHObjectIterator.hpp.
|
inline |
Definition at line 127 of file CLBVHObjectIterator.hpp.
|
inline |
Traverses the tree by calling tree_traverser's stack_based_traversal.
This function is a convenience wrapper around the stack_based_traversal function of the tree_traverser.
This function is a shorthand to supply the tree depth
| [in] | traverse_condition | a function taking a node_id and returning a boolean indicating whether to traverse the node further or not. |
| [in] | on_found_leaf | a function taking a node_id and being called when a leaf node is reached. |
| [in] | on_excluded_node | a function taking a node_id and being called when a node is excluded from the traversal. |
Definition at line 100 of file CLBVHObjectIterator.hpp.
|
inline |
version with root node
Definition at line 113 of file CLBVHObjectIterator.hpp.
| const Tvec* shamtree::CLBVHTraverserAccessed< Tmorton, Tvec, dim >::aabb_max |
Maximum of the AABB.
Definition at line 82 of file CLBVHObjectIterator.hpp.
| const Tvec* shamtree::CLBVHTraverserAccessed< Tmorton, Tvec, dim >::aabb_min |
Minimum of the AABB.
Definition at line 81 of file CLBVHObjectIterator.hpp.
|
staticconstexpr |
maximum depth of the tree according to the morton codes
Definition at line 77 of file CLBVHObjectIterator.hpp.
| KarrasTreeTraverserAccessed shamtree::CLBVHTraverserAccessed< Tmorton, Tvec, dim >::tree_traverser |
Tree traverser.
Definition at line 80 of file CLBVHObjectIterator.hpp.