OpenShot Library | libopenshot
0.1.2
|
A Point is the basic building block of a key-frame curve. More...
#include <Point.h>
Public Member Functions | |
void | Initialize_Handles (float Offset=0.0f) |
string | Json () |
Get and Set JSON methods. More... | |
Json::Value | JsonValue () |
Generate Json::JsonValue for this object. More... | |
Point () | |
Default constructor (defaults to 1,0) More... | |
Point (float y) | |
Constructor which creates a single coordinate at X=1. More... | |
Point (float x, float y) | |
Constructor which also creates a Point and sets the X and Y of the Point. More... | |
Point (float x, float y, InterpolationType interpolation) | |
Constructor which also creates a Point and sets the X,Y, and interpolation of the Point. More... | |
Point (Coordinate co) | |
Point (Coordinate co, InterpolationType interpolation) | |
Point (Coordinate co, InterpolationType interpolation, HandleType handle_type) | |
void | SetJson (string value) throw (InvalidJSON) |
Load JSON string into this object. More... | |
void | SetJsonValue (Json::Value root) |
Load Json::JsonValue into this object. More... | |
Public Attributes | |
Coordinate | co |
This is the primary coordinate. More... | |
Coordinate | handle_left |
This is the left handle coordinate. More... | |
Coordinate | handle_right |
This is the right handle coordinate. More... | |
HandleType | handle_type |
This is the handle mode. More... | |
InterpolationType | interpolation |
This is the interpolation mode. More... | |
A Point is the basic building block of a key-frame curve.
Points have a primary coordinate and a left and right handle coordinate. The handles are used to influence the direction of the curve as it moves between the primary coordinate and the next primary coordinate when the interpolation mode is BEZIER. When using LINEAR or CONSTANT, the handles are ignored.
Please see the following Example Code:
Point::Point | ( | float | y | ) |
Point::Point | ( | float | x, |
float | y | ||
) |
Point::Point | ( | float | x, |
float | y, | ||
InterpolationType | interpolation | ||
) |
Point::Point | ( | Coordinate | co | ) |
Point::Point | ( | Coordinate | co, |
InterpolationType | interpolation | ||
) |
Point::Point | ( | Coordinate | co, |
InterpolationType | interpolation, | ||
HandleType | handle_type | ||
) |
void Point::Initialize_Handles | ( | float | Offset = 0.0f | ) |
string Point::Json | ( | ) |
Json::Value Point::JsonValue | ( | ) |
void Point::SetJson | ( | string | value | ) | |
throw | ( | InvalidJSON | |||
) |
void Point::SetJsonValue | ( | Json::Value | root | ) |
Coordinate openshot::Point::co |
Coordinate openshot::Point::handle_left |
Coordinate openshot::Point::handle_right |
HandleType openshot::Point::handle_type |
InterpolationType openshot::Point::interpolation |