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

+7 -6
View File
@@ -1785,9 +1785,9 @@ async function main() {
const gizmoStates = await page.evaluate((parts) => {
const mod = window.__godsEyeView.dataManager.layers.get('cctv').module;
mod.setParams({ calibrationMode: true });
const viewer = window.__godsEyeView.viewer;
const drawn = mod._cctvDrawnForTest().gizmo;
return parts.map((p) => {
const e = viewer.entities.getById('cctv-gizmo-' + p);
const e = drawn['cctv-gizmo-' + p];
return e ? (e.show ? 'shown' : 'hidden') : 'missing';
});
}, GIZMO_PARTS);
@@ -1802,9 +1802,10 @@ async function main() {
// stay frozen until release, with no transient sampleHeight calls.
const eastDrag = await page.evaluate(() => {
const viewer = window.__godsEyeView.viewer;
const e = viewer.entities.getById('cctv-gizmo-move-east');
const mod = window.__godsEyeView.dataManager.layers.get('cctv').module;
const e = mod._cctvDrawnForTest().gizmo['cctv-gizmo-move-east'];
if (!e) return null;
const pts = e.polyline.positions.getValue(viewer.clock.currentTime);
const pts = e.positions;
const scene = viewer.scene;
const w = scene.canvas.clientWidth;
const h = scene.canvas.clientHeight;
@@ -2082,9 +2083,9 @@ async function main() {
const mod = window.__godsEyeView.dataManager.layers.get('cctv').module;
mod.setParams({ calibrationMode: false });
mod.setParams({ calibration: { reset: true } });
const viewer = window.__godsEyeView.viewer;
const drawn = mod._cctvDrawnForTest().gizmo;
return parts.map((p) => {
const e = viewer.entities.getById('cctv-gizmo-' + p);
const e = drawn['cctv-gizmo-' + p];
return e ? (e.show ? 'shown' : 'hidden') : 'missing';
});
}, GIZMO_PARTS);