Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Interface SceneLoaderMonitorPort

    The subset of DataLoadingMonitor's public surface that SceneLoader consumes. Implemented structurally by DataLoadingMonitor.

    interface SceneLoaderMonitorPort {
        connectLoader(path: string, loader: LoaderMonitor): void;
        disconnectAllLoaders(): void;
        setCacheStatsProvider(provider: CacheStatsProvider | null): void;
        setL0CacheProvider(provider: L0CacheProviderPort | null): void;
        setSliceCacheProvider(provider: SliceCacheProviderPort | null): void;
        setGPUBufferPoolProvider(provider: GPUBufferPoolProviderPort | null): void;
        setAccumulatorProvider(
            type: "points" | "lines" | "gsplats",
            provider: AccumulatorProviderPort | null,
        ): void;
        setProfiler(profiler: UpdateProfiler | null): void;
        setLODProgressProvider(provider: LODProgressProvider | null): void;
        setDrawOrderProvider(provider: DrawOrderProvider | null): void;
        setFailedLoadsProvider(provider: FailedLoadsProviderPort | null): void;
        setCacheTelemetryState(state: CacheTelemetryState): void;
        setSceneGraph(root: SceneGraphNode): void;
        forceUpdate(): void;
        updateVisibleCount(type: GeometryTypeName, count: number): void;
        updateDroppedElementCount(count: number): void;
        updateVisibleCountsByPath(counts: ReadonlyMap<string, number>): void;
        show(): void;
        hide(): void;
        toggle(): void;
    }
    Index
    • Inject the live per-mesh draw-order provider (blending bucket, depthWrite, renderOrder keyed by scene-graph path). Polled each tick to drive the scene-graph tree's draw-order chip — pure observability.

      Parameters

      Returns void

    • Push the cache telemetry state resolved by cache-setup.ts so the UI shows the right disabled-reason. Without this, the aggregator falls back to "not-wired" whenever a CacheStatsProvider isn't registered, which conflates ?noCache with mid-scene transitions.

      Parameters

      Returns void

    • Per-node visible counts after nD slicing, keyed by scene-graph path (mesh name). Drives the "(N visible after slicing)" suffix in the scene-graph tree's badge tooltips. Only rendered meshes contribute (hidden subtrees — inactive LOD levels, toggled-off layers — are pruned by the caller's walk).

      Parameters

      • counts: ReadonlyMap<string, number>

      Returns void