|
|
@ -29,7 +29,11 @@ void CFDStructDataSolverSportsAttributesItemManager::saveDataToDom(rapidjson::Do
|
|
|
|
jsonAdd(dom, m_MotionName, {"region", 0, "motion", this->getId(), "meshMotion", "name"});
|
|
|
|
jsonAdd(dom, m_MotionName, {"region", 0, "motion", this->getId(), "meshMotion", "name"});
|
|
|
|
jsonAdd(dom, m_MotionType, {"region", 0, "motion", this->getId(), "meshMotion", "MotionType"});
|
|
|
|
jsonAdd(dom, m_MotionType, {"region", 0, "motion", this->getId(), "meshMotion", "MotionType"});
|
|
|
|
jsonAdd(dom, m_MotionMode, {"region", 0, "motion", this->getId(), "meshMotion", "attrtype"});
|
|
|
|
jsonAdd(dom, m_MotionMode, {"region", 0, "motion", this->getId(), "meshMotion", "attrtype"});
|
|
|
|
jsonAdd(dom, m_RotationAxisOrigin, {"region", 0, "motion", this->getId(), "meshMotion", "rigid", "origin"});
|
|
|
|
// jsonAdd(dom, m_RotationAxisOrigin, {"region", 0, "motion", this->getId(), "meshMotion", "rigid", "origin"});
|
|
|
|
|
|
|
|
jsonAdd(dom, m_originX, {"region", 0, "motion", this->getId(), "meshMotion", "rigid", "origin", 0});
|
|
|
|
|
|
|
|
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_RotationAxisDirection, {"region", 0, "motion", this->getId(), "meshMotion", "rigid", "axial"});
|
|
|
|
jsonAdd(dom, m_RotationSpeed, {"region", 0, "motion", this->getId(), "meshMotion", "rigid", "speed"});
|
|
|
|
jsonAdd(dom, m_RotationSpeed, {"region", 0, "motion", this->getId(), "meshMotion", "rigid", "speed"});
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -48,9 +52,17 @@ void CFDStructDataSolverSportsAttributesItemManager::readDataFromDom(rapidjson::
|
|
|
|
if (temp != QVariant()) {
|
|
|
|
if (temp != QVariant()) {
|
|
|
|
m_MotionType = temp.toInt();
|
|
|
|
m_MotionType = temp.toInt();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
jsonRead(dom, temp, {"region", 0, "motion", this->getId(), "meshMotion", "rigid", "origin"});
|
|
|
|
jsonRead(dom, temp, {"region", 0, "motion", this->getId(), "meshMotion", "rigid", "origin", 0});
|
|
|
|
|
|
|
|
if (temp != QVariant()) {
|
|
|
|
|
|
|
|
m_originX = temp.toDouble();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
jsonRead(dom, temp, {"region", 0, "motion", this->getId(), "meshMotion", "rigid", "origin", 1});
|
|
|
|
if (temp != QVariant()) {
|
|
|
|
if (temp != QVariant()) {
|
|
|
|
m_RotationAxisOrigin = temp.toString();
|
|
|
|
m_originY = temp.toDouble();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
jsonRead(dom, temp, {"region", 0, "motion", this->getId(), "meshMotion", "rigid", "origin", 2});
|
|
|
|
|
|
|
|
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"});
|
|
|
|
if (temp != QVariant()) {
|
|
|
|
if (temp != QVariant()) {
|
|
|
@ -102,12 +114,37 @@ CUIConfig *CFDStructDataSolverSportsAttributesItemManager::genMovingFrameModeUIC
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_MotionMode)},
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_MotionMode)},
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
|
|
|
|
// new CUIConfig({
|
|
|
|
|
|
|
|
// {"type", "LineEdit"}, // 转轴原点
|
|
|
|
|
|
|
|
// {"name", tr("Axis origin")},
|
|
|
|
|
|
|
|
// {"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
|
|
|
// {"value_origin", QVA_GLOBAL(&m_RotationAxisOrigin)},
|
|
|
|
|
|
|
|
// }),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 转轴原点
|
|
|
|
{"type", "GroupBox"}, // 转轴原点
|
|
|
|
{"name", tr("Axis origin")},
|
|
|
|
{"name", "Axis origin"},
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
{"layout", "QHBoxLayout"},
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_RotationAxisOrigin)},
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
{
|
|
|
|
|
|
|
|
new CUIConfig({
|
|
|
|
|
|
|
|
{"type", "LineEdit"},
|
|
|
|
|
|
|
|
{"name", "X:"},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", m_originX},
|
|
|
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
new CUIConfig({
|
|
|
|
|
|
|
|
{"type", "LineEdit"},
|
|
|
|
|
|
|
|
{"name", "X:"},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", m_originX},
|
|
|
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
new CUIConfig({
|
|
|
|
|
|
|
|
{"type", "LineEdit"},
|
|
|
|
|
|
|
|
{"name", "Z:"},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", m_originZ},
|
|
|
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 转轴方向
|
|
|
|
{"type", "LineEdit"}, // 转轴方向
|
|
|
|
{"name", tr("Axis direction")},
|
|
|
|
{"name", tr("Axis direction")},
|
|
|
|