Generate Json::Value for this object
| 68 | |
| 69 | // Generate Json::Value for this object |
| 70 | Json::Value Point::JsonValue() const { |
| 71 | |
| 72 | // Create root json object |
| 73 | Json::Value root; |
| 74 | root["co"] = co.JsonValue(); |
| 75 | if (interpolation == BEZIER) { |
| 76 | root["handle_left"] = handle_left.JsonValue(); |
| 77 | root["handle_right"] = handle_right.JsonValue(); |
| 78 | root["handle_type"] = handle_type; |
| 79 | } |
| 80 | root["interpolation"] = interpolation; |
| 81 | |
| 82 | // return JsonValue |
| 83 | return root; |
| 84 | } |
| 85 | |
| 86 | // Load JSON string into this object |
| 87 | void Point::SetJson(const std::string value) { |
nothing calls this directly
no outgoing calls
no test coverage detected