Load Json::Value into this object
| 102 | |
| 103 | // Load Json::Value into this object |
| 104 | void Point::SetJsonValue(const Json::Value root) { |
| 105 | |
| 106 | if (!root["co"].isNull()) |
| 107 | co.SetJsonValue(root["co"]); // update coordinate |
| 108 | if (!root["handle_left"].isNull()) |
| 109 | handle_left.SetJsonValue(root["handle_left"]); // update coordinate |
| 110 | if (!root["handle_right"].isNull()) |
| 111 | handle_right.SetJsonValue(root["handle_right"]); // update coordinate |
| 112 | if (!root["interpolation"].isNull()) |
| 113 | interpolation = (InterpolationType) root["interpolation"].asInt(); |
| 114 | if (!root["handle_type"].isNull()) |
| 115 | handle_type = (HandleType) root["handle_type"].asInt(); |
| 116 | |
| 117 | } |
nothing calls this directly
no outgoing calls
no test coverage detected