Maya 1.0
Public Member Functions | Protected Attributes | List of all members
MayaAnimatedFrame Class Reference

Simple animation frame node. More...

#include <maya.h>

Inheritance diagram for MayaAnimatedFrame:
FrameScaled Frame

Public Member Functions

 MayaAnimatedFrame ()
 Create an animated frame.
 
 ~MayaAnimatedFrame ()
 Empty.
 
void Append (const FrameScaled &, int, bool=false)
 Append a frame to the animation. More...
 
void Delete (int)
 Delete a frame to the animation. More...
 
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. More...
 
bool setTimeSmooth (int)
 Update the current time and compute the new key-frame. More...
 

Protected Attributes

QVector< MayaTimeFramemafs
 List of key-frames.
 

Detailed Description

Simple animation frame node.

This class implements a simple animated frame.

Member Function Documentation

◆ Append()

void MayaAnimatedFrame::Append ( const FrameScaled mf,
int  t,
bool  acc = false 
)

Append a frame to the animation.

Parameters
mfFrame.
tTime.
accADRIEN.

References MayaTimeFrame::acc, mafs, MayaTimeFrame::mf, Frame::t, and MayaTimeFrame::time.

◆ Delete()

void MayaAnimatedFrame::Delete ( int  t)

Delete a frame to the animation.

Parameters
tTime.

References mafs, and Frame::t.

◆ setTime()

bool MayaAnimatedFrame::setTime ( int  t)

Update the current time and compute the new key-frame.

Parameters
tNew current time

References MayaTimeFrame::acc, end(), FrameScaled::Lerp(), mafs, MayaTimeFrame::mf, start(), Frame::t, and MayaTimeFrame::time.

◆ setTimeSmooth()

bool MayaAnimatedFrame::setTimeSmooth ( int  t)

Update the current time and compute the new key-frame.

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