From d26c42d58a9601a30e708de41731051c524c8c58 Mon Sep 17 00:00:00 2001 From: mzh Date: Tue, 12 Nov 2024 14:49:20 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81ui=E7=95=8C=E9=9D=A2=E4=B8=8A?= =?UTF-8?q?=EF=BC=8C=E8=BE=B9=E7=95=8C=E6=9D=A1=E4=BB=B6-=E5=91=A8?= =?UTF-8?q?=E6=9C=9F=EF=BC=9A=E6=97=8B=E8=BD=AC=E4=B8=AD=E5=BF=83=EF=BC=8C?= =?UTF-8?q?=E6=94=B9=E6=88=90=E7=9F=A2=E9=87=8F=20=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ructDataSolverBoundaryConditionManager.cpp | 25 ++++++++++++++++--- ...StructDataSolverBoundaryConditionManager.h | 5 +++- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/CFDStruct/CFDStructDataManager/CFDStructDataSolverBoundaryConditionManager.cpp b/CFDStruct/CFDStructDataManager/CFDStructDataSolverBoundaryConditionManager.cpp index ceec5d6..b235408 100644 --- a/CFDStruct/CFDStructDataManager/CFDStructDataSolverBoundaryConditionManager.cpp +++ b/CFDStruct/CFDStructDataManager/CFDStructDataSolverBoundaryConditionManager.cpp @@ -2034,12 +2034,29 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genCycleRotationUIConfig }), }), new CUIConfig({ - {"type", "LineEdit"}, // 旋转中心 + {"type", "GourpBox"}, // 旋转中心 {"name", tr("Rotation center")}, - {"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING}, - {"value_origin", QVA_GLOBAL(&m_RotationCenter)}, }, - {}), + { + new CUIConfig({ + {"type", "LineEdit"}, + {"name", "X:"}, + {"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE}, + {"value_origin", QVA_GLOBAL(&m_RotationCenterX)}, + }), + new CUIConfig({ + {"type", "LineEdit"}, + {"name", "Y:"}, + {"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE}, + {"value_origin", QVA_GLOBAL(&m_RotationCenterY)}, + }), + new CUIConfig({ + {"type", "LineEdit"}, + {"name", "Z:"}, + {"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE}, + {"value_origin", QVA_GLOBAL(&m_RotationCenterZ)}, + }), + }), new CUIConfig({ {"type", "GroupBox"}, // 转轴方向 {"name", tr("Axis direction")}, diff --git a/CFDStruct/CFDStructDataManager/CFDStructDataSolverBoundaryConditionManager.h b/CFDStruct/CFDStructDataManager/CFDStructDataSolverBoundaryConditionManager.h index a691cdb..e2aaf19 100644 --- a/CFDStruct/CFDStructDataManager/CFDStructDataSolverBoundaryConditionManager.h +++ b/CFDStruct/CFDStructDataManager/CFDStructDataSolverBoundaryConditionManager.h @@ -127,7 +127,10 @@ class CFDSTRUCTDATAMANAGER_EXPORT CFDStructDataSolverBoundaryConditionManager : double m_TranslationDistanceZ = 0; // 旋转中心 - QString m_RotationCenter; // Rotation Center + // QString m_RotationCenter; // Rotation Center + double m_RotationCenterX = 0; + double m_RotationCenterY = 0; + double m_RotationCenterZ = 0; // 转轴方向 // QString m_RotationAxisDirection; // Rotation Axis Direction