Navigation
API > API/Plugins > API/Plugins/Water > API/Plugins/Water/FWaterQuadTree
| Name | FNode |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/Water/Source/Runtime/Public/WaterQuadTree.h |
| Include Path | #include "WaterQuadTree.h" |
Syntax
struct FNode
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FNode() |
WaterQuadTree.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Bounds | FBox | World bounds | WaterQuadTree.h | |
| BreadthFirstIndex | uint32 | WaterQuadTree.h | ||
| Children | uint32 | Children, 0 means invalid | WaterQuadTree.h | |
| HasCompleteSubtree | uint32 | If all 4 child nodes have a full set of leaf nodes (each descentant has 4 children all the way down) | WaterQuadTree.h | |
| HasMaterial | uint32 | Cached value to avoid having to visit this node's FWaterBodyRenderData | WaterQuadTree.h | |
| IsSubtreeSameWaterBody | uint32 | If all descendant nodes are from the same waterbody. | WaterQuadTree.h | |
| ParentIndex | uint32 | Index to parent | WaterQuadTree.h | |
| TransitionWaterBodyIndex | uint32 | Index to the water body that this tile possibly transitions to | WaterQuadTree.h | |
| WaterBodyIndex | uint32 | Index into the water body render data array on the tree. | WaterQuadTree.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddNodeForRender
(
const FNodeData& InNodeData, |
Add instance for rendering this node | WaterQuadTree.h | |
void AddNodes
(
FNodeData& InNodeData, |
Add nodes that intersect InMeshBounds. | WaterQuadTree.h | |
bool CanMerge
(
const FNode& Other |
Check if all conditions are met to potentially allow this and another node to render as one | WaterQuadTree.h | |
bool CanRender
(
int32 InDensityLevel, |
If this node is allowed to be rendered, it means it can be rendered in place of all leaf nodes in its subtree. | WaterQuadTree.h | |
bool QueryBaseHeightAtLocation
(
const FNodeData& InNodeData, |
Recursive function to query the height(prior to any displacement) at a given location, return false if no height could be found | WaterQuadTree.h | |
bool QueryBoundsAtLocation
(
const FNodeData& InNodeData, |
Recursive function to query the bounds of a tile at a given location, return false if no leaf node could be found | WaterQuadTree.h | |
void SelectLOD
(
const FNodeData& InNodeData, |
Recursive function to select nodes visible from the current point of view | WaterQuadTree.h | |
void SelectLODRefinement
(
const FNodeData& InNodeData, |
Recursive function to traverse down to the appropriate density level. | WaterQuadTree.h | |
void SelectLODWithinBounds
(
const FNodeData& InNodeData, |
Recursive function to select nodes visible from the current point of view within an active bounding box | WaterQuadTree.h |