The context of an octree node, derived from the traversal of the tree. 更多...
#include <GenericOctree.h>
Public 类型 | |
| enum | |
| The node bounds are expanded by their extent divided by LoosenessDenominator. | |
Public 成员函数 | |
| FOctreeNodeContext () | |
| Default constructor. | |
| FOctreeNodeContext (const FBoxCenterAndExtent &InBounds) | |
| Initialization constructor. | |
| FOctreeNodeContext (const FBoxCenterAndExtent &InBounds, uint32 InInCullBits, uint32 InOutCullBits) | |
| Initialization constructor. | |
| FOctreeNodeContext (uint32 InInCullBits, uint32 InOutCullBits) | |
| Initialization constructor, this one is used when we done care about the box anymore | |
| FOctreeNodeContext | GetChildContext (FOctreeChildNodeRef ChildRef) const |
| Child node initialization constructor. | |
| void | GetChildContext (FOctreeChildNodeRef ChildRef, FOctreeNodeContext *ChildContext) const |
| Construct a child context given the child ref. 更多... | |
| FOctreeNodeContext | GetChildContext (FOctreeChildNodeRef ChildRef, uint32 InInCullBits, uint32 InOutCullBits) const |
| Child node initialization constructor. | |
| FOctreeChildNodeRef | GetContainingChild (const FBoxCenterAndExtent &BoundingBox) const |
| Determines which of the octree node's children contain the whole bounding box, if any. 更多... | |
| FOctreeChildNodeSubset | GetIntersectingChildren (const FBoxCenterAndExtent &BoundingBox) const |
| Determines which of the octree node's children intersect with a bounding box. 更多... | |
Public 属性 | |
| FBoxCenterAndExtent | Bounds |
| The bounds of the node. | |
| float | ChildCenterOffset |
| The offset of the childrens' centers from the center of this node. | |
| float | ChildExtent |
| The extent of the node's children. | |
| uint32 | InCullBits |
| Bits used for culling, semantics left up to the caller (except that it is always set to zero at the root). 更多... | |
| uint32 | OutCullBits |
| Bits used for culling, semantics left up to the caller (except that it is always set to zero at the root). 更多... | |
The context of an octree node, derived from the traversal of the tree.
|
inline |
Construct a child context given the child ref.
Optimized to remove all LHS.
| FOctreeChildNodeRef FOctreeNodeContext::GetContainingChild | ( | const FBoxCenterAndExtent & | BoundingBox | ) | const |
Determines which of the octree node's children contain the whole bounding box, if any.
| BoundingBox | - The bounding box to check for intersection with. |
| FOctreeChildNodeSubset FOctreeNodeContext::GetIntersectingChildren | ( | const FBoxCenterAndExtent & | BoundingBox | ) | const |
Determines which of the octree node's children intersect with a bounding box.
| BoundingBox | - The bounding box to check for intersection with. |
| uint32 FOctreeNodeContext::InCullBits |
Bits used for culling, semantics left up to the caller (except that it is always set to zero at the root).
This does not consume storage because it is leftover in the padding.
| uint32 FOctreeNodeContext::OutCullBits |
Bits used for culling, semantics left up to the caller (except that it is always set to zero at the root).
This does not consume storage because it is leftover in the padding.