From 09b15973237f65f52f4561f893b4ea64a970c655 Mon Sep 17 00:00:00 2001 From: NicolasRichel Date: Tue, 2 Jul 2024 10:15:55 +0200 Subject: [PATCH 1/8] feat(models): add support for photosphere models (wip) --- .../models/models-manager/ModelsManager.vue | 4 +- .../GenericModelsManager.vue | 4 +- .../image-manager/ImageManager.vue | 79 +++++++++++++++++++ .../PhotosphereBuildingPanel.vue | 65 +++++++++++++++ .../models/models-table/ModelsTable.vue | 2 + .../model-actions-cell/ModelActionsCell.vue | 33 ++++++-- src/config/models.js | 6 ++ src/config/viewer.js | 1 + 8 files changed, 186 insertions(+), 8 deletions(-) create mode 100644 src/components/specific/models/models-manager/image-manager/ImageManager.vue create mode 100644 src/components/specific/models/models-manager/image-manager/PhotosphereBuildingPanel.vue diff --git a/src/components/specific/models/models-manager/ModelsManager.vue b/src/components/specific/models/models-manager/ModelsManager.vue index c335f90e7..3aadf4516 100644 --- a/src/components/specific/models/models-manager/ModelsManager.vue +++ b/src/components/specific/models/models-manager/ModelsManager.vue @@ -86,7 +86,7 @@ import IFCManager from "./ifc-manager/IFCManager.vue"; import PDFManager from "./pdf-manager/PDFManager.vue"; import PointCloudManager from "./point-cloud-manager/PointCloudManager.vue"; -const { DWG, DXF, IFC, JPEG, META_BUILDING, PDF, PNG, POINT_CLOUD } = +const { DWG, DXF, IFC, JPEG, META_BUILDING, PDF, PHOTOSPHERE, PNG, POINT_CLOUD } = MODEL_TYPE; const tabsDef = [ @@ -132,7 +132,7 @@ const tabsDef = [ id: "photos", text: "Photos", icon: "fileImagePolychrome", - modelTypes: [JPEG, PNG], + modelTypes: [JPEG, PHOTOSPHERE, PNG], component: "DWGManager" } ]; diff --git a/src/components/specific/models/models-manager/generic-models-manager/GenericModelsManager.vue b/src/components/specific/models/models-manager/generic-models-manager/GenericModelsManager.vue index 2159be658..cd75d06d0 100644 --- a/src/components/specific/models/models-manager/generic-models-manager/GenericModelsManager.vue +++ b/src/components/specific/models/models-manager/generic-models-manager/GenericModelsManager.vue @@ -66,6 +66,7 @@ @download="downloadModels([$event])" @view-metaBuilding="$emit('view-metaBuilding', $event)" @edit-metaBuilding="$emit('edit-metaBuilding', $event)" + @view-photosphereBuilding="$emit('view-photosphereBuilding', $event)" > @@ -113,6 +114,7 @@ export default { "upload-canceled", "upload-failed", "view-metaBuilding", + "view-photosphereBuilding", ], setup(props) { const { t } = useI18n(); diff --git a/src/components/specific/models/models-table/model-actions-cell/ModelActionsCell.vue b/src/components/specific/models/models-table/model-actions-cell/ModelActionsCell.vue index d60c790ab..4c4e3251f 100644 --- a/src/components/specific/models/models-table/model-actions-cell/ModelActionsCell.vue +++ b/src/components/specific/models/models-table/model-actions-cell/ModelActionsCell.vue @@ -8,8 +8,20 @@ icon @click="onClick('view-metaBuilding')" > - - + + + + +