LLMotion Class Reference

#include <llmotion.h>

Inheritance diagram for LLMotion:

Inheritance graph
[legend]
Collaboration diagram for LLMotion:

Collaboration graph
[legend]

List of all members.

Public Types

enum  LLMotionBlendType { NORMAL_BLEND, ADDITIVE_BLEND }
enum  LLMotionInitStatus { STATUS_FAILURE, STATUS_SUCCESS, STATUS_HOLD }

Public Member Functions

 LLMotion (const LLUUID &id)
virtual ~LLMotion ()
const std::string & getName () const
void setName (const std::string &name)
const LLUUIDgetID () const
virtual LLPosegetPose ()
void fadeOut ()
void fadeIn ()
F32 getFadeWeight () const
F32 getStopTime () const
virtual void setStopTime (F32 time)
BOOL isStopped () const
void setStopped (BOOL stopped)
BOOL isBlending ()
void activate ()
void deactivate ()
BOOL isActive ()
virtual BOOL getLoop ()=0
virtual F32 getDuration ()=0
virtual F32 getEaseInDuration ()=0
virtual F32 getEaseOutDuration ()=0
virtual LLJoint::JointPriority getPriority ()=0
virtual LLMotionBlendType getBlendType ()=0
virtual F32 getMinPixelArea ()=0
virtual LLMotionInitStatus onInitialize (LLCharacter *character)=0
virtual BOOL onUpdate (F32 activeTime, U8 *joint_mask)=0
virtual void onDeactivate ()=0
virtual BOOL canDeprecate ()
void setDeactivateCallback (void(*cb)(void *), void *userdata)

Static Public Member Functions

static LLMotioncreate (const LLUUID &id)

Public Attributes

std::string mName
LLUUID mID
F32 mActivationTimestamp
F32 mStopTimestamp
F32 mSendStopTimestamp
F32 mResidualWeight
F32 mFadeWeight
U8 mJointSignature [3][LL_CHARACTER_MAX_JOINTS]
void(* mDeactivateCallback )(void *data)
void * mDeactivateCallbackUserData

Protected Member Functions

virtual BOOL onActivate ()=0
void addJointState (const LLPointer< LLJointState > &jointState)

Protected Attributes

LLPose mPose
BOOL mStopped
BOOL mActive


Detailed Description

Definition at line 49 of file llmotion.h.


Member Enumeration Documentation

Enumerator:
NORMAL_BLEND 
ADDITIVE_BLEND 

Definition at line 52 of file llmotion.h.

Enumerator:
STATUS_FAILURE 
STATUS_SUCCESS 
STATUS_HOLD 

Definition at line 58 of file llmotion.h.


Constructor & Destructor Documentation

LLMotion::LLMotion ( const LLUUID id  ) 

Definition at line 50 of file llmotion.cpp.

References i, LL_CHARACTER_MAX_JOINTS, and mJointSignature.

LLMotion::~LLMotion (  )  [virtual]

Definition at line 70 of file llmotion.cpp.


Member Function Documentation

static LLMotion* LLMotion::create ( const LLUUID id  )  [inline, static]

const std::string& LLMotion::getName (  )  const [inline]

void LLMotion::setName ( const std::string &  name  )  [inline]

Definition at line 84 of file llmotion.h.

References mName.

Referenced by LLKeyframeMotionParam::addKeyframeMotion(), LLMotionController::createMotion(), LLFloaterAnimPreview::onCommitName(), and LLFloaterAnimPreview::postBuild().

Here is the caller graph for this function:

const LLUUID& LLMotion::getID (  )  const [inline]

virtual LLPose* LLMotion::getPose (  )  [inline, virtual]

Reimplemented in LLKeyframeMotionParam.

Definition at line 89 of file llmotion.h.

References mPose.

Referenced by LLMotionController::activateMotionInstance(), LLPoseBlender::addMotion(), LLKeyframeStandMotion::onInitialize(), and LLMotionController::updateMotionsByType().

Here is the caller graph for this function:

void LLMotion::fadeOut (  ) 

Definition at line 77 of file llmotion.cpp.

References LLCriticalDamp::getInterpolant(), lerp(), and mFadeWeight.

Referenced by LLMotionController::updateMotionsByType().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLMotion::fadeIn (  ) 

Definition at line 92 of file llmotion.cpp.

References LLCriticalDamp::getInterpolant(), lerp(), and mFadeWeight.

Referenced by LLMotionController::updateMotionsByType().

Here is the call graph for this function:

Here is the caller graph for this function:

F32 LLMotion::getFadeWeight (  )  const [inline]

Definition at line 95 of file llmotion.h.

References mFadeWeight.

Referenced by LLMotionController::startMotion(), and LLMotionController::updateMotionsByType().

Here is the caller graph for this function:

F32 LLMotion::getStopTime (  )  const [inline]

Definition at line 97 of file llmotion.h.

References mStopTimestamp.

Referenced by LLMotionController::setTimeStep(), LLMotionController::startMotion(), and LLMotionController::updateMotionsByType().

Here is the caller graph for this function:

virtual void LLMotion::setStopTime ( F32  time  )  [inline, virtual]

Reimplemented in LLKeyframeMotion.

Definition at line 99 of file llmotion.h.

References mStopped, mStopTimestamp, and TRUE.

Referenced by LLKeyframeMotion::setStopTime(), LLMotionController::setTimeStep(), and LLMotionController::stopMotionInstance().

Here is the caller graph for this function:

BOOL LLMotion::isStopped (  )  const [inline]

void LLMotion::setStopped ( BOOL  stopped  )  [inline]

Definition at line 103 of file llmotion.h.

References mStopped.

Referenced by LLMotionController::activateMotionInstance(), LLMotionController::setTimeStep(), and LLMotionController::stopMotionInstance().

Here is the caller graph for this function:

BOOL LLMotion::isBlending (  ) 

Definition at line 130 of file llmotion.cpp.

References LLPose::getWeight(), and mPose.

Referenced by LLMotionController::startMotion().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLMotion::activate (  ) 

Definition at line 138 of file llmotion.cpp.

References FALSE, mActive, mStopped, onActivate(), and TRUE.

Referenced by LLMotionController::activateMotionInstance().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLMotion::deactivate (  ) 

Definition at line 148 of file llmotion.cpp.

References FALSE, mActive, mDeactivateCallback, mDeactivateCallbackUserData, mPose, onDeactivate(), and LLPose::setWeight().

Referenced by LLMotionController::deactivateAllMotions(), LLMotionController::deactivateMotionInstance(), and LLMotionController::flushAllMotions().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLMotion::isActive (  )  [inline]

Definition at line 111 of file llmotion.h.

References mActive.

Referenced by LLMotionController::isMotionActive().

Here is the caller graph for this function:

virtual BOOL LLMotion::getLoop (  )  [pure virtual]

virtual F32 LLMotion::getDuration (  )  [pure virtual]

virtual F32 LLMotion::getEaseInDuration (  )  [pure virtual]

virtual F32 LLMotion::getEaseOutDuration (  )  [pure virtual]

virtual LLJoint::JointPriority LLMotion::getPriority (  )  [pure virtual]

virtual LLMotionBlendType LLMotion::getBlendType (  )  [pure virtual]

virtual F32 LLMotion::getMinPixelArea (  )  [pure virtual]

virtual LLMotionInitStatus LLMotion::onInitialize ( LLCharacter character  )  [pure virtual]

virtual BOOL LLMotion::onUpdate ( F32  activeTime,
U8 joint_mask 
) [pure virtual]

virtual void LLMotion::onDeactivate (  )  [pure virtual]

BOOL LLMotion::canDeprecate (  )  [virtual]

Reimplemented in LLHandMotion, and LLEmote.

Definition at line 158 of file llmotion.cpp.

References TRUE.

Referenced by LLMotionController::startMotion().

Here is the caller graph for this function:

void LLMotion::setDeactivateCallback ( void(*)(void *)  cb,
void *  userdata 
)

Definition at line 124 of file llmotion.cpp.

References mDeactivateCallback, and mDeactivateCallbackUserData.

Referenced by LLPreviewAnim::auditionAnim(), LLPreviewAnim::onClose(), and LLPreviewAnim::playAnim().

Here is the caller graph for this function:

virtual BOOL LLMotion::onActivate (  )  [protected, pure virtual]

void LLMotion::addJointState ( const LLPointer< LLJointState > &  jointState  )  [protected]


Member Data Documentation

LLPose LLMotion::mPose [protected]

BOOL LLMotion::mStopped [protected]

Definition at line 170 of file llmotion.h.

Referenced by activate(), isStopped(), LLKeyframeMotion::onUpdate(), setStopped(), and setStopTime().

BOOL LLMotion::mActive [protected]

Definition at line 171 of file llmotion.h.

Referenced by activate(), deactivate(), and isActive().

std::string LLMotion::mName

Definition at line 179 of file llmotion.h.

Referenced by getID(), and LLKeyframeMotion::onInitialize().

Definition at line 185 of file llmotion.h.

Referenced by fadeIn(), fadeOut(), and getFadeWeight().

void(* LLMotion::mDeactivateCallback)(void *data)

Definition at line 188 of file llmotion.h.

Referenced by deactivate(), and setDeactivateCallback().


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:53:56 2008 for SecondLife by  doxygen 1.5.5