import { WebGLRenderer } from 'three'; import { IntersectInput } from '../../model-base'; import { PointCloudNode } from './PointCloudNode'; import { DataSourceType } from '../../data-providers'; import { IntersectPointCloudNodeResult } from './types'; import { EdlOptions } from '../../rendering'; export declare class PointCloudPickingHandler { private readonly _normalized; private readonly _drawingBufferSize; private readonly _raycaster; private readonly _renderer; private readonly _picker; private readonly _edlOptions; private readonly _mutex; /** * @param renderer Renderer used for the pick render. * @param edlOptions EDL options the point clouds are rendered with, if any. EDL shades empty pixels * within its radius of a point, closing small gaps on screen that the pick render (which has no EDL) * still sees as empty, so the pick window is widened to cover that radius. */ constructor(renderer: WebGLRenderer, edlOptions?: EdlOptions); dispose(): void; /** * Invalidates the picker's cached full-frame pick buffer. Call it when scene content that can * change what a pick hits has changed. */ invalidatePickCache(): void; intersectPointClouds(nodes: PointCloudNode[], input: IntersectInput): Promise[]>; private getPickWindowSize; } /** * Pick window size in drawing buffer pixels. Odd, so the window is centered on the pick position. * Wide enough to cover the EDL outline, which is drawn around points on screen but not in the pick render. */ export declare function computePickWindowSize(edlOptions: EdlOptions | undefined, drawingBufferHeight: number): number;