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

Method PropertiesJSON

src/effects/Wave.cpp:155–169  ·  view source on GitHub ↗

Get all properties for a specific frame

Source from the content-addressed store, hash-verified

153
154// Get all properties for a specific frame
155std::string Wave::PropertiesJSON(int64_t requested_frame) const {
156
157 // Generate JSON properties list
158 Json::Value root = BasePropertiesJSON(requested_frame);
159
160 // Keyframes
161 root["wavelength"] = add_property_json("Wave length", wavelength.GetValue(requested_frame), "float", "", &wavelength, 0.0, 3.0, false, requested_frame);
162 root["amplitude"] = add_property_json("Amplitude", amplitude.GetValue(requested_frame), "float", "", &amplitude, 0.0, 5.0, false, requested_frame);
163 root["multiplier"] = add_property_json("Multiplier", multiplier.GetValue(requested_frame), "float", "", &multiplier, 0.0, 10.0, false, requested_frame);
164 root["shift_x"] = add_property_json("X Shift", shift_x.GetValue(requested_frame), "float", "", &shift_x, 0.0, 1000.0, false, requested_frame);
165 root["speed_y"] = add_property_json("Vertical speed", speed_y.GetValue(requested_frame), "float", "", &speed_y, 0.0, 300.0, false, requested_frame);
166
167 // Return formatted string
168 return root.toStyledString();
169}

Callers

nothing calls this directly

Calls 1

GetValueMethod · 0.80

Tested by

no test coverage detected