Ark Server API (ASA) - Wiki
|
#include <GenericOctree.h>
Classes | |
struct | COctreeSemanticsV2 |
class | FNode |
class | FNodeReference |
class | TConstElementBoxIterator |
class | TConstIterator |
Public Types | |
using | FReal = FVector4::FReal |
typedef TArray< ElementType, typename OctreeSemantics::ElementAllocator > | ElementArrayType |
typedef ElementArrayType::TConstIterator | ElementConstIt |
typedef TInlineAllocator< 7 *(14 - 1)+8 > | DefaultStackAllocator |
Public Member Functions | |
void | AddElement (typename TTypeTraits< ElementType >::ConstInitType Element) |
void | RemoveElement (FOctreeElementId ElementId) |
void | Destroy () |
ElementType & | GetElementById (FOctreeElementId ElementId) |
const ElementType & | GetElementById (FOctreeElementId ElementId) const |
bool | IsValidElementId (FOctreeElementId ElementId) const |
void | DumpStats () const |
SIZE_T | GetSizeBytes () const |
FReal | GetNodeLevelExtent (int32 Level) const |
FBoxCenterAndExtent | GetRootBounds () const |
void | ShrinkElements () |
void | ApplyOffset (const FVector &InOffset, bool bGlobalOctree) |
TOctree_DEPRECATED (const FVector &InOrigin, FReal InExtent) | |
TOctree_DEPRECATED () | |
Protected Member Functions | |
void | SetElementId (const ElementType &Element, FOctreeElementId Id) |
Private Member Functions | |
void | SetOctreeMemoryUsage (TOctree_DEPRECATED< ElementType, OctreeSemantics > *Octree, int32 NewSize) |
void | AddElementToNode (typename TTypeTraits< ElementType >::ConstInitType Element, const FNode &InNode, const FOctreeNodeContext &InContext) |
template<typename Semantics > | |
TEnableIf<!TModels< COctreeSemanticsV2, Semantics >::Value >::Type | SetOctreeSemanticsElementId (const ElementType &Element, FOctreeElementId Id) |
template<typename Semantics > | |
TEnableIf< TModels< COctreeSemanticsV2, Semantics >::Value >::Type | SetOctreeSemanticsElementId (const ElementType &Element, FOctreeElementId Id) |
Private Attributes | |
FNode | RootNode |
FOctreeNodeContext | RootNodeContext |
FReal | MinLeafExtent |
SIZE_T | TotalSizeBytes |
An octree.
Definition at line 1070 of file GenericOctree.h.
typedef TInlineAllocator<7 * (14 - 1) + 8> TOctree_DEPRECATED< ElementType, OctreeSemantics >::DefaultStackAllocator |
The default iterator allocator gives the stack enough inline space to contain a path and its siblings from root to leaf.
Definition at line 1199 of file GenericOctree.h.
typedef TArray<ElementType, typename OctreeSemantics::ElementAllocator> TOctree_DEPRECATED< ElementType, OctreeSemantics >::ElementArrayType |
Definition at line 1075 of file GenericOctree.h.
typedef ElementArrayType::TConstIterator TOctree_DEPRECATED< ElementType, OctreeSemantics >::ElementConstIt |
Definition at line 1076 of file GenericOctree.h.
using TOctree_DEPRECATED< ElementType, OctreeSemantics >::FReal = FVector4::FReal |
Definition at line 1074 of file GenericOctree.h.
|
inline |
Initialization constructor.
Definition at line 1646 of file GenericOctree.h.
|
inline |
DO NOT USE. This constructor is for internal usage only for hot-reload purposes.
Definition at line 1655 of file GenericOctree.h.
|
inline |
Adds an element to the octree.
Element | - The element to add. |
Definition at line 1397 of file GenericOctree.h.
|
inlineprivate |
Adds an element to a node or its children.
Definition at line 1681 of file GenericOctree.h.
|
inline |
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
Definition at line 1604 of file GenericOctree.h.
|
inline |
Definition at line 1488 of file GenericOctree.h.
|
inline |
Writes stats for the octree to the log.
Definition at line 1524 of file GenericOctree.h.
|
inline |
Accesses an octree element by ID.
Definition at line 1500 of file GenericOctree.h.
|
inline |
Accesses an octree element by ID.
Definition at line 1508 of file GenericOctree.h.
|
inline |
Definition at line 1582 of file GenericOctree.h.
|
inline |
Definition at line 1588 of file GenericOctree.h.
|
inline |
Definition at line 1577 of file GenericOctree.h.
|
inline |
Checks if given ElementId represents a valid Octree element
Definition at line 1516 of file GenericOctree.h.
|
inline |
Removes an element from the octree.
ElementId | - The element to remove from the octree. |
Definition at line 1406 of file GenericOctree.h.
|
inlineprotected |
Definition at line 1799 of file GenericOctree.h.
|
inlineprivate |
this function basically set TotalSizeBytes, but gives opportunity to include this Octree in memory stats
Definition at line 1673 of file GenericOctree.h.
|
inlineprivate |
Definition at line 1787 of file GenericOctree.h.
|
inlineprivate |
Definition at line 1792 of file GenericOctree.h.
|
inline |
Definition at line 1593 of file GenericOctree.h.
|
private |
The extent of a leaf at the maximum allowed depth of the tree.
Definition at line 1669 of file GenericOctree.h.
|
private |
The octree's root node.
Definition at line 1663 of file GenericOctree.h.
|
private |
The octree's root node's context.
Definition at line 1666 of file GenericOctree.h.
|
private |
Definition at line 1678 of file GenericOctree.h.