#include <KeyC.h>
Inheritance diagram for FileKeyC:
Public Methods | |
virtual Edit::DataBlockI * | create () |
virtual Edit::DataBlockI * | create (Edit::EditableI *pOriginal) |
Creates new file handle (used internally), see Edit::EditableI::create(). | |
virtual void | copy (Edit::EditableI *pEditable) |
Deep copy from a data block, see Edit::DataBlockI::copy(). | |
virtual void | restore (Edit::EditableI *pEditable) |
Shallow copy from a editable, see Edit::EditableI::restore(). | |
virtual void | set_file_handle (Import::FileHandleC *pHandle) |
Sets the file handle used. | |
virtual Import::FileHandleC * | get_file_handle () |
Returns the file handle used. | |
virtual void | set_time_scale (PajaTypes::float32 f32Scale) |
Sets the time scale. | |
virtual PajaTypes::float32 | get_time_scale () const |
Returns the time scale. | |
virtual void | set_time_offset (PajaTypes::int32 i32Offset) |
Sets the time offset. | |
virtual PajaTypes::int32 | get_time_offset () const |
Returns the time offset. | |
virtual PajaTypes::uint32 | save (FileIO::SaveC *pSave) |
Serialize the key to a Demopaja output stream. | |
virtual PajaTypes::uint32 | load (FileIO::LoadC *pLoad) |
Serialize the key from a Demopaja input stream. | |
Static Public Methods | |
FileKeyC * | create_new () |
Create new key with zero no channels. | |
Protected Methods | |
FileKeyC () | |
Default constructor. | |
FileKeyC (PajaTypes::int32 i32Time) | |
Creates new key and assign it the specified time. | |
FileKeyC (Edit::EditableI *pOriginal) | |
Constructor with reference to the original. | |
virtual | ~FileKeyC () |
Default destructor. | |
Protected Attributes | |
PajaTypes::int32 | m_i32TimeOffset |
PajaTypes::float32 | m_f32TimeScale |
Import::FileHandleC * | m_pFileHandle |
The file key frame class has three properties: the file handle, file time offset and file time scale. The time properties are used to calculate the actual time used to evaluate the importable the file handle points. The time is calculate as follows:
Input: CurrentTime timeline time KeyTime time of the keyframe KeyTimeOffest time offset of the keyframe KeyTimeScale time scale of the keyframe Output: EvalTime time used to evaluate the importable
EvalTime = (CurrentTime - KeyTime + KeyOffsetTime) * KeyTimeScale
This class is implemented by the system.
|
Default constructor.
|
|
Creates new key and assign it the specified time.
|
|
Constructor with reference to the original.
|
|
Default destructor.
|
|
Deep copy from a data block, see Edit::DataBlockI::copy().
Reimplemented from KeyC. |
|
Creates new file handle (used internally), see Edit::EditableI::create().
Reimplemented from KeyC. |
|
Create new key with specified number fo channels. Create new key with zero no channels. Reimplemented from KeyC. |
|
Create new key with zero no channels.
Reimplemented from KeyC. |
|
Returns the file handle used.
|
|
Returns the time offset.
|
|
Returns the time scale.
|
|
Serialize the key from a Demopaja input stream.
Reimplemented from KeyC. |
|
Shallow copy from a editable, see Edit::EditableI::restore().
Reimplemented from KeyC. |
|
Serialize the key to a Demopaja output stream.
Reimplemented from KeyC. |
|
Sets the file handle used.
|
|
Sets the time offset.
|
|
Sets the time scale.
|