visualization-tools

Home > @visualization-tools/core > SharedQuadTree

SharedQuadTree class

Emscripten quad tree.

Signature:

export declare class SharedQuadTree<TArray extends TTypedArray> implements ISharedQuadTree<TArray>, TListener<"onMemoryResize", []> 

Implements: ISharedQuadTree<TArray>, TListener<“onMemoryResize”, []>

Remarks

Max results is restricted to 16384 results, good for a 4k screen with 4 elements per quad. For best performance insert large bounding boxes first.

Constructors

Constructor Modifiers Description
(constructor)(wrapper, maxDepth, maxElementsPerNode, maximumResultCount)   Constructs a new instance of the SharedQuadTree class

Properties

Property Modifiers Type Description
onMemoryResize   () => void  
sharedObject   IReferenceCountedPtr  

Methods

Method Modifiers Description
addBoundingBox(aabb, entityId, dataId, filterMask)    
createOneF32(wrapper, maxDepth, maxElementsPerNode, maximumResultCount) static  
getQuadElementCount()    
getResults()    
queryPoint(point, filterMask)    
setOptions(maxDepth, maxElementsPerNode)    
setTopLevel(range2d)