- Cal3D 0.11 API Reference -

animation_action.h
1//****************************************************************************//
2// animation_action.h //
3// Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger //
4//****************************************************************************//
5// This library is free software; you can redistribute it and/or modify it //
6// under the terms of the GNU Lesser General Public License as published by //
7// the Free Software Foundation; either version 2.1 of the License, or (at //
8// your option) any later version. //
9//****************************************************************************//
10
11#ifndef CAL_ANIMATION_ACTION_H
12#define CAL_ANIMATION_ACTION_H
13
14
15#include "cal3d/global.h"
16#include "cal3d/animation.h"
17
18
20
21
22class CAL3D_API CalAnimationAction : public CalAnimation
23{
24public:
25 CalAnimationAction(CalCoreAnimation *pCoreAnimation);
26 virtual ~CalAnimationAction() { }
27
28 bool execute(float delayIn, float delayOut, float weightTarget = 1.0f, bool autoLock=false);
29 bool update(float deltaTime);
30
31private:
32 float m_delayIn;
33 float m_delayOut;
34 float m_delayTarget;
35 float m_weightTarget;
36 bool m_autoLock;
37 float m_scale;
38 float m_rampValue;
39 CompositionFunction m_compositionFunction;
40 enum SequencingMode {
41 SequencingModeNull = 0,
42 SequencingModeAutomatic,
43 SequencingModeManual
44 } m_sequencingMode;
45 bool m_manualOn;
46public:
47 bool setManual();
48 bool setManualAnimationActionOn( bool p );
50 bool setScale( float );
51 float getScale();
52 bool setCompositionFunction( CompositionFunction );
53 CompositionFunction getCompositionFunction();
54 bool setRampValue( float );
55 float getRampValue();
56 bool manual();
57 bool on();
58};
59
60#endif
bool execute(float delayIn, float delayOut, float weightTarget=1.0f, bool autoLock=false)
Executes the animation action instance.
Definition animation_action.cpp:65
bool setCompositionFunction(CompositionFunction)
Sets the composition function, which controls how animation blends with other simultaneous animations...
Definition animation_action.cpp:182
bool setManualAnimationActionWeight(float)
Sets the weight of the manual animation.
Definition animation_action.cpp:161
bool setRampValue(float)
Sets the rampValue of the animation.
Definition animation_action.cpp:214
CalAnimationAction(CalCoreAnimation *pCoreAnimation)
Constructs the animation action instance.
Definition animation_action.cpp:29
bool update(float deltaTime)
Updates the animation action instance.
Definition animation_action.cpp:304
bool setManual()
Configures the action to be a manual action, and on.
Definition animation_action.cpp:98
bool setManualAnimationActionOn(bool p)
Sets the manual animation on or off.
Definition animation_action.cpp:282
float getRampValue()
Gets the RampValue of the animation.
Definition animation_action.cpp:229
float getScale()
Gets the scale of the animation.
Definition animation_action.cpp:243
bool manual()
Tells you whether the animation action is configured to be manual.
Definition animation_action.cpp:144
bool on()
Tells you whether the animation action is on, i.e., should it apply to bones.
Definition animation_action.cpp:126
bool setScale(float)
Sets the scale of the animation.
Definition animation_action.cpp:265
CompositionFunction getCompositionFunction()
Gets the CompositionFunction of the animation.
Definition animation_action.cpp:198
Definition coreanimation.h:24

Generated by The Cal3D Team with Doxygen 1.13.2