// Punktwolken im Lage-Panel ([27] Stufe 1): Liste der geladenen Wolken mit Sichtbarkeit, // Farbmodus, Punktgrösse und Entfernen, dazu „Importieren …". Die Wolken liegen im UI-Store // (`state/pointCloudStore.ts`), nicht im Projekt — Änderungen hier sind kein Undo-Schritt. import { t } from "../i18n"; import { useStore } from "../state/appStore"; import type { TranslationKey } from "../i18n"; import { MAX_POINT_SIZE, MIN_POINT_SIZE, POINT_COLOR_MODES, colorModeAvailable, openPointCloudFileDialog, removePointCloud, updatePointCloud, usePointClouds, } from "../state/pointCloudStore"; import type { PointColorMode } from "../state/pointCloudStore"; import { placementHints, placementOf } from "../ui/PointCloudImportDialog"; const MODE_KEY: Record = { rgb: "pointCloud.color.rgb", intensity: "pointCloud.color.intensity", class: "pointCloud.color.class", height: "pointCloud.color.height", }; export function PointCloudSection() { const project = useStore((s) => s.project); const clouds = usePointClouds(); return (
{t("pointCloud.section")}
{clouds.length === 0 &&
{t("pointCloud.empty")}
} {clouds.map((c) => (
updatePointCloud(c.id, { visible: e.target.checked })} /> {c.name}
updatePointCloud(c.id, { pointSize: Number(e.target.value) })} /> {c.pointSize} px
{t("pointCloud.count", { n: c.data.report.pointsKept.toLocaleString("de-CH") })} {c.data.report.epsg !== null && <> · EPSG {c.data.report.epsg}} {" · "} {placementHints(placementOf(c.data, project)) .map((k) => t(k)) .join(" ")}
))} {clouds.length > 0 &&
{t("pointCloud.only3d")} {t("pointCloud.sessionHint")}
}
); }