From 1f0ee0739a4ec675be0b785896eff75801890ed0 Mon Sep 17 00:00:00 2001 From: MaxNumerique Date: Tue, 28 Jul 2026 17:20:24 +0200 Subject: [PATCH 01/14] near model attribute still --- app/components/ClippingPlanes.vue | 354 ++++++++++++++++++++++++++++++ app/components/ViewToolbar.vue | 12 + app/stores/hybrid_viewer.js | 8 + 3 files changed, 374 insertions(+) create mode 100644 app/components/ClippingPlanes.vue diff --git a/app/components/ClippingPlanes.vue b/app/components/ClippingPlanes.vue new file mode 100644 index 00000000..ae01c34d --- /dev/null +++ b/app/components/ClippingPlanes.vue @@ -0,0 +1,354 @@ + + + + + diff --git a/app/components/ViewToolbar.vue b/app/components/ViewToolbar.vue index b0d2ff26..821e2b7e 100644 --- a/app/components/ViewToolbar.vue +++ b/app/components/ViewToolbar.vue @@ -3,6 +3,7 @@ import ActionButton from "@ogw_front/components/ActionButton"; import CameraBookmarkIcon from "@ogw_front/assets/viewer_svgs/camera-bookmark.svg"; import CameraManager from "@ogw_front/components/CameraManager"; import CameraOrientation from "@ogw_front/components/CameraOrientation"; +import ClippingPlanes from "@ogw_front/components/ClippingPlanes"; import Screenshot from "@ogw_front/components/Screenshot"; import ZScaling from "@ogw_front/components/ZScaling"; import schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"; @@ -15,6 +16,7 @@ const take_screenshot = ref(false); const show_camera_manager = ref(false); const showCameraOrientation = ref(false); const showZScaling = ref(false); +const showClippingPlanes = ref(false); const grid_scale = ref(false); const zScale = ref(hybridViewerStore.zScale); @@ -151,6 +153,15 @@ const camera_options = computed(() => [ showZScaling.value = !showZScaling.value; }, }, + { + testId: "clippingPlanesButton", + tooltip: "Clipping Planes", + icon: "mdi-content-cut", + color: showClippingPlanes.value ? "primary" : undefined, + action: () => { + showClippingPlanes.value = !showClippingPlanes.value; + }, + }, ]); @@ -223,6 +234,7 @@ const camera_options = computed(() => [ :width="260" @apply="handleZScalingClose" /> +