11#ifndef CAL_ANIMATION_H
12#define CAL_ANIMATION_H
15#include "cal3d/global.h"
21class CAL3D_API CalAnimation
42 enum CompositionFunction {
43 CompositionFunctionNull = 0,
44 CompositionFunctionReplace,
45 CompositionFunctionAverage,
46 CompositionFunctionCrossFade
52 virtual ~CalAnimation() { }
64 void checkCallbacks(
float animationTime,
CalModel *model);
65 void completeCallbacks(
CalModel *model);
68 void setType(Type type) {
72 void setState(State state) {
76 void setWeight(
float weight) {
84 std::vector<float> m_lastCallbackTimes;
float getTimeFactor() const
Get the time factor.
Definition animation.cpp:164
void setTime(float time)
Set the time.
Definition animation.cpp:139
float getTime() const
Returns the time.
Definition animation.cpp:97
float getWeight() const
Returns the weight.
Definition animation.cpp:127
void setTimeFactor(float timeFactor)
Set the time factor.
Definition animation.cpp:152
Type getType() const
Returns the type.
Definition animation.cpp:114
CalCoreAnimation * getCoreAnimation()
Provides access to the core animation.
Definition animation.cpp:49
State getState() const
Returns the state.
Definition animation.cpp:84
Definition coreanimation.h:24