synfig-core
1.0.3
|
TimePoint class: holds the time and the before and after interpolation mode. More...
#include <node.h>
Public Member Functions | |
TimePoint (const Time &x=Time::begin()) | |
const GUID & | get_guid () const |
const Time & | get_time () const |
Interpolation | get_before () const |
Interpolation | get_after () const |
void | set_guid (const GUID &x) |
void | set_time (const Time &x) |
void | set_before (Interpolation x) |
void | set_after (Interpolation x) |
void | absorb (const TimePoint &x) |
TimePoint class: holds the time and the before and after interpolation mode.
It includes a GUID, to make it unique
|
inline |
|
inline |
|
inline |
Referenced by absorb().
|
inline |
Referenced by absorb().
|
inline |
|
inline |
|
inline |
Referenced by synfig::ValueNode_Animated::get_times_vfunc().
|
inline |
Referenced by synfig::ValueNode_Animated::get_times_vfunc().
void TimePoint::absorb | ( | const TimePoint & | x | ) |
Modify the TimePoint based on the values of "merging" the interpolations. Used to insert a Time Point in a Time Points Set
If the Time Point to absorb is itself then bail out
Creates a new GUID with the old and the new one using XOR operator
If the current before/after interpolation is NIL use the interpolation provided by the TimePoint to absorb
If the interpolation of the Time Point to absorb is not the same than the interpolation from the Time Point to absorb then use UNDEFINED interpolation
References get_after(), get_before(), get_guid(), synfig::INTERPOLATION_NIL, and synfig::INTERPOLATION_UNDEFINED.
Referenced by synfig::TimePointSet::insert().