Navigation
API > API/Runtime > API/Runtime/Engine
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/GenericQuadTree.h |
| Include | #include "GenericQuadTree.h" |
Syntax
template<typename ElementType, int32 NodeCapacity>
class TQuadTree
Constructors
| Type | Name | Description | |
|---|---|---|---|
TQuadTree () |
DO NOT USE. This constructor is for internal usage only for hot-reload purposes. | ||
TQuadTree
(
const FBox2D& InBox, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~TQuadTree () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Does a deep copy of the tree by going through and re-creating the internal data. | ||
| void | Empty () |
Removes all elements of the tree | |
| void | GetElements
(
const FBox2D& Box, |
Given a 2D box, returns an array of elements within the box. | |
| const FBox2D & | GetTreeBox () |
Gets the TreeBox so systems can test insertions before trying to do so with invalid regions | |
| void | Insert
(
const ElementType& Element, |
Inserts an object of type ElementType with an associated 2D box of size Box (log n). | |
| bool | Remove
(
const ElementType& Instance, |
Removes an object of type ElementType with an associated 2D box of size Box (log n). | |
| void |
Operators
Enums
| Type | Name | Description | |
|---|---|---|---|
| QuadNames |
Typedefs
| Name | Description |
|---|---|
| TreeType |