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

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Apr 13 2021 08:53:15