Load Json::Value into this object
| 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 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected