TerraForge3D
2.3.1
3D Terrain And Landscape Generator
◆
Save()
nlohmann::json
MathFunctionNode::Save
(
)
virtual
Implements
NodeEditorNode
.
Definition at line
60
of file
MathFunctionNode.cpp
.
61
{
62
nlohmann::json
data;
63
nlohmann::json
tmp;
64
nlohmann::json
tmp2;
65
data[
"type"
] = MeshNodeEditor::MeshNodeType::MathFunction;
66
data[
"expr"
] = std::string(inputExpression);
67
data[
"mathInputWidth"
] = mathInputWidth;
68
data[
"factor"
] = factor;
69
/*
70
for (int i = 0; i < vars.size(); i++)
71
{
72
tmp2.clear();
73
tmp2["name"] = vars[i].first;
74
tmp2["value"] = vars[i].second;
75
tmp.push_back(tmp2);
76
}
77
data["vars"] = tmp;
78
*/
79
return
data;
80
}
nlohmann::basic_json
a class to store JSON values
Definition:
json.hpp:17860
MathFunctionNode
Generated on Thu Apr 7 2022 14:10:52 for TerraForge3D by
1.9.3