| TOctree2
|
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Math/GenericOctree.h |
Include |
#include "Math/GenericOctree.h" |
template<typename ElementType, typename OctreeSemantics>
class TOctree2
An octree.
Name | Description | |
---|---|---|
|
TOctree2() |
DO NOT USE. This constructor is for internal usage only for hot-reload purposes. |
|
TOctree2 ( |
Initialization constructor. |
Name | Description | ||
---|---|---|---|
|
AddElement ( |
Adds an element to the octree. |
|
|
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. |
|
|
FindElementsWithBoundsTest ( |
This function will traverse the Octree using a fast box-box interssection this should be the preferred way of traversing the tree. |
|
|
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. |
|
|
FindFirstElementWithBoundsTest ( |
This function will traverse the Octree using a fast box-box intersection and aborts traversal as soon as the Element function returns false. |
|
|
FindNearbyElements ( |
This function will traverse the Octree using a tryint to find nearby nodes that contain any elements. |
|
|
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. |
|
|
const Elemen... |
GetElementById ( |
Accesses an octree element by ID. |
|
ElementType ... |
GetElementById ( |
Accesses an octree element by ID. |
|
TArrayView< ... |
GetElementsForNode ( |
Return all elements for a given node. |
|
float |
GetNodeLevelExtent ( |
|
|
FBoxCenterAn... |
GetRootBounds() |
|
|
GetSizeBytes() |
||
|
IsValidElementId ( |
Check if a FOctreeElementId2 is valid. |
|
|
RemoveElement ( |
Removes an element from the octree. |
|
|
SetElementId ( |
Redirects SetElementId call to the proper implementation |
|
|
ShrinkElements() |
Name |
Description |
---|---|
ElementArrayType |
|
FNodeIndex |