KeyFrame class represents an animation keyframe. More...
#include <MultiWidgets/KeyFrame.hpp>
Public Member Functions | |
| virtual bool | deserialize (const Valuable::ArchiveElement &element) |
| Deserializes (reads) this object from serializer element. More... | |
| KeyFrame (float time, const T &value, InterpolationType interpolation=CUBIC) | |
| Constructs a new keyframe. More... | |
| KeyFrame (float time, const T &value, const T &tIn, const T &tOut, InterpolationType interpolation=CUBIC) | |
| Constructs a new keyframe. More... | |
| bool | operator< (const KeyFrame< T > &k) const |
| Sort keyframes by time. | |
| virtual Valuable::ArchiveElement | serialize (Valuable::Archive &archive) const |
| Serializes (writes) this object to an element. More... | |
Public Member Functions inherited from Valuable::Serializable | |
| virtual bool | deserializeXML (const DOMElement &element) |
| Deserializes (reads) this object from an XML element. More... | |
| bool | isSerializable () const |
| void | setSerializable (bool v) |
Public Attributes | |
| InterpolationType | m_interpolation |
| Interpolation type used. | |
| T | m_tangentIn |
| In-coming tangent. | |
| T | m_tangentOut |
| Out-going tangent. | |
| float | m_time |
| Time position of the keyframe. | |
| T | m_value |
| Value of the keyframe. | |
KeyFrame class represents an animation keyframe.
It stores the value of an animated attribute at the given time. It also defines the in-coming and out-going tangents at that position. The tangents are stored as offsets to the actual keyframe value. The keyframe also defines the interpolation used to compute the values between this keyframe and the next.
|
inline |
Constructs a new keyframe.
| time | time of the keyframe |
| value | value of the keyframe |
| interpolation | interpolation type that specifies how values between keyframes should be interpolated |
|
inline |
Constructs a new keyframe.
| time | time of the keyframe |
| value | value of the keyframe |
| tIn | incoming tangent value |
| tOut | outgoing tangent value |
| interpolation | interpolation type that specifies how values between keyframes should be interpolated |
|
inlinevirtual |
Deserializes (reads) this object from serializer element.
| element | Serialized element that holds the data that should be deserialized. |
Implements Valuable::Serializable.
|
inlinevirtual |
Serializes (writes) this object to an element.
| archive | The serializer archive that is used to create the new element and maintains the serialization state and options. |
Implements Valuable::Serializable.