import { CameraConfiguration, PickCacheInvalidator } from '../../utilities'; import { ClassificationInfo, PointCloudOctree, PickPoint } from './potree-three-loader'; import { WellKnownAsprsPointClassCodes } from './types'; import { PointSizeType, PointColorType, PointShape } from '../../rendering'; import { DataSourceType, PointCloudObject, PointCloudObjectMetadata } from '../../data-providers'; import { CompletePointCloudAppearance, StyledPointCloudVolumeCollection } from '../../pointcloud-styling'; import { Color, Matrix4, Group, Box3, Vector3, Camera, Plane, Ray, WebGLRenderer } from 'three'; export declare class PointCloudNode extends Group { private readonly _cameraConfiguration?; private readonly _octree; private readonly _objectIdToAnnotationsMap; private readonly _classificationHandler; private _needsRedraw; private _clippingPlanes; private readonly _pickCacheInvalidator; private static readonly pickingWindowSize; private readonly _modelIdentifier; private readonly _sourceTransform; private readonly _customTransform; constructor(modelIdentifier: symbol, sourceTransform: Matrix4, octree: PointCloudOctree, annotations: PointCloudObject[], classificationInfo: ClassificationInfo, pickCacheInvalidator: PickCacheInvalidator, cameraConfiguration?: CameraConfiguration); get modelIdentifier(): symbol; get octree(): PointCloudOctree; get needsRedraw(): boolean; resetRedraw(): void; get hasCameraConfiguration(): boolean; get cameraConfiguration(): CameraConfiguration | undefined; get pointSize(): number; set pointSize(size: number); get pointSizeType(): PointSizeType; set pointSizeType(pointSizeType: PointSizeType); get pointColorType(): PointColorType; set pointColorType(type: PointColorType); get pointShape(): PointShape; set pointShape(value: PointShape); get visiblePointCount(): number; /** * GPU-based picking allowing to get point data based on ray directing from the camera. * @param renderer Renderer object used for Reveal rendereing. * @param camera Camera object used for Reveal rendering. * @param ray Ray representing the direction for picking. * @returns Picked point data. */ pick(renderer: WebGLRenderer, camera: Camera, ray: Ray): Promise; /** * Sets a visible filter on points of a given class. * @param pointClass ASPRS classification class code. Either one of the well known * classes from {@link WellKnownAsprsPointClassCodes} or a number for user defined classes. * @param visible Boolean flag that determines if the point class type should be visible or not. * @throws Error if the model doesn't have the class given. */ setClassVisible(pointClass: number | WellKnownAsprsPointClassCodes, visible: boolean): void; /** * Determines if points from a given class are visible. * @param pointClass ASPRS classification class code. Either one of the well known * classes from {@link WellKnownAsprsPointClassCodes} or a number for user defined classes. * @returns true if points from the given class will be visible. * @throws Error if the model doesn't have the class given. */ isClassVisible(pointClass: number | WellKnownAsprsPointClassCodes): boolean; /** * Returns true if the model has values with the given classification class. * @param pointClass ASPRS classification class code. Either one of the well known * classes from {@link WellKnownAsprsPointClassCodes} or a number for user defined classes. * @returns true if model has values in the class given. */ hasClass(pointClass: number | WellKnownAsprsPointClassCodes): boolean; /** * Returns a list of sorted classification codes present in the model. * @returns A sorted list of classification codes from the model. */ getClasses(): Array<{ name: string; code: number | WellKnownAsprsPointClassCodes; color: Color; }>; getBoundingBox(outBbox?: Box3): Box3; setModelTransformation(matrix: Matrix4): void; getModelTransformation(out?: Matrix4): Matrix4; getCdfToDefaultModelTransformation(out?: Matrix4): Matrix4; getSubtreePointsByBox(box: Box3): Vector3[]; get stylableVolumeMetadata(): Iterable>; getStylableObjectMetadata(objectId: number): PointCloudObjectMetadata | undefined; get stylableObjectCount(): number; get defaultAppearance(): CompletePointCloudAppearance; set defaultAppearance(appearance: CompletePointCloudAppearance); set clippingPlanes(clippingPlanes: Plane[]); assignStyledPointCloudObjectCollection(styledCollection: StyledPointCloudVolumeCollection): void; removeStyledPointCloudObjectCollection(styledCollection: StyledPointCloudVolumeCollection): void; removeAllStyledPointCloudObjects(): void; dispose(): void; }