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