From 8a197be56a5fab63303b72275d1286ed18860de9 Mon Sep 17 00:00:00 2001 From: ljqing Date: Thu, 16 Feb 2023 14:44:43 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E6=8A=95=E5=BD=B1=E6=9C=BA=E5=88=86=E8=BE=A8=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/ClientConnection.ts | 9 +++++++++ src/entities/WSProtocol.ts | 24 ++++++++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/src/common/ClientConnection.ts b/src/common/ClientConnection.ts index fd5c8f3..a62974b 100644 --- a/src/common/ClientConnection.ts +++ b/src/common/ClientConnection.ts @@ -1551,6 +1551,15 @@ export default class ClientConnection { ); } + public async SetProjectorResolution( + width: number, + height: number + ) { + return await this.doRpc( + new Protocol.SetProjectorResolutionRequestEntity(width, height) + ); + } + public async setCloudServerSetting( cloud_server_address: string, cloud_server_verify_key: string, diff --git a/src/entities/WSProtocol.ts b/src/entities/WSProtocol.ts index 93a0267..f5a411d 100644 --- a/src/entities/WSProtocol.ts +++ b/src/entities/WSProtocol.ts @@ -548,6 +548,9 @@ export namespace Protocol { public static get kDelBlendingCtrlPoint() { return Commands.PROTOCOL_PREFIX + "DelBlendingCtrlPoint"; } + public static get kSetProjectorResolution() { + return Commands.PROTOCOL_PREFIX + "SetProjectorResolution"; + } public static get kRpcFileManagerGetFileList() { return Commands.PROTOCOL_PREFIX + "RpcFileManagerGetFileList"; } @@ -701,6 +704,7 @@ export namespace Protocol { Commands.kDeleteBlendingScene, Commands.kAddBlendingCtrlPoint, Commands.kDelBlendingCtrlPoint, + Commands.kSetProjectorResolution, Commands.kRpcSetMagicWallGridState, Commands.kRpcGetMagicWallGridState, Commands.kRpcFileManagerGetFileList, @@ -3672,6 +3676,26 @@ export namespace Protocol { column = 0; count = 0; //控制点数量 } + + export class SetProjectorResolutionRequestEntity extends PacketEntity { + constructor( + width: number, + height: number, + rpc_id = 0 + ) { + super(); + super.command = Commands.kSetProjectorResolution; + super.flag = PacketEntity.FLAG_REQUEST; + super.rpc_id = rpc_id; + + this.width = width ?? 0; + this.height = height ?? 0; + } + + width = 0; + height = 0; + } + export class RpcFileManagerGetFileListRequest extends PacketEntity { dir_path: string = ""; constructor(dir_path: string, rpc_id = 0) { From 06dfea081553fefbe9dc2980f2a1551fcdbc1fad Mon Sep 17 00:00:00 2001 From: shefengchun <1077478963@qq.com> Date: Thu, 16 Feb 2023 14:53:36 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FusionSettings/DensityCorrection.vue | 143 ++++++++++++------ .../FusionSettings/FourPointCalibration.vue | 10 +- .../FusionSettings/SurfaceCorrection.vue | 9 +- src/components/FusionSettingsDialog.vue | 6 +- src/i18n/en-US/index.ts | 4 +- src/i18n/zh-CN/index.ts | 4 +- 6 files changed, 124 insertions(+), 52 deletions(-) diff --git a/src/components/FusionSettings/DensityCorrection.vue b/src/components/FusionSettings/DensityCorrection.vue index 9fa6dbc..fad4600 100644 --- a/src/components/FusionSettings/DensityCorrection.vue +++ b/src/components/FusionSettings/DensityCorrection.vue @@ -4,22 +4,20 @@
- v{{ - index+ 1 + index + 1 }} - v{{ - index+ 1 + index + 1 }} h{{ - index+ 1 + index + 1 }} h{{ - index+ 1 + index + 1 }}
@@ -52,45 +50,60 @@
-
-
+
-
+
-
+
+
+
-
-
+
-
-
+
-
+
-
+
+
+
-
-
+
+ +
+
+
+
+
-
- - +