/** * Parser for LCC2 scenes, the XGRIDS level of detail tree of Gaussian splat files. Data * Organization Format originated from XGRIDS. * * The `.lcc2` file describes the tree, and every node below its root references a range of splats * in one of the scene's splat files, which are streamed on demand. Each node holds one LOD level of * its region and is replaced by its children for more detail, so the tree loads directly as a * hierarchical {@link GSplatOctree}. Only the splats are loaded: the scene's meshes and collision * data are not. * * @ignore */ export class GSplatLcc2Parser { /** * Converts parsed LCC2 data to the data a hierarchical {@link GSplatOctree} is created from. * * @param {object} lcc - The parsed `.lcc2` JSON. * @returns {object} The octree data. */ static convert(lcc: object): object; /** * @param {AppBase} app - The app instance. */ constructor(app: AppBase); /** @type {AppBase} */ app: AppBase; canParse(context: any): boolean; /** * @param {object} url - The URL of the resource to load. * @param {string} url.load - The URL to use for loading the resource. * @param {string} url.original - The original URL useful for identifying the resource type. * @param {ResourceHandlerCallback} callback - The callback used when * the resource is loaded or an error occurs. * @param {object} asset - Container asset. */ load(url: { load: string; original: string; }, callback: ResourceHandlerCallback, asset: object): void; } import type { AppBase } from '../app-base.js'; import type { ResourceHandlerCallback } from '../handlers/handler.js';