engine
 
载入中...
搜索中...
未找到
Public 类型 | Public 成员函数 | Public 属性 | 所有成员列表
FOctreeNodeContext类 参考

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.

成员函数说明

◆ GetChildContext()

void FOctreeNodeContext::GetChildContext ( FOctreeChildNodeRef  ChildRef,
FOctreeNodeContext *  ChildContext 
) const
inline

Construct a child context given the child ref.

Optimized to remove all LHS.

◆ GetContainingChild()

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.
返回
The octree's node that the bounding box is farthest from the outside edge of, or an invalid node ref if it's not contained by any of the children.

◆ GetIntersectingChildren()

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.
返回
A subset of the children's nodes that intersect the bounding box.

类成员变量说明

◆ InCullBits

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.

◆ OutCullBits

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.


该类的文档由以下文件生成: