Generate Json::Value for this object
| 337 | |
| 338 | // Generate Json::Value for this object |
| 339 | Json::Value Keyframe::JsonValue() const { |
| 340 | |
| 341 | // Create root json object |
| 342 | Json::Value root; |
| 343 | root["Points"] = Json::Value(Json::arrayValue); |
| 344 | |
| 345 | // loop through points |
| 346 | for (const auto existing_point : Points) { |
| 347 | root["Points"].append(existing_point.JsonValue()); |
| 348 | } |
| 349 | |
| 350 | // return JsonValue |
| 351 | return root; |
| 352 | } |
| 353 | |
| 354 | // Load JSON string into this object |
| 355 | void Keyframe::SetJson(const std::string value) { |
nothing calls this directly
no outgoing calls
no test coverage detected