|
|
|
@ -34,7 +34,10 @@ void CFDStructDataSolverSportsAttributesItemManager::saveDataToDom(rapidjson::Do
|
|
|
|
|
jsonAdd(dom, m_originY, {"region", 0, "motion", this->getId(), "meshMotion", "rigid", "origin", 1});
|
|
|
|
|
jsonAdd(dom, m_originZ, {"region", 0, "motion", this->getId(), "meshMotion", "rigid", "origin", 2});
|
|
|
|
|
|
|
|
|
|
jsonAdd(dom, m_RotationAxisDirection, {"region", 0, "motion", this->getId(), "meshMotion", "rigid", "axial"});
|
|
|
|
|
jsonAdd(dom, m_axisX, {"region", 0, "motion", this->getId(), "meshMotion", "rigid", "axial", 0});
|
|
|
|
|
jsonAdd(dom, m_axisY, {"region", 0, "motion", this->getId(), "meshMotion", "rigid", "axial", 1});
|
|
|
|
|
jsonAdd(dom, m_axisZ, {"region", 0, "motion", this->getId(), "meshMotion", "rigid", "axial", 2});
|
|
|
|
|
|
|
|
|
|
jsonAdd(dom, m_RotationSpeed, {"region", 0, "motion", this->getId(), "meshMotion", "rigid", "speed"});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -64,9 +67,17 @@ void CFDStructDataSolverSportsAttributesItemManager::readDataFromDom(rapidjson::
|
|
|
|
|
if (temp != QVariant()) {
|
|
|
|
|
m_originZ = temp.toDouble();
|
|
|
|
|
}
|
|
|
|
|
jsonRead(dom, temp, {"region", 0, "motion", this->getId(), "meshMotion", "rigid", "axial"});
|
|
|
|
|
jsonRead(dom, temp, {"region", 0, "motion", this->getId(), "meshMotion", "rigid", "axial", 0});
|
|
|
|
|
if (temp != QVariant()) {
|
|
|
|
|
m_axisX = temp.toDouble();
|
|
|
|
|
}
|
|
|
|
|
jsonRead(dom, temp, {"region", 0, "motion", this->getId(), "meshMotion", "rigid", "axial", 1});
|
|
|
|
|
if (temp != QVariant()) {
|
|
|
|
|
m_RotationAxisDirection = temp.toString();
|
|
|
|
|
m_axisY = temp.toDouble();
|
|
|
|
|
}
|
|
|
|
|
jsonRead(dom, temp, {"region", 0, "motion", this->getId(), "meshMotion", "rigid", "axial", 2});
|
|
|
|
|
if (temp != QVariant()) {
|
|
|
|
|
m_axisZ = temp.toDouble();
|
|
|
|
|
}
|
|
|
|
|
jsonRead(dom, temp, {"region", 0, "motion", this->getId(), "meshMotion", "rigid", "speed"});
|
|
|
|
|
if (temp != QVariant()) {
|
|
|
|
@ -134,9 +145,9 @@ CUIConfig *CFDStructDataSolverSportsAttributesItemManager::genMovingFrameModeUIC
|
|
|
|
|
}),
|
|
|
|
|
new CUIConfig({
|
|
|
|
|
{"type", "LineEdit"},
|
|
|
|
|
{"name", "X:"},
|
|
|
|
|
{"name", "Y:"},
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
{"value_origin", m_originX},
|
|
|
|
|
{"value_origin", m_originY},
|
|
|
|
|
}),
|
|
|
|
|
new CUIConfig({
|
|
|
|
|
{"type", "LineEdit"},
|
|
|
|
@ -146,10 +157,32 @@ CUIConfig *CFDStructDataSolverSportsAttributesItemManager::genMovingFrameModeUIC
|
|
|
|
|
}),
|
|
|
|
|
}),
|
|
|
|
|
new CUIConfig({
|
|
|
|
|
{"type", "LineEdit"}, // 转轴方向
|
|
|
|
|
{"type", "GroupBox"}, // 转轴方向
|
|
|
|
|
{"name", tr("Axis direction")},
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_RotationAxisDirection)},
|
|
|
|
|
{"layout", "QHBoxLayout"},
|
|
|
|
|
// {"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
// {"value_origin", QVA_GLOBAL(&m_RotationAxisDirection)},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
new CUIConfig({
|
|
|
|
|
{"type", "LineEdit"},
|
|
|
|
|
{"name", "X:"},
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
{"value_origin", m_axisX},
|
|
|
|
|
}),
|
|
|
|
|
new CUIConfig({
|
|
|
|
|
{"type", "LineEdit"},
|
|
|
|
|
{"name", "Y:"},
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
{"value_origin", m_axisY},
|
|
|
|
|
}),
|
|
|
|
|
new CUIConfig({
|
|
|
|
|
{"type", "LineEdit"},
|
|
|
|
|
{"name", "Z:"},
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
{"value_origin", m_axisZ},
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
|
|
}),
|
|
|
|
|
new CUIConfig({
|
|
|
|
|
{"type", "LineEdit"}, // 转速
|
|
|
|
|