| 347 | } |
| 348 | |
| 349 | void ColorMap::SetJsonValue(const Json::Value root) |
| 350 | { |
| 351 | EffectBase::SetJsonValue(root); |
| 352 | if (!root["lut_path"].isNull()) |
| 353 | { |
| 354 | lut_path = root["lut_path"].asString(); |
| 355 | needs_refresh = true; |
| 356 | } |
| 357 | if (!root["intensity"].isNull()) |
| 358 | intensity.SetJsonValue(root["intensity"]); |
| 359 | if (!root["intensity_r"].isNull()) |
| 360 | intensity_r.SetJsonValue(root["intensity_r"]); |
| 361 | if (!root["intensity_g"].isNull()) |
| 362 | intensity_g.SetJsonValue(root["intensity_g"]); |
| 363 | if (!root["intensity_b"].isNull()) |
| 364 | intensity_b.SetJsonValue(root["intensity_b"]); |
| 365 | } |
| 366 | |
| 367 | std::string ColorMap::PropertiesJSON(int64_t requested_frame) const |
| 368 | { |
nothing calls this directly
no outgoing calls
no test coverage detected