Draw CCTV camera icons through the renderer ports and take rendering.js off the Cesium list

The camera icons are now a draw-port icon set kept by an icon book; only
icons a view pass or restyle changes are written, in one write per pass.
Picks read the renderer's hit, the view pass and focus pass project
through the camera pose (geo/frustum.js poseProjector, matching the
renderer's projection and near clip) and the query port, and tile
readiness for ground sampling comes from the globe port.
This commit is contained in:
Sameh Khamis committed 2026-11-08 09:38:24 -08:00
1 parent 2a607ec4d8
commit 1d08043bf9
20 files changed
+810 -457

No files matched your search

+9 -6
View File
@@ -4,7 +4,7 @@ import { applyVesselFocusDeemphasis } from './aisLiveVessels.js';
import { applyCctvFocusDeemphasis } from './cctv.js';
import { applySatellitePointFocusDeemphasis } from './satellites.js';
import { DEFAULT_FOCUS_DEEMPHASIS_PARAMS } from './focusDeemphasis.js';
import { createIconSet } from './iconSet.js';
import { createIconBook } from '../render/motion/iconBook.js';
import { createVesselIconBook } from '../layers/vessels/iconBook.js';
const params = { ...DEFAULT_FOCUS_DEEMPHASIS_PARAMS, paddingPx: 0 };
@@ -88,10 +88,13 @@ assertResumeGate('vessel', () => {
});
assertResumeGate('CCTV', () => {
const icons = createIconSet();
const row = icons.add('cam-1', { id: 'cam-1' });
icons.setSize(row, 24, 24);
icons.setShown(row, true);
const icons = createIconBook();
icons.put({
id: 'cam-1',
pos: { x: 1, y: 2, z: 3 },
size: [24, 24],
meta: { id: 'cam-1' },
});
const record = { camera: { id: 'cam-1' }, position: { x: 1, y: 2, z: 3 } };
return {
pass: ({ nowMs, target: focusTarget, previousActiveCount }) =>
@@ -105,7 +108,7 @@ assertResumeGate('CCTV', () => {
cameraDistanceFor: () => 1200,
params,
}),
readAlpha: () => icons.focus(icons.row('cam-1')),
readAlpha: () => icons.focus('cam-1'),
};
});