OpenShot Library | libopenshot
0.4.0
|
Go to the documentation of this file.
26 : X(co.first), Y(co.second) {}
62 catch (
const std::exception& e)
65 throw InvalidJSON(
"JSON is invalid (missing keys or invalid data types)");
73 if (!root[
"X"].isNull())
74 X = root[
"X"].asDouble();
75 if (!root[
"Y"].isNull())
76 Y = root[
"Y"].asDouble();
const Json::Value stringToJson(const std::string value)
double Y
The Y value of the coordinate (usually representing the value of the property being animated)
This namespace is the default namespace for all code in the openshot library.
Coordinate()
The default constructor, which defaults to (0,0)
void SetJsonValue(const Json::Value root)
Load Json::Value into this object.
void SetJson(const std::string value)
Load JSON string into this object.
Header file for Coordinate class.
Exception for invalid JSON.
std::string Json() const
Generate JSON string of this object.
Json::Value JsonValue() const
Generate Json::Value for this object.
A Cartesian coordinate (X, Y) used in the Keyframe animation system.
double X
The X value of the coordinate (usually representing the frame #)
Header file for all Exception classes.