import { Box3, Vector3 } from 'three'; import { AreaCollection } from './prioritized/AreaCollection'; import { NodeCollection } from './NodeCollection'; import { SerializedNodeCollection } from './SerializedNodeCollection'; import { NumericRange, IndexSet } from '../../utilities'; /** * Node collection that holds a set of nodes defined by a set of tree indices. */ export declare class TreeIndexNodeCollection extends NodeCollection { static readonly classToken = "TreeIndexNodeCollection"; private _treeIndices; private _areaCollection; constructor(treeIndexSet?: IndexSet); constructor(treeIndices?: Iterable); constructor(treeIndexRange?: NumericRange); updateSet(treeIndices: IndexSet): void; updateSet(treeIndices: NumericRange): void; updateSet(treeIndices: Iterable): void; /** * Sets this set to hold an empty set. */ clear(): void; getIndexSet(): IndexSet; getAreas(): AreaCollection; /** * Add areas to this node collection's area set. * Nearby areas may be clustered and merged together to keep * the number of areas in the set small. */ addAreas(areas: Box3[]): void; /** * Add points to this node collection's area set. * This effectively adds boxes of size 1x1x1 meter with the points as their centers. */ addAreaPoints(points: Vector3[]): void; clearAreas(): void; get isLoading(): boolean; serialize(): SerializedNodeCollection; }