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

Method SetJsonValue

src/TrackedObjectBBox.h:101–115  ·  view source on GitHub ↗

Load Json::Value into this object

Source from the content-addressed store, hash-verified

99
100 /// Load Json::Value into this object
101 void SetJsonValue(const Json::Value root)
102 {
103
104 // Set data from Json (if key is found)
105 if (!root["cx"].isNull())
106 cx = root["cx"].asDouble();
107 if (!root["cy"].isNull())
108 cy = root["cy"].asDouble();
109 if (!root["width"].isNull())
110 width = root["width"].asDouble();
111 if (!root["height"].isNull())
112 height = root["height"].asDouble();
113 if (!root["angle"].isNull())
114 angle = root["angle"].asDouble();
115 }
116 };
117
118 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected