Load Json::Value into this object
| 219 | |
| 220 | // Load Json::Value into this object |
| 221 | void ColorShift::SetJsonValue(const Json::Value root) { |
| 222 | |
| 223 | // Set parent data |
| 224 | EffectBase::SetJsonValue(root); |
| 225 | |
| 226 | // Set data from Json (if key is found) |
| 227 | if (!root["red_x"].isNull()) |
| 228 | red_x.SetJsonValue(root["red_x"]); |
| 229 | if (!root["red_y"].isNull()) |
| 230 | red_y.SetJsonValue(root["red_y"]); |
| 231 | if (!root["green_x"].isNull()) |
| 232 | green_x.SetJsonValue(root["green_x"]); |
| 233 | if (!root["green_y"].isNull()) |
| 234 | green_y.SetJsonValue(root["green_y"]); |
| 235 | if (!root["blue_x"].isNull()) |
| 236 | blue_x.SetJsonValue(root["blue_x"]); |
| 237 | if (!root["blue_y"].isNull()) |
| 238 | blue_y.SetJsonValue(root["blue_y"]); |
| 239 | if (!root["alpha_x"].isNull()) |
| 240 | alpha_x.SetJsonValue(root["alpha_x"]); |
| 241 | if (!root["alpha_y"].isNull()) |
| 242 | alpha_y.SetJsonValue(root["alpha_y"]); |
| 243 | } |
| 244 | |
| 245 | // Get all properties for a specific frame |
| 246 | std::string ColorShift::PropertiesJSON(int64_t requested_frame) const { |
nothing calls this directly
no outgoing calls
no test coverage detected