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);
232 AnimationStateIterator getAnimationStateIterator(
void);
239 ConstAnimationStateIterator getAnimationStateIterator(
void)
const;
243 void _notifyDirty(
void);
248 void _notifyAnimationStateEnabled(
AnimationState* target,
bool enabled);
257 ConstEnabledAnimationStateIterator getEnabledAnimationStateIterator(
void)
const;
281 : mTargetAnimationState(targetAnimationState) {}
285 Real getValue(
void)
const;
288 void setValue(
Real value);
void setLoop(bool loop)
Sets whether or not an animation loops at the start and end of the animation if the time continues to...
AnimationStateSet * mParent
AnimationStateSet * getParent(void) const
Get the parent animation state set.
bool hasEnabledAnimationState(void) const
Tests if exists enabled animation state in this set.
Concrete IteratorWrapper for nonconst access to the underlying key-value container.
AnimationStateMap mAnimationStates
ConstVectorIterator< EnabledAnimationStateList > ConstEnabledAnimationStateIterator
Concrete IteratorWrapper for const access to the underlying key-value container.
float Real
Software floating point type.
vector< float >::type BoneBlendMask
Typedef for an array of float values used as a bone blend mask.
AnimationState * mTargetAnimationState
Can either be used as an input or output value.
Class encapsulating a set of AnimationState objects.
const BoneBlendMask * getBlendMask() const
Get the current blend mask (const version, may be 0)
MapIterator< AnimationStateMap > AnimationStateIterator
bool getLoop(void) const
Gets whether or not this animation loops.
~AnimationStateControllerValue()
Destructor (parent already virtual)
BoneBlendMask * mBlendMask
The blend mask (containing per bone weights)
map< String, AnimationState * >::type AnimationStateMap
bool operator!=(STLAllocator< T, P > const &, STLAllocator< T2, P > const &)
determine equality, can memory from another allocator be released by this allocator, (ISO C++)
ConstMapIterator< AnimationStateMap > ConstAnimationStateIterator
unsigned long getDirtyFrameNumber(void) const
Get the latest animation state been altered frame number.
Concrete IteratorWrapper for const access to the underlying container.
float getBlendMaskEntry(size_t boneHandle) const
Get the weight for the bone identified by the given handle.
bool operator==(STLAllocator< T, P > const &, STLAllocator< T2, P > const &)
determine equality, can memory from another allocator be released by this allocator, (ISO C++)
Represents the state of an animation and the weight of its influence.
OGRE_AUTO_MUTEX
Mutex, public for external locking if needed.
unsigned long mDirtyFrameNumber
ControllerValue wrapper class for AnimationState.
AnimationStateControllerValue(AnimationState *targetAnimationState)
Constructor, pass in the target animation state.
EnabledAnimationStateList mEnabledAnimationStates
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
list< AnimationState * >::type EnabledAnimationStateList
bool hasBlendMask() const
Return whether there is currently a valid blend mask set.