MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / SetJsonValue

Method SetJsonValue

src/Point.cpp:104–117  ·  view source on GitHub ↗

Load Json::Value into this object

Source from the content-addressed store, hash-verified

102
103// Load Json::Value into this object
104void 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected