29 #ifndef __AnimationSet_H__
30 #define __AnimationSet_H__
76 Real timePos,
Real length,
Real weight = 1.0,
bool enabled =
false);
82 const String& getAnimationName()
const;
84 Real getTimePosition(
void)
const;
86 void setTimePosition(
Real timePos);
88 Real getLength()
const;
90 void setLength(
Real len);
92 Real getWeight(
void)
const;
94 void setWeight(
Real weight);
100 void addTime(
Real offset);
103 bool hasEnded(
void)
const;
106 bool getEnabled(
void)
const;
108 void setEnabled(
bool enabled);
141 void createBlendMask(
size_t blendMaskSizeHint,
float initialWeight = 1.0f);
143 void destroyBlendMask();
151 void _setBlendMaskData(
const float* blendMaskData);
159 void _setBlendMask(
const BoneBlendMask* blendMask);
165 void setBlendMaskEntry(
size_t boneHandle,
float weight);
169 assert(mBlendMask && mBlendMask->size() > boneHandle);
170 return (*mBlendMask)[boneHandle];
216 Real timePos,
Real length,
Real weight = 1.0,
bool enabled =
false);
220 bool hasAnimationState(
const String& name)
const;
222 void removeAnimationState(
const String& name);
224 void removeAllAnimationStates(
void);
243 void _notifyDirty(
void);
248 void _notifyAnimationStateEnabled(
AnimationState* target,
bool enabled);
281 : mTargetAnimationState(targetAnimationState) {}
285 Real getValue(
void)
const;
288 void setValue(
Real value);
Class encapsulating a set of AnimationState objects.
float Real
Software floating point type.
MapIterator< AnimationStateMap > AnimationStateIterator
float getBlendMaskEntry(size_t boneHandle) const
Get the weight for the bone identified by the given handle.
list< AnimationState * >::type EnabledAnimationStateList
void setLoop(bool loop)
Sets whether or not an animation loops at the start and end of the animation if the time continues to...
OGRE_AUTO_MUTEX
Mutex, public for external locking if needed.
EnabledAnimationStateList mEnabledAnimationStates
bool hasBlendMask() const
Return whether there is currently a valid blend mask set.
map< String, AnimationState * >::type AnimationStateMap
Represents the state of an animation and the weight of its influence.
AnimationState * mTargetAnimationState
Concrete IteratorWrapper for nonconst access to the underlying key-value container.
BoneBlendMask * mBlendMask
The blend mask (containing per bone weights)
const BoneBlendMask * getBlendMask() const
Get the current blend mask (const version, may be 0)
AnimationStateSet * mParent
Can either be used as an input or output value.
AnimationStateControllerValue(AnimationState *targetAnimationState)
Constructor, pass in the target animation state.
ConstVectorIterator< EnabledAnimationStateList > ConstEnabledAnimationStateIterator
~AnimationStateControllerValue()
Destructor (parent already virtual)
unsigned long mDirtyFrameNumber
Concrete IteratorWrapper for const access to the underlying container.
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
ControllerValue wrapper class for AnimationState.
unsigned long getDirtyFrameNumber(void) const
Get the latest animation state been altered frame number.
bool getLoop(void) const
Gets whether or not this animation loops.
AnimationStateMap mAnimationStates
Concrete IteratorWrapper for const access to the underlying key-value container.
ConstMapIterator< AnimationStateMap > ConstAnimationStateIterator
bool hasEnabledAnimationState(void) const
Tests if exists enabled animation state in this set.
vector< float >::type BoneBlendMask
Typedef for an array of float values used as a bone blend mask.
AnimationStateSet * getParent(void) const
Get the parent animation state set.
bool operator==(STLAllocator< T, P > const &, STLAllocator< T2, P > const &)
determine equality, can memory from another allocator be released by this allocator, (ISO C++)
bool operator!=(STLAllocator< T, P > const &, STLAllocator< T2, P > const &)
determine equality, can memory from another allocator be released by this allocator, (ISO C++)