#include <TimeSegmentC.h>
Inheritance diagram for Composition::TimeSegmentC:
Time segment class implements the visibility control for Demopaja layers and effects. The time segment has a origo in time and set of keys. The origo is treated as the beginning of the effect (or for example begin of animation the effect plays). Every two keys defines a segment where the is_visible() method returns true (the layer/effect is visible). If there is odd number of keys the last key is ignored.
The time values of the keys in a time segment are stored relative to the time origo. The methods, which operates the keys based in time uses the same time space as the time segment itself.
The changes made to the time segment is saved to a undo object if present.
This class is implemented by the system.
|
Default constructor.
|
|
Creates new time segment.
|
|
Default constructor with reference to the original.
|
|
Default destructor.
|
|
Adds a key at specified time. The time is in the same time space as the origo, even keys are relative to the origo of the time segment. |
|
Deep copy from a data block, see Edit::DataBlockI::copy().
Reimplemented from Edit::EditableI. |
|
Creates new time segment (used internally), see Edit::EditableI::create().
Reimplemented from Edit::EditableI. |
|
Create new time segment. Sets the origo of the time segment to zero. Noe keys are created. Reimplemented from Edit::EditableI. |
|
Create new time segment. Sets the origo of the timesegment to i32SegmentStart and creates two keys, first at the point in time of i32SegmentStart and second at the point in time of i32SegmentEnd. |
|
Create new time segment. Sets the origo of the time segment to zero. Noe keys are created. |
|
Deletes a key at specified index.
|
|
Returns a key at specified index.
|
|
Returns a key at specified time. The time is in the same time space as the origo, even keys are relative to the origo of the time segment. |
|
Returns the number of keys.
|
|
Returns the time of the key. The returned time is in the same time space as the origo, even keys are relative to the origo of the time segment. |
|
Returns the origo of the time segment.
|
|
Returns true if there is visible segment at given time.
|
|
Serialize the time segment from a Demopaja input stream.
Reimplemented from Edit::EditableI. |
|
Shallow copy from a editable, see Edit::EditableI::restore().
Reimplemented from Edit::EditableI. |
|
Serialize the time segment to a Demopaja output stream.
Reimplemented from Edit::EditableI. |
|
Sets the time of a key. The time is in the same time space as the origo, even keys are relative to the origo of the time segment. |
|
Sets the origo of the time segment.
|
|
Sort the keys based on the time of a key.
|