Generate Json::Value for this object
| 240 | |
| 241 | // Generate Json::Value for this object |
| 242 | Json::Value Saturation::JsonValue() const { |
| 243 | |
| 244 | // Create root json object |
| 245 | Json::Value root = EffectBase::JsonValue(); // get parent properties |
| 246 | root["type"] = info.class_name; |
| 247 | root["saturation"] = saturation.JsonValue(); |
| 248 | root["saturation_R"] = saturation_R.JsonValue(); |
| 249 | root["saturation_G"] = saturation_G.JsonValue(); |
| 250 | root["saturation_B"] = saturation_B.JsonValue(); |
| 251 | root["mask_mode"] = mask_mode; |
| 252 | |
| 253 | // return JsonValue |
| 254 | return root; |
| 255 | } |
| 256 | |
| 257 | // Load JSON string into this object |
| 258 | void Saturation::SetJson(const std::string value) { |
nothing calls this directly
no outgoing calls
no test coverage detected