Keep aircraft, installation and viewshed state off Cesium objects

The aircraft layers' model spec key, IR boost and belly offset and the
billboards' large-icon flag move into aircraftVisuals, one store shared by
flights, military and local ADS-B. Installation markers' last drawn height
and selection move into installationMarkers. The CCTV viewshed QA tag is now
the viewshedCameraId record field, which qa-cctv-v2 reads through
entityRecords. Test fixtures drop a placement flag nothing reads.
This commit is contained in:
Sameh Khamis committed 2026-11-03 09:54:41 -08:00
1 parent 2394703c14
commit 04a70d59e9
11 files changed
+84 -40

No files matched your search

+3 -2
View File
@@ -1,5 +1,6 @@
import * as Cesium from 'cesium';
import { createFrustumVolumePrimitive } from '../../data/cctvViewshed.js';
import { entityRecord } from '../../data/entityRecords.js';
import {
FRUSTUM_GROUND_CLEARANCE_M,
PROBE_MIN_RANGE_M,
@@ -564,8 +565,8 @@ export function createGeometry({ state: layerState, services, parts, source }) {
record.frustumPositions,
color,
);
// QA tag: the harness counts viewshed volumes by this marker.
primitive._gevViewshed = record.camera.id;
// QA tag: the harness counts viewshed volumes by this record field.
entityRecord(primitive).viewshedCameraId = record.camera.id;
record.viewshedPrimitive =
layerState._viewer.scene.primitives.add(primitive);
record.viewshedActiveTint = !!isActive;