|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::CPlayListUser Class ReferenceUPlayList implementation.
More...
#include <play_list_user.h>
Inheritance diagram for NL3D::CPlayListUser:
List of all members.
Public Methods |
| CPlayListUser (NLMISC::CSmartPtr< CAnimationSet > animationSet) |
| Constructor. More...
|
void | evalPlayList (double playTime) |
| Tool function. setup the mixer, and eval global channels. More...
|
|
virtual void | registerTransform (UTransform *object, const char *prefix) |
| register an Animatable object (UTransform, UCamera, UInstance...) to the playlist. More...
|
virtual void | resetAllChannels () |
| Reset all channels so that no more Animatable object (Transforms etc...) are linked to this PLayList. More...
|
|
virtual void | emptyPlayList () |
| Empty the playlist. More...
|
virtual void | setAnimation (uint8 slot, uint animation) |
| Set the animation of a slot. More...
|
virtual uint | getAnimation (uint8 slot) const |
| Get the animation of a slot. More...
|
|
virtual void | setTimeOrigin (uint8 slot, TGlobalAnimationTime timeOrigin) |
| Set animation time origin, ie, the time in the playlist for which slot time is the startTime of the slot animation. More...
|
virtual TGlobalAnimationTime | getTimeOrigin (uint8 slot) const |
| Get animation time origin, ie, the time in the playlist for which slot time is the startTime of the slot animation. More...
|
virtual void | setSpeedFactor (uint8 slot, float speedFactor) |
| Set animation speed factor. More...
|
virtual float | getSpeedFactor (uint8 slot) const |
| Get animation speed factor. More...
|
virtual void | setWrapMode (uint8 slot, TWrapMode wrapMode) |
| Set the wrap mode to use in the play list. More...
|
virtual TWrapMode | getWrapMode (uint8 slot) const |
| Get the wrap mode in use in the play list. More...
|
|
virtual void | setStartWeight (uint8 slot, float startWeight, TGlobalAnimationTime time) |
| Set animation start weight. More...
|
virtual float | getStartWeight (uint8 slot, TGlobalAnimationTime &time) const |
| Get animation start weight. More...
|
virtual void | setEndWeight (uint8 slot, float endWeight, TGlobalAnimationTime time) |
| Set animation end weight. More...
|
virtual float | getEndWeight (uint8 slot, TGlobalAnimationTime &time) const |
| Get animation end weight. More...
|
virtual void | setWeightSmoothness (uint8 slot, float smoothness) |
| Set weight smoothness. More...
|
virtual float | getWeightSmoothness (uint8 slot) const |
| Get weight smoothness. More...
|
virtual void | setWeight (uint8 slot, float weight) |
| Setup a constant animation weight. More...
|
virtual TAnimationTime | getLocalTime (uint8 slot, TGlobalAnimationTime globalTime, const UAnimationSet &animSet) const |
| Convert a playlist global time in local time in a slot animation including wrap evaluation. More...
|
virtual float | getLocalWeight (uint8 slot, TGlobalAnimationTime globalTime) const |
| Compute weight of a slot at a given global playlist time. More...
|
|
virtual void | setSkeletonWeight (uint8 slot, uint skeletonId, bool inverted=false) |
| Set the skeleton weight animation of a slot. More...
|
virtual uint | getSkeletonWeight (uint8 slot, bool &inverted) const |
| Get the skeleton weight of a slot. More...
|
|
virtual void | enableChannel (uint channelId, bool enable) |
| disabling a channel means it is no more modified during animation. More...
|
virtual bool | isChannelEnabled (uint channelId) const |
| see enableChannel(). More...
|
Private Attributes |
CAnimationPlaylist | _PlayList |
CChannelMixer | _ChannelMixer |
NLMISC::CSmartPtr< CAnimationSet > | _AnimationSet |
Friends |
class | CPlayListManagerUser |
Detailed Description
UPlayList implementation.
Basicly, this is a playlist, plus a ChannelMixer. -
Author:
-
Lionel Berenguier , Nevrax France
-
Date:
-
2001
Definition at line 50 of file play_list_user.h.
Constructor & Destructor Documentation
Member Function Documentation
void NL3D::CPlayListUser::emptyPlayList |
( |
|
) |
[virtual] |
|
void NL3D::CPlayListUser::enableChannel |
( |
uint |
channelId, |
|
|
bool |
enable |
|
) |
[virtual] |
|
void NL3D::CPlayListUser::evalPlayList |
( |
double |
playTime |
) |
|
|
uint NL3D::CPlayListUser::getAnimation |
( |
uint8 |
slot |
) |
const [virtual] |
|
uint NL3D::CPlayListUser::getSkeletonWeight |
( |
uint8 |
slot, |
|
|
bool & |
inverted |
|
) |
const [virtual] |
|
float NL3D::CPlayListUser::getSpeedFactor |
( |
uint8 |
slot |
) |
const [virtual] |
|
float NL3D::CPlayListUser::getWeightSmoothness |
( |
uint8 |
slot |
) |
const [virtual] |
|
|
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. -
Parameters:
-
slot |
is the id of the slot to set. |
-
Returns:
-
the smoothness value.
Implements NL3D::UPlayList.
Definition at line 209 of file play_list_user.cpp.
References _PlayList, NL3D_HAUTO_UI_PLAY_LIST, and NL3D_MEM_PLAYLIST. |
bool NL3D::CPlayListUser::isChannelEnabled |
( |
uint |
channelId |
) |
const [virtual] |
|
void NL3D::CPlayListUser::registerTransform |
( |
UTransform * |
object, |
|
|
const char * |
prefix |
|
) |
[virtual] |
|
void NL3D::CPlayListUser::resetAllChannels |
( |
|
) |
[virtual] |
|
void NL3D::CPlayListUser::setAnimation |
( |
uint8 |
slot, |
|
|
uint |
animation |
|
) |
[virtual] |
|
void NL3D::CPlayListUser::setSkeletonWeight |
( |
uint8 |
slot, |
|
|
uint |
skeletonId, |
|
|
bool |
inverted = false |
|
) |
[virtual] |
|
void NL3D::CPlayListUser::setSpeedFactor |
( |
uint8 |
slot, |
|
|
float |
speedFactor |
|
) |
[virtual] |
|
void NL3D::CPlayListUser::setWeight |
( |
uint8 |
slot, |
|
|
float |
weight |
|
) |
[virtual] |
|
void NL3D::CPlayListUser::setWeightSmoothness |
( |
uint8 |
slot, |
|
|
float |
smoothness |
|
) |
[virtual] |
|
|
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. -
Parameters:
-
slot |
is the id of the slot to set. |
smoothness |
is the smoothness value. |
Implements NL3D::UPlayList.
Definition at line 201 of file play_list_user.cpp.
References _PlayList, NL3D_HAUTO_UI_PLAY_LIST, and NL3D_MEM_PLAYLIST. |
void NL3D::CPlayListUser::setWrapMode |
( |
uint8 |
slot, |
|
|
TWrapMode |
wrapMode |
|
) |
[virtual] |
|
Friends And Related Function Documentation
friend class CPlayListManagerUser [friend]
|
|
Member Data Documentation
|
Definition at line 53 of file play_list_user.h.
Referenced by emptyPlayList, evalPlayList, getAnimation, getEndWeight, getLocalTime, getLocalWeight, getSkeletonWeight, getSpeedFactor, getStartWeight, getTimeOrigin, getWeightSmoothness, getWrapMode, setAnimation, setEndWeight, setSkeletonWeight, setSpeedFactor, setStartWeight, setTimeOrigin, setWeight, setWeightSmoothness, and setWrapMode. |
The documentation for this class was generated from the following files:
|
|