LLFloaterAnimPreview Class Reference

#include <llfloateranimpreview.h>

Inheritance diagram for LLFloaterAnimPreview:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterAnimPreview:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLFloaterAnimPreview (const char *filename)
virtual ~LLFloaterAnimPreview ()
BOOL postBuild ()
BOOL handleMouseDown (S32 x, S32 y, MASK mask)
BOOL handleMouseUp (S32 x, S32 y, MASK mask)
BOOL handleHover (S32 x, S32 y, MASK mask)
BOOL handleScrollWheel (S32 x, S32 y, S32 clicks)
void onMouseCaptureLost ()
void refresh ()

Static Public Member Functions

static void onBtnPlay (void *)
static void onBtnStop (void *)
static void setUploadAmount (S32 amount)
static void onSliderMove (LLUICtrl *, void *)
static void onCommitBaseAnim (LLUICtrl *, void *)
static void onCommitLoop (LLUICtrl *, void *)
static void onCommitLoopIn (LLUICtrl *, void *)
static void onCommitLoopOut (LLUICtrl *, void *)
static BOOL validateLoopIn (LLUICtrl *, void *)
static BOOL validateLoopOut (LLUICtrl *, void *)
static void onCommitName (LLUICtrl *, void *)
static void onCommitHandPose (LLUICtrl *, void *)
static void onCommitEmote (LLUICtrl *, void *)
static void onCommitPriority (LLUICtrl *, void *)
static void onCommitEaseIn (LLUICtrl *, void *)
static void onCommitEaseOut (LLUICtrl *, void *)
static BOOL validateEaseIn (LLUICtrl *, void *)
static BOOL validateEaseOut (LLUICtrl *, void *)
static void onBtnOK (void *)
static void onSaveComplete (const LLUUID &asset_uuid, LLAssetType::EType type, void *user_data, S32 status, LLExtStat ext_status)

Protected Member Functions

void draw ()
void resetMotion ()

Protected Attributes

LLPreviewAnimationmAnimPreview
S32 mLastMouseX
S32 mLastMouseY
LLButtonmPlayButton
LLButtonmStopButton
F32 mLastSliderValue
LLRect mPreviewRect
LLRectf mPreviewImageRect
LLAssetID mMotionID
LLTransactionID mTransactionID
BOOL mEnabled
LLAnimPauseRequest mPauseRequest
std::map< LLString, LLUUIDmIDList

Static Protected Attributes

static S32 sUploadAmount = 10

Private Member Functions

void setAnimCallbacks ()


Detailed Description

Definition at line 70 of file llfloateranimpreview.h.


Constructor & Destructor Documentation

LLFloaterAnimPreview::LLFloaterAnimPreview ( const char *  filename  ) 

LLFloaterAnimPreview::~LLFloaterAnimPreview (  )  [virtual]

Definition at line 362 of file llfloateranimpreview.cpp.

References FALSE, mAnimPreview, NULL, and LLView::setEnabled().

Here is the call graph for this function:


Member Function Documentation

BOOL LLFloaterAnimPreview::postBuild ( void   )  [virtual]

Reimplemented from LLFloaterNameDesc.

Definition at line 147 of file llfloateranimpreview.cpp.

References BTN_HEIGHT, LLPanel::childGetValue(), LLPanel::childHide(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetLabelArg(), LLPanel::childSetMaxValue(), LLPanel::childSetMinValue(), LLPanel::childSetValue(), LLCharacter::createMotion(), LLKeyframeMotion::deserialize(), FALSE, gAgent, LLUUID::generate(), LLBBoxLocal::getCenter(), LLViewerCamera::getDefaultFOV(), LLPreviewAnimation::getDummyAvatar(), LLKeyframeMotion::getDuration(), LLBVHLoader::getDuration(), LLKeyframeMotion::getEaseInDuration(), LLKeyframeMotion::getEaseOutDuration(), LLBBoxLocal::getExtent(), LLKeyframeMotion::getHandPose(), LLHandMotion::getHandPoseName(), LLSingleton< LLViewerCamera >::getInstance(), LLKeyframeMotion::getLoop(), LLKeyframeMotion::getLoopIn(), LLKeyframeMotion::getLoopOut(), LLBVHLoader::getOutputSize(), LLKeyframeMotion::getPelvisBBox(), LLKeyframeMotion::getPriority(), LLView::getRect(), LLAgent::getSecureSessionID(), LLBVHLoader::getStatus(), LLUIString::getString(), LLPanel::getString(), LLBVHLoader::isInitialized(), ll_apr_file_open(), ll_apr_file_read(), LL_APR_RB, llendl, llformat(), llinfos, llwarns, LLVector3::magVec(), LLTransactionID::makeAssetID(), mAnimPreview, MAX_ANIM_DURATION, LLFloaterNameDesc::mFilename, LLFloaterNameDesc::mFilenameAndPath, mMotionID, mPlayButton, mPreviewImageRect, mPreviewRect, LLRectBase< Type >::mRight, mStopButton, LLRectBase< Type >::mTop, mTransactionID, NULL, onBtnOK(), onBtnPlay(), onBtnStop(), onCommitName(), LLFloaterNameDesc::postBuild(), PREF_BUTTON_HEIGHT, PREVIEW_CAMERA_DISTANCE, PREVIEW_HPAD, PREVIEW_TEXTURE_HEIGHT, r, refresh(), LLDataPackerBinaryBuffer::reset(), S32, LLBVHLoader::serialize(), LLRectBase< Type >::set(), setAnimCallbacks(), LLUIString::setArg(), LLUICtrl::setCallbackUserData(), LLButton::setClickedCallback(), LLPanel::setDefaultBtn(), LLButton::setDisabledImages(), LLView::setEnabled(), LLButton::setImages(), LLMotion::setName(), LLUUID::setNull(), LLButton::setScaleImage(), LLFloater::setTitle(), LLPreviewAnimation::setZoom(), LLVOAvatar::startMotion(), sUploadAmount, and TRUE.

BOOL LLFloaterAnimPreview::handleMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

BOOL LLFloaterAnimPreview::handleMouseUp ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 453 of file llfloateranimpreview.cpp.

References FALSE, gViewerWindow, LLView::handleMouseUp(), LLViewerWindow::setMouseCapture(), and LLViewerWindow::showCursor().

Here is the call graph for this function:

BOOL LLFloaterAnimPreview::handleHover ( S32  x,
S32  y,
MASK  mask 
) [virtual]

BOOL LLFloaterAnimPreview::handleScrollWheel ( S32  x,
S32  y,
S32  clicks 
) [virtual]

Reimplemented from LLView.

Definition at line 518 of file llfloateranimpreview.cpp.

References mAnimPreview, LLPreviewAnimation::requestUpdate(), TRUE, and LLPreviewAnimation::zoom().

Here is the call graph for this function:

void LLFloaterAnimPreview::onMouseCaptureLost (  )  [virtual]

Reimplemented from LLView.

Definition at line 529 of file llfloateranimpreview.cpp.

References gViewerWindow, and LLViewerWindow::showCursor().

Here is the call graph for this function:

void LLFloaterAnimPreview::refresh (  )  [virtual]

void LLFloaterAnimPreview::onBtnPlay ( void *  user_data  )  [static]

Definition at line 537 of file llfloateranimpreview.cpp.

References LLCharacter::areAnimationsPaused(), LLPreviewAnimation::getDummyAvatar(), LLView::getEnabled(), LLCharacter::isMotionActive(), mAnimPreview, mMotionID, mPauseRequest, LLUUID::notNull(), NULL, LLCharacter::requestPause(), and resetMotion().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterAnimPreview::onBtnStop ( void *  user_data  )  [static]

Definition at line 568 of file llfloateranimpreview.cpp.

References LLSD::asBoolean(), LLSD::asReal(), LLPanel::childGetValue(), FALSE, LLPreviewAnimation::getDummyAvatar(), LLView::getEnabled(), mAnimPreview, mMotionID, LLUUID::notNull(), and LLVOAvatar::stopMotion().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

static void LLFloaterAnimPreview::setUploadAmount ( S32  amount  )  [inline, static]

Definition at line 88 of file llfloateranimpreview.h.

References sUploadAmount.

void LLFloaterAnimPreview::onSliderMove ( LLUICtrl ctrl,
void *  user_data 
) [static]

void LLFloaterAnimPreview::onCommitBaseAnim ( LLUICtrl ctrl,
void *  data 
) [static]

void LLFloaterAnimPreview::onCommitLoop ( LLUICtrl ctrl,
void *  data 
) [static]

void LLFloaterAnimPreview::onCommitLoopIn ( LLUICtrl ctrl,
void *  data 
) [static]

void LLFloaterAnimPreview::onCommitLoopOut ( LLUICtrl ctrl,
void *  data 
) [static]

BOOL LLFloaterAnimPreview::validateLoopIn ( LLUICtrl ctrl,
void *  data 
) [static]

Definition at line 862 of file llfloateranimpreview.cpp.

References LLSD::asReal(), LLPanel::childGetValue(), LLPanel::childSetValue(), FALSE, LLView::getEnabled(), and TRUE.

Referenced by setAnimCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLFloaterAnimPreview::validateLoopOut ( LLUICtrl spin,
void *  data 
) [static]

Definition at line 891 of file llfloateranimpreview.cpp.

References LLSD::asReal(), LLPanel::childGetValue(), LLPanel::childSetValue(), FALSE, LLView::getEnabled(), and TRUE.

Referenced by setAnimCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterAnimPreview::onCommitName ( LLUICtrl ctrl,
void *  data 
) [static]

Definition at line 727 of file llfloateranimpreview.cpp.

References LLSD::asString(), LLPanel::childGetValue(), LLFloaterNameDesc::doCommit(), LLVOAvatar::findMotion(), LLPreviewAnimation::getDummyAvatar(), LLView::getEnabled(), mAnimPreview, mMotionID, and LLMotion::setName().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterAnimPreview::onCommitHandPose ( LLUICtrl ctrl,
void *  data 
) [static]

void LLFloaterAnimPreview::onCommitEmote ( LLUICtrl ctrl,
void *  data 
) [static]

Definition at line 761 of file llfloateranimpreview.cpp.

References LLSD::asString(), LLPanel::childGetValue(), LLVOAvatar::findMotion(), LLPreviewAnimation::getDummyAvatar(), LLView::getEnabled(), mAnimPreview, mIDList, mMotionID, resetMotion(), and LLKeyframeMotion::setEmote().

Referenced by setAnimCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterAnimPreview::onCommitPriority ( LLUICtrl ctrl,
void *  data 
) [static]

Definition at line 776 of file llfloateranimpreview.cpp.

References LLSD::asReal(), LLPanel::childGetValue(), LLVOAvatar::findMotion(), LLPreviewAnimation::getDummyAvatar(), LLView::getEnabled(), llfloor(), mAnimPreview, mMotionID, and LLKeyframeMotion::setPriority().

Referenced by setAnimCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterAnimPreview::onCommitEaseIn ( LLUICtrl ctrl,
void *  data 
) [static]

Definition at line 790 of file llfloateranimpreview.cpp.

References LLSD::asReal(), LLPanel::childGetValue(), LLVOAvatar::findMotion(), LLPreviewAnimation::getDummyAvatar(), LLView::getEnabled(), mAnimPreview, mMotionID, resetMotion(), and LLKeyframeMotion::setEaseIn().

Referenced by setAnimCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterAnimPreview::onCommitEaseOut ( LLUICtrl ctrl,
void *  data 
) [static]

Definition at line 805 of file llfloateranimpreview.cpp.

References LLSD::asReal(), LLPanel::childGetValue(), LLVOAvatar::findMotion(), LLPreviewAnimation::getDummyAvatar(), LLView::getEnabled(), mAnimPreview, mMotionID, resetMotion(), and LLKeyframeMotion::setEaseOut().

Referenced by setAnimCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLFloaterAnimPreview::validateEaseIn ( LLUICtrl spin,
void *  data 
) [static]

BOOL LLFloaterAnimPreview::validateEaseOut ( LLUICtrl spin,
void *  data 
) [static]

void LLFloaterAnimPreview::onBtnOK ( void *  userdata  )  [static]

static void LLFloaterAnimPreview::onSaveComplete ( const LLUUID asset_uuid,
LLAssetType::EType  type,
void *  user_data,
S32  status,
LLExtStat  ext_status 
) [static]

void LLFloaterAnimPreview::setAnimCallbacks (  )  [private]

void LLFloaterAnimPreview::draw ( void   )  [protected, virtual]

void LLFloaterAnimPreview::resetMotion (  )  [protected]


Member Data Documentation

Definition at line 117 of file llfloateranimpreview.h.

Referenced by handleHover(), handleMouseDown(), and LLFloaterAnimPreview().

Definition at line 118 of file llfloateranimpreview.h.

Referenced by handleHover(), handleMouseDown(), and LLFloaterAnimPreview().

Definition at line 119 of file llfloateranimpreview.h.

Referenced by postBuild(), and refresh().

Definition at line 120 of file llfloateranimpreview.h.

Referenced by postBuild(), and refresh().

Definition at line 121 of file llfloateranimpreview.h.

Referenced by LLFloaterAnimPreview(), onSliderMove(), refresh(), and resetMotion().

Definition at line 122 of file llfloateranimpreview.h.

Referenced by handleHover(), handleMouseDown(), and postBuild().

Definition at line 123 of file llfloateranimpreview.h.

Referenced by postBuild().

Definition at line 125 of file llfloateranimpreview.h.

Referenced by onBtnOK(), and postBuild().

Reimplemented from LLView.

Definition at line 126 of file llfloateranimpreview.h.

S32 LLFloaterAnimPreview::sUploadAmount = 10 [static, protected]

Definition at line 131 of file llfloateranimpreview.h.

Referenced by postBuild(), and setUploadAmount().


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

Generated on Fri May 16 08:44:54 2008 for SecondLife by  doxygen 1.5.5