#include <GenericOctree.h>
◆ FNodeIndex
◆ FReal
◆ TOctree2() [1/2]
Initialization constructor.
◆ TOctree2() [2/2]
DO NOT USE. This constructor is for internal usage only for hot-reload purposes.
◆ AddElement()
Adds an element to the octree.
- Parameters
-
| Element | - The element to add. |
◆ ApplyOffset()
Apply an arbitrary offset to all elements in the tree InOffset - offset to apply bGlobalOctree - hint that this octree is used as a boundless global volume, so only content will be shifted but not origin of the octree
◆ Destroy()
this function resets the octree to empty.
◆ DumpStats()
Writes stats for the octree to the log.
◆ FindAllElements()
this function will call the passed in function for all elements in the Octree in node by node in no specified order.
- Parameters
-
| Func | - Function to call with each Element. |
◆ FindElementsWithBoundsTest()
this function will traverse the Octree using a fast box-box intersection this should be the preferred way of traversing the tree.
- Parameters
-
| BoxBounds | - the bounds to test if a node is traversed or skipped. |
| Func | - Function to call with each Element for nodes that passed bounds test. |
◆ FindElementsWithPredicate()
this function will traverse the Octree starting from the root in depth first order and the predicate can be used to implement custom culling for each node.
- Parameters
-
| Predicate | - a Function when given the bounds of the currently traversed node that returns true if traversal should continue or false to skip that branch. |
| Func | - Function to call with each Element for nodes that passed the predicate. |
◆ FindFirstElementWithBoundsTest()
this function will traverse the Octree using a fast box-box intersection and aborts traversal as soon as the Element function returns false.
- Parameters
-
| BoxBounds | - the bounds to test if a node is traversed or skipped. |
| Func | - Function to call with each Element for nodes that passed bounds test. |
- Returns
- The ID of the found element. It's only valid until the next time the tree changes.
◆ FindNearbyElements()
this function will traverse the Octree using a tryint to find nearby nodes that contain any elements.
- Parameters
-
| Position | - the position to look nearby. |
| Func | - Function to call with each Element for nodes that passed bounds test. |
◆ FindNodesWithPredicate()
this function will traverse the Octree starting from the root in depth first order and the predicate can be used to implement custom culling for each node.
- Parameters
-
| Predicate | - a Function when given the bounds of the currently traversed node that returns true if traversal should continue or false to skip that branch. |
| Func | - Function that will receive the node ID which can be stored and later used to get the elements using GetElementsForNode for all nodes that passed the predicate. |
◆ GetElementById() [1/2]
Accesses an octree element by ID.
◆ GetElementById() [2/2]
Accesses an octree element by ID.
◆ GetElementsForNode()
return all elements for a given node.
- Parameters
-
| NodeIndex | - The the index of the node can be obtained using FindNodesWithPredicate. |
◆ GetNodeLevelExtent()
◆ GetNumNodes()
◆ GetRootBounds()
◆ GetSizeBytes()
◆ IsValidElementId()
◆ RemoveElement()
Removes an element from the octree.
- Parameters
-
| ElementId | - The element to remove from the octree. |
◆ SetElementId()
◆ ShrinkElements()
The documentation for this class was generated from the following file: