|
Maya 1.0
|
Simple animation frame node. More...
#include <maya.h>
Public Member Functions | |
| MayaAnimatedFrame () | |
| Create an animated frame. | |
| ~MayaAnimatedFrame () | |
| Empty. | |
| void | Append (const FrameScaled &, int, bool=false) |
| Append a frame to the animation. | |
| void | Delete (int) |
| Delete a frame to the animation. | |
| int | start () |
| Return the time of the first key-frame. | |
| int | end () |
| Return the time of the last key-frame. | |
| bool | setTime (int) |
| Update the current time and compute the new key-frame. | |
| bool | setTimeSmooth (int) |
| Update the current time and compute the new key-frame. | |
Protected Attributes | |
| QVector< MayaTimeFrame > | mafs |
| List of key-frames. | |
Simple animation frame node.
This class implements a simple animated frame.
| void MayaAnimatedFrame::Append | ( | const FrameScaled & | mf, |
| int | t, | ||
| bool | acc = false ) |
Append a frame to the animation.
| mf | Frame. |
| t | Time. |
| acc | ADRIEN. |
References MayaTimeFrame::acc, FrameScaled::FrameScaled(), mafs, MayaTimeFrame::mf, Frame::t, and MayaTimeFrame::time.
| void MayaAnimatedFrame::Delete | ( | int | t | ) |
| bool MayaAnimatedFrame::setTime | ( | int | t | ) |
Update the current time and compute the new key-frame.
| t | New current time |
References MayaTimeFrame::acc, end(), FrameScaled::Lerp(), mafs, MayaTimeFrame::mf, start(), Frame::t, and MayaTimeFrame::time.
| bool MayaAnimatedFrame::setTimeSmooth | ( | int | t | ) |
Update the current time and compute the new key-frame.
| t | New current time |
References MayaTimeFrame::acc, end(), QuadricCurveSet::GetLength(), FrameScaled::Lerp(), mafs, MayaTimeFrame::mf, Frame::r, Matrix::Rotation(), FrameScaled::s, start(), Frame::t, MayaTimeFrame::time, and QuadricCurveSet::U().