synfig-core  1.0.3
Public Member Functions | List of all members
synfig::TimePoint Class Reference

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 GUIDget_guid () const
const Timeget_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)

Detailed Description

TimePoint class: holds the time and the before and after interpolation mode.

It includes a GUID, to make it unique

See Also
guid.h interpolation.h

Constructor & Destructor Documentation

synfig::TimePoint::TimePoint ( const Time x = Time::begin())
inline

Member Function Documentation

const GUID& synfig::TimePoint::get_guid ( ) const
inline

Referenced by absorb().

const Time& synfig::TimePoint::get_time ( ) const
inline
Interpolation synfig::TimePoint::get_before ( ) const
inline

Referenced by absorb().

Interpolation synfig::TimePoint::get_after ( ) const
inline

Referenced by absorb().

void synfig::TimePoint::set_guid ( const GUID x)
inline
void synfig::TimePoint::set_time ( const Time x)
inline
void synfig::TimePoint::set_before ( Interpolation  x)
inline
void synfig::TimePoint::set_after ( Interpolation  x)
inline
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

See Also
TimePointSet::iterator TimePointSet::insert(const TimePoint& x)

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().


The documentation for this class was generated from the following files: