Draw the CCTV calibration gizmo through the renderer ports and take it off the Cesium list

The gizmo's rings and move arrows are draw-port lines that dim where
geometry hides them, and its handles and arrow tips are depth-test-free
draw-port points; their item ids keep the cctv-gizmo-<part> scheme the
layer's pick owner matches. Picks, rays and the cursor go through the query
port and the renderer's canvas, and the drag math runs on plain vectors.
The layer reports what the gizmo draws for the QA harness, which reads the
parts there instead of from the viewer's entities.
This commit is contained in:
Sameh Khamis committed 2026-11-08 07:55:30 -08:00
1 parent 393f1686f2
commit bbad02b73e
6 files changed
+507 -278

No files matched your search

+1
View File
@@ -111,6 +111,7 @@ export function createCctvLayer({ services, source }) {
parts.testing._extractPickedCameraIdForTest,
_setCctvCoverageStateForTest: parts.testing._setCctvCoverageStateForTest,
_cctvIconsForTest: parts.testing._cctvIconsForTest,
_cctvDrawnForTest: parts.testing._cctvDrawnForTest,
focusCctvRecord: parts.navigation.focusCctvRecord,
maybeAutoHop: parts.navigation.maybeAutoHop,
cctvCycleIndex: parts.navigation.cctvCycleIndex,
+7
View File
@@ -122,6 +122,12 @@ export function createTesting({ state: layerState, services, parts, source }) {
if (record?.camera?.id) parts.rendering.addCameraIcon(record);
}
/** What the layer draws now, for the QA harness: the gizmo's parts. */
function _cctvDrawnForTest() {
return { gizmo: layerState._gizmo?.partsForTest() ?? {} };
}
/** The layer's icon set, for tests that read what the rows draw. */
function _cctvIconsForTest() {
@@ -135,5 +141,6 @@ export function createTesting({ state: layerState, services, parts, source }) {
_extractPickedCameraIdForTest,
_setCctvCoverageStateForTest,
_cctvIconsForTest,
_cctvDrawnForTest,
};
}