#include <u_play_list.h>
Inheritance diagram for NL3D::UPlayList:
NB: a playlist is actually played through UPlayListManager::animate(). NB: all AnimationTime are in second.
Nevrax France
Definition at line 53 of file u_play_list.h.
Public Types | |
enum | { empty = 0xffffffff } |
enum | TWrapMode { Clamp = 0, Repeat, Disable, WrapModeCount } |
Wrap mode for the play list. More... | |
Public Member Functions | |
Animation Setup. | |
virtual void | emptyPlayList ()=0 |
virtual uint | getAnimation (uint8 slot) const=0 |
virtual void | setAnimation (uint8 slot, uint animation)=0 |
Special channel operation. | |
virtual void | enableChannel (uint channelId, bool enable)=0 |
virtual bool | isChannelEnabled (uint channelId) const=0 |
Animation Weight Setup. | |
virtual float | getEndWeight (uint8 slot, TGlobalAnimationTime &time) const=0 |
virtual TAnimationTime | getLocalTime (uint8 slot, TGlobalAnimationTime globalTime, const UAnimationSet &animSet) const=0 |
virtual float | getLocalWeight (uint8 slot, TGlobalAnimationTime globalTime) const=0 |
virtual float | getStartWeight (uint8 slot, TGlobalAnimationTime &time) const=0 |
virtual float | getWeightSmoothness (uint8 slot) const=0 |
virtual void | setEndWeight (uint8 slot, float endWeight, TGlobalAnimationTime time)=0 |
virtual void | setStartWeight (uint8 slot, float startWeight, TGlobalAnimationTime time)=0 |
virtual void | setWeight (uint8 slot, float weight)=0 |
virtual void | setWeightSmoothness (uint8 slot, float smoothness)=0 |
Skeleton Weight Setup. | |
virtual uint | getSkeletonWeight (uint8 slot, bool &inverted) const=0 |
virtual void | setSkeletonWeight (uint8 slot, uint skeletonId, bool inverted=false)=0 |
Animation Time Setup. | |
virtual float | getSpeedFactor (uint8 slot) const=0 |
virtual TGlobalAnimationTime | getTimeOrigin (uint8 slot) const=0 |
virtual TWrapMode | getWrapMode (uint8 slot) const=0 |
virtual void | setSpeedFactor (uint8 slot, float speedFactor)=0 |
virtual void | setTimeOrigin (uint8 slot, TGlobalAnimationTime timeOrigin)=0 |
virtual void | setWrapMode (uint8 slot, TWrapMode wrapMode)=0 |
Animatable Link. | |
virtual void | registerTransform (UTransform *object, const char *prefix="")=0 |
virtual void | resetAllChannels ()=0 |
Protected Member Functions | |
UPlayList () | |
Constructor. | |
virtual | ~UPlayList () |
Constructor. |
|
Definition at line 63 of file u_play_list.h.
00064 { 00065 // 00066 empty=0xffffffff 00067 }; |
|
Wrap mode for the play list.
Definition at line 70 of file u_play_list.h.
00071 { 00073 Clamp=0, 00074 00076 Repeat, 00077 00079 Disable, 00080 00081 WrapModeCount 00082 }; |
|
Constructor.
Definition at line 58 of file u_play_list.h.
00058 {} |
|
Constructor.
Definition at line 60 of file u_play_list.h.
00060 {} |
|
Empty the playlist. Each slot is set to its default value. Implemented in NL3D::CPlayListUser. |
|
disabling a channel means it is no more modified during animation. Default is enabled. NB: this channel must have been added (via registerTransform()....).
Implemented in NL3D::CPlayListUser. |
|
Get the animation of a slot. Default value is empty.
Implemented in NL3D::CPlayListUser. |
|
Get animation end weight. Default value is 1.f.
Implemented in NL3D::CPlayListUser. |
|
Convert a playlist global time in local time in a slot animation including wrap evaluation.
Implemented in NL3D::CPlayListUser. |
|
Compute weight of a slot at a given global playlist time
Implemented in NL3D::CPlayListUser. |
|
Get the skeleton weight of a slot. Default value is empty.
Implemented in NL3D::CPlayListUser. |
|
Get animation speed factor. Default value is 1.f.
Implemented in NL3D::CPlayListUser. |
|
Get animation start weight. Default value is 1.f.
Implemented in NL3D::CPlayListUser. |
|
Get animation time origin, ie, the time in the playlist for which slot time is the startTime of the slot animation. Default value is 0.f.
Implemented in NL3D::CPlayListUser. |
|
Get weight smoothness. This is the smoothness of the weight interpolation. Must be between 0.f and 1.f. 0.f is a sharp interpolation (linear), 1.f is a smooth interpolation (quadratic). Default value is 0.f.
Implemented in NL3D::CPlayListUser. |
|
Get the wrap mode in use in the play list. Wrap mode tells the play list how to use an animation when current time is not in the animation.
Implemented in NL3D::CPlayListUser. |
|
see enableChannel(). return false if channel do not exist... NB: this channel must have been added (via registerTransform()....).
Implemented in NL3D::CPlayListUser. |
|
register an Animatable object (UTransform, UCamera, UInstance...) to the playlist. Before deleting this Animatable object, you SHOULD UPlayList::resetAllChannels() or delete the playlist from the playlistmanager.
Implemented in NL3D::CPlayListUser. |
|
Reset all channels so that no more Animatable object (Transforms etc...) are linked to this PLayList. Hence, the playlist has no effect on anything. Implemented in NL3D::CPlayListUser. |
|
Set the animation of a slot. Default value is empty.
Implemented in NL3D::CPlayListUser. |
|
Set animation end weight. This is the weight for this animation use at the end of the animation slot. Default value is 1.f.
Implemented in NL3D::CPlayListUser. |
|
Set the skeleton weight animation of a slot. Default value is empty.
Implemented in NL3D::CPlayListUser. |
|
Set animation speed factor. Default value is 1.f.
Implemented in NL3D::CPlayListUser. |
|
Set animation start weight. This is the weight for this animation use at the beginning of the animation slot. Default value is 1.f.
Implemented in NL3D::CPlayListUser. |
|
Set animation time origin, ie, the time in the playlist for which slot time is the startTime of the slot animation. Default value is 0.f.
Implemented in NL3D::CPlayListUser. |
|
Setup a constant animation weight. NB: this is equivalent as following code:
Implemented in NL3D::CPlayListUser. |
|
Set weight smoothness. This is the smoothness of the weight interpolation. Must be between 0.f and 1.f. 0.f is a sharp interpolation (linear), 1.f is a smooth interpolation (quadratic). Default value is 0.f.
Implemented in NL3D::CPlayListUser. |
|
Set the wrap mode to use in the play list. Wrap mode tells the play list how to use an animation when current time is not in the animation.
Implemented in NL3D::CPlayListUser. |