#include <llfloateranimpreview.h>
Inheritance diagram for LLFloaterAnimPreview:
Definition at line 70 of file llfloateranimpreview.h.
LLFloaterAnimPreview::LLFloaterAnimPreview | ( | const char * | filename | ) |
Definition at line 82 of file llfloateranimpreview.cpp.
References ANIM_AGENT_EXPRESS_AFRAID, ANIM_AGENT_EXPRESS_ANGER, ANIM_AGENT_EXPRESS_BORED, ANIM_AGENT_EXPRESS_CRY, ANIM_AGENT_EXPRESS_DISDAIN, ANIM_AGENT_EXPRESS_EMBARRASSED, ANIM_AGENT_EXPRESS_FROWN, ANIM_AGENT_EXPRESS_KISS, ANIM_AGENT_EXPRESS_LAUGH, ANIM_AGENT_EXPRESS_OPEN_MOUTH, ANIM_AGENT_EXPRESS_REPULSED, ANIM_AGENT_EXPRESS_SAD, ANIM_AGENT_EXPRESS_SHRUG, ANIM_AGENT_EXPRESS_SMILE, ANIM_AGENT_EXPRESS_SURPRISE, ANIM_AGENT_EXPRESS_TONGUE_OUT, ANIM_AGENT_EXPRESS_TOOTHSMILE, ANIM_AGENT_EXPRESS_WINK, ANIM_AGENT_EXPRESS_WORRY, ANIM_AGENT_FEMALE_WALK, ANIM_AGENT_HOVER, ANIM_AGENT_SIT_FEMALE, ANIM_AGENT_STAND, mIDList, mLastMouseX, mLastMouseY, mLastSliderValue, and LLUUID::null.
LLFloaterAnimPreview::~LLFloaterAnimPreview | ( | ) | [virtual] |
Definition at line 335 of file llfloateranimpreview.cpp.
References FALSE, mAnimPreview, mEnabled, and NULL.
void LLFloaterAnimPreview::draw | ( | ) | [protected, virtual] |
Reimplemented from LLFloater.
Definition at line 346 of file llfloateranimpreview.cpp.
References LLCharacter::areAnimationsPaused(), LLDynamicTexture::bindTexture(), LLFloater::draw(), f, LLPreviewAnimation::getDummyAvatar(), LLView::getRect(), glBegin, glEnd, mAnimPreview, mMotionID, LLUUID::notNull(), PREF_BUTTON_HEIGHT, PREVIEW_HPAD, PREVIEW_TEXTURE_HEIGHT, r, refresh(), LLPreviewAnimation::requestUpdate(), and LLDynamicTexture::unbindTexture().
Reimplemented from LLView.
Definition at line 436 of file llfloateranimpreview.cpp.
References f, gViewerWindow, LLView::handleHover(), LLView::hasMouseCapture(), mAnimPreview, MASK_ALT, MASK_ORBIT, MASK_PAN, mLastMouseX, mLastMouseY, mPreviewRect, LLPreviewAnimation::pan(), LLRectBase< Type >::pointInRect(), LLPreviewAnimation::requestUpdate(), LLPreviewAnimation::rotate(), LLViewerWindow::setCursor(), LLUI::setCursorPositionLocal(), TRUE, UI_CURSOR_TOOLCAMERA, UI_CURSOR_TOOLPAN, UI_CURSOR_TOOLZOOMIN, and LLPreviewAnimation::zoom().
Reimplemented from LLFloater.
Definition at line 408 of file llfloateranimpreview.cpp.
References LLFloater::bringToFront(), gViewerWindow, LLFloater::handleMouseDown(), LLViewerWindow::hideCursor(), mLastMouseX, mLastMouseY, mPreviewRect, LLRectBase< Type >::pointInRect(), LLViewerWindow::setMouseCapture(), and TRUE.
Reimplemented from LLView.
Definition at line 426 of file llfloateranimpreview.cpp.
References FALSE, gViewerWindow, LLView::handleMouseUp(), LLViewerWindow::setMouseCapture(), and LLViewerWindow::showCursor().
Reimplemented from LLView.
Definition at line 491 of file llfloateranimpreview.cpp.
References f, mAnimPreview, LLPreviewAnimation::requestUpdate(), TRUE, and LLPreviewAnimation::zoom().
Reimplemented from LLFloaterNameDesc.
Definition at line 950 of file llfloateranimpreview.cpp.
References LLViewerWindow::alertXml(), LLVFile::APPEND, LLSD::asString(), LLAssetType::AT_ANIMATION, LLAssetType::AT_NONE, LLPanel::childGetValue(), LLFloater::close(), LLVOAvatar::findMotion(), LLDataPackerBinaryBuffer::getCurrentSize(), LLPreviewAnimation::getDummyAvatar(), LLKeyframeMotion::getFileSize(), LLMotion::getID(), gVFS, gViewerWindow, LLInventoryType::IT_ANIMATION, llendl, llwarns, mAnimPreview, mEnabled, mMotionID, mTransactionID, PERM_NONE, LLKeyframeDataCache::removeKeyframeData(), LLCharacter::removeMotion(), S32, LLKeyframeMotion::serialize(), size, and upload_new_resource().
Referenced by postBuild().
Definition at line 510 of file llfloateranimpreview.cpp.
References LLPreviewAnimation::getDummyAvatar(), mAnimPreview, mEnabled, mMotionID, mPauseRequest, LLUUID::notNull(), NULL, and resetMotion().
Referenced by postBuild().
Definition at line 541 of file llfloateranimpreview.cpp.
References LLSD::asBoolean(), LLSD::asReal(), LLPanel::childGetValue(), FALSE, LLPreviewAnimation::getDummyAvatar(), mAnimPreview, mEnabled, mMotionID, LLUUID::notNull(), and LLVOAvatar::stopMotion().
Referenced by postBuild().
Definition at line 611 of file llfloateranimpreview.cpp.
References ANIM_AGENT_HOVER, ANIM_AGENT_SIT, ANIM_AGENT_STAND, ANIM_AGENT_WALK, LLCharacter::areAnimationsPaused(), LLPreviewAnimation::getDummyAvatar(), mAnimPreview, mEnabled, mPauseRequest, NULL, resetMotion(), LLVOAvatar::stopMotion(), and TRUE.
Referenced by postBuild().
Definition at line 763 of file llfloateranimpreview.cpp.
References LLSD::asReal(), LLPanel::childGetValue(), LLVOAvatar::findMotion(), LLPreviewAnimation::getDummyAvatar(), mAnimPreview, mEnabled, mMotionID, resetMotion(), and LLKeyframeMotion::setEaseIn().
Referenced by postBuild().
Definition at line 778 of file llfloateranimpreview.cpp.
References LLSD::asReal(), LLPanel::childGetValue(), LLVOAvatar::findMotion(), LLPreviewAnimation::getDummyAvatar(), mAnimPreview, mEnabled, mMotionID, resetMotion(), and LLKeyframeMotion::setEaseOut().
Referenced by postBuild().
Definition at line 734 of file llfloateranimpreview.cpp.
References LLSD::asString(), LLPanel::childGetValue(), LLVOAvatar::findMotion(), LLPreviewAnimation::getDummyAvatar(), mAnimPreview, mEnabled, mIDList, mMotionID, resetMotion(), and LLKeyframeMotion::setEmote().
Referenced by postBuild().
Definition at line 719 of file llfloateranimpreview.cpp.
References LLSD::asString(), LLPanel::childGetValue(), LLVOAvatar::findMotion(), LLPreviewAnimation::getDummyAvatar(), LLHandMotion::getHandPose(), mAnimPreview, mEnabled, mMotionID, resetMotion(), and LLKeyframeMotion::setHandPose().
Referenced by postBuild().
Definition at line 641 of file llfloateranimpreview.cpp.
References LLSD::asBoolean(), LLSD::asReal(), LLPanel::childGetValue(), LLVOAvatar::findMotion(), LLPreviewAnimation::getDummyAvatar(), LLKeyframeMotion::getDuration(), mAnimPreview, mEnabled, mMotionID, LLKeyframeMotion::setLoop(), LLKeyframeMotion::setLoopIn(), and LLKeyframeMotion::setLoopOut().
Referenced by onCommitLoopIn(), onCommitLoopOut(), and postBuild().
Definition at line 660 of file llfloateranimpreview.cpp.
References LLSD::asReal(), LLPanel::childGetValue(), LLPanel::childSetValue(), LLVOAvatar::findMotion(), LLPreviewAnimation::getDummyAvatar(), mAnimPreview, mEnabled, mMotionID, onCommitLoop(), resetMotion(), LLKeyframeMotion::setLoopIn(), and TRUE.
Referenced by postBuild().
Definition at line 680 of file llfloateranimpreview.cpp.
References LLSD::asReal(), LLPanel::childGetValue(), LLPanel::childSetValue(), LLVOAvatar::findMotion(), LLPreviewAnimation::getDummyAvatar(), LLKeyframeMotion::getDuration(), mAnimPreview, mEnabled, mMotionID, onCommitLoop(), resetMotion(), LLKeyframeMotion::setLoopOut(), and TRUE.
Referenced by postBuild().
Definition at line 700 of file llfloateranimpreview.cpp.
References LLSD::asString(), LLPanel::childGetValue(), LLFloaterNameDesc::doCommit(), LLVOAvatar::findMotion(), LLPreviewAnimation::getDummyAvatar(), mAnimPreview, mEnabled, mMotionID, and LLMotion::setName().
Referenced by postBuild().
Definition at line 749 of file llfloateranimpreview.cpp.
References LLSD::asReal(), LLPanel::childGetValue(), LLVOAvatar::findMotion(), LLPreviewAnimation::getDummyAvatar(), llfloor(), mAnimPreview, mEnabled, mMotionID, and LLKeyframeMotion::setPriority().
Referenced by postBuild().
void LLFloaterAnimPreview::onMouseCaptureLost | ( | ) | [virtual] |
Reimplemented from LLView.
Definition at line 502 of file llfloateranimpreview.cpp.
References gViewerWindow, and LLViewerWindow::showCursor().
static void LLFloaterAnimPreview::onSaveComplete | ( | const LLUUID & | asset_uuid, | |
LLAssetType::EType | type, | |||
void * | user_data, | |||
S32 | status, | |||
LLExtStat | ext_status | |||
) | [static] |
Definition at line 566 of file llfloateranimpreview.cpp.
References LLSD::asReal(), LLSD::asString(), LLPanel::childGetValue(), F32_MIN, LLVOAvatar::findMotion(), LLPreviewAnimation::getDummyAvatar(), LLMotion::getDuration(), LLCharacter::isMotionActive(), LLMotion::mActivationTimestamp, mAnimPreview, mEnabled, mIDList, mLastSliderValue, mMotionID, mPauseRequest, LLMotion::mSendStopTimestamp, LLMotion::mStopTimestamp, refresh(), LLCharacter::requestPause(), and resetMotion().
Referenced by postBuild().
BOOL LLFloaterAnimPreview::postBuild | ( | ) | [virtual] |
Reimplemented from LLFloaterNameDesc.
Definition at line 119 of file llfloateranimpreview.cpp.
References BTN_HEIGHT, LLPanel::childGetText(), LLPanel::childGetValue(), LLPanel::childHide(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetLabelArg(), LLPanel::childSetMaxValue(), LLPanel::childSetMinValue(), LLPanel::childSetValidate(), LLPanel::childSetValue(), LLCharacter::createMotion(), LLKeyframeMotion::deserialize(), f, FALSE, gAgent, gCamera, LLUUID::generate(), LLUICtrlFactory::getButtonByName(), LLBBoxLocal::getCenter(), LLViewerCamera::getDefaultFOV(), LLPreviewAnimation::getDummyAvatar(), LLKeyframeMotion::getDuration(), LLBVHLoader::getDuration(), LLKeyframeMotion::getEaseInDuration(), LLKeyframeMotion::getEaseOutDuration(), LLBBoxLocal::getExtent(), LLKeyframeMotion::getHandPose(), LLHandMotion::getHandPoseName(), LLKeyframeMotion::getLoop(), LLKeyframeMotion::getLoopIn(), LLKeyframeMotion::getLoopOut(), LLBVHLoader::getOutputSize(), LLKeyframeMotion::getPelvisBBox(), LLKeyframeMotion::getPriority(), LLView::getRect(), LLAgent::getSecureSessionID(), LLBVHLoader::getStatus(), LLUIString::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, mEnabled, LLFloaterNameDesc::mFilename, LLFloaterNameDesc::mFilenameAndPath, mMotionID, mPlayButton, mPreviewImageRect, mPreviewRect, mStopButton, LLRectBase< Type >::mTop, mTransactionID, NULL, onBtnOK(), onBtnPlay(), onBtnStop(), onCommitBaseAnim(), onCommitEaseIn(), onCommitEaseOut(), onCommitEmote(), onCommitHandPose(), onCommitLoop(), onCommitLoopIn(), onCommitLoopOut(), onCommitName(), onCommitPriority(), onSliderMove(), LLFloaterNameDesc::postBuild(), PREF_BUTTON_HEIGHT, PREVIEW_CAMERA_DISTANCE, PREVIEW_HPAD, PREVIEW_TEXTURE_HEIGHT, r, refresh(), LLDataPackerBinaryBuffer::reset(), S32, LLBVHLoader::serialize(), LLRectBase< Type >::set(), LLUIString::setArg(), LLUICtrl::setCallbackUserData(), LLButton::setClickedCallback(), LLPanel::setDefaultBtn(), LLButton::setDisabledImages(), LLButton::setFixedBorder(), LLButton::setImages(), LLMotion::setName(), LLUUID::setNull(), LLButton::setScaleImage(), LLFloater::setTitle(), LLPreviewAnimation::setZoom(), LLVOAvatar::startMotion(), sUploadAmount, TRUE, validateEaseIn(), validateEaseOut(), validateLoopIn(), validateLoopOut(), and y.
void LLFloaterAnimPreview::refresh | ( | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 894 of file llfloateranimpreview.cpp.
References LLCharacter::areAnimationsPaused(), LLPanel::childDisable(), LLPanel::childEnable(), LLPanel::childHide(), LLPanel::childSetValue(), LLPanel::childShow(), FALSE, LLVOAvatar::findMotion(), LLPreviewAnimation::getDummyAvatar(), LLKeyframeMotion::getDuration(), LLKeyframeMotion::getLastUpdateTime(), LLCharacter::isMotionActive(), mAnimPreview, mLastSliderValue, mMotionID, mPauseRequest, mPlayButton, mStopButton, LLCharacter::requestPause(), LLPreviewAnimation::requestUpdate(), LLView::setEnabled(), LLButton::setImages(), and TRUE.
Referenced by draw(), onSliderMove(), and postBuild().
void LLFloaterAnimPreview::resetMotion | ( | ) | [protected] |
Definition at line 384 of file llfloateranimpreview.cpp.
References LLCharacter::areAnimationsPaused(), LLSD::asString(), LLPanel::childGetValue(), LLPanel::childSetValue(), f, LLPreviewAnimation::getDummyAvatar(), mAnimPreview, mIDList, mLastSliderValue, mMotionID, mPauseRequest, NULL, LLCharacter::requestPause(), LLVOAvatar::startMotion(), LLVOAvatar::stopMotion(), and TRUE.
Referenced by onBtnPlay(), onCommitBaseAnim(), onCommitEaseIn(), onCommitEaseOut(), onCommitEmote(), onCommitHandPose(), onCommitLoopIn(), onCommitLoopOut(), and onSliderMove().
Definition at line 793 of file llfloateranimpreview.cpp.
References LLSD::asReal(), LLPanel::childGetValue(), LLPanel::childSetValue(), FALSE, LLVOAvatar::findMotion(), LLPreviewAnimation::getDummyAvatar(), LLKeyframeMotion::getDuration(), LLKeyframeMotion::getEaseOutDuration(), LLKeyframeMotion::getLoop(), llclamp(), mAnimPreview, mEnabled, mMotionID, and TRUE.
Referenced by postBuild().
Definition at line 814 of file llfloateranimpreview.cpp.
References LLSD::asReal(), LLPanel::childGetValue(), LLPanel::childSetValue(), FALSE, LLVOAvatar::findMotion(), LLPreviewAnimation::getDummyAvatar(), LLKeyframeMotion::getDuration(), LLKeyframeMotion::getEaseInDuration(), LLKeyframeMotion::getLoop(), llclamp(), mAnimPreview, mEnabled, mMotionID, and TRUE.
Referenced by postBuild().
Definition at line 835 of file llfloateranimpreview.cpp.
References LLSD::asReal(), LLPanel::childGetValue(), LLPanel::childSetValue(), f, FALSE, mEnabled, and TRUE.
Referenced by postBuild().
Definition at line 864 of file llfloateranimpreview.cpp.
References LLSD::asReal(), LLPanel::childGetValue(), LLPanel::childSetValue(), f, FALSE, mEnabled, and TRUE.
Referenced by postBuild().
LLPreviewAnimation* LLFloaterAnimPreview::mAnimPreview [protected] |
Definition at line 113 of file llfloateranimpreview.h.
Referenced by draw(), handleHover(), handleScrollWheel(), onBtnOK(), onBtnPlay(), onBtnStop(), onCommitBaseAnim(), onCommitEaseIn(), onCommitEaseOut(), onCommitEmote(), onCommitHandPose(), onCommitLoop(), onCommitLoopIn(), onCommitLoopOut(), onCommitName(), onCommitPriority(), onSliderMove(), postBuild(), refresh(), resetMotion(), validateEaseIn(), validateEaseOut(), and ~LLFloaterAnimPreview().
BOOL LLFloaterAnimPreview::mEnabled [protected] |
Reimplemented from LLView.
Definition at line 123 of file llfloateranimpreview.h.
Referenced by onBtnOK(), onBtnPlay(), onBtnStop(), onCommitBaseAnim(), onCommitEaseIn(), onCommitEaseOut(), onCommitEmote(), onCommitHandPose(), onCommitLoop(), onCommitLoopIn(), onCommitLoopOut(), onCommitName(), onCommitPriority(), onSliderMove(), postBuild(), validateEaseIn(), validateEaseOut(), validateLoopIn(), validateLoopOut(), and ~LLFloaterAnimPreview().
std::map<LLString, LLUUID> LLFloaterAnimPreview::mIDList [protected] |
Definition at line 126 of file llfloateranimpreview.h.
Referenced by LLFloaterAnimPreview(), onCommitEmote(), onSliderMove(), and resetMotion().
S32 LLFloaterAnimPreview::mLastMouseX [protected] |
Definition at line 114 of file llfloateranimpreview.h.
Referenced by handleHover(), handleMouseDown(), and LLFloaterAnimPreview().
S32 LLFloaterAnimPreview::mLastMouseY [protected] |
Definition at line 115 of file llfloateranimpreview.h.
Referenced by handleHover(), handleMouseDown(), and LLFloaterAnimPreview().
F32 LLFloaterAnimPreview::mLastSliderValue [protected] |
Definition at line 118 of file llfloateranimpreview.h.
Referenced by LLFloaterAnimPreview(), onSliderMove(), refresh(), and resetMotion().
LLAssetID LLFloaterAnimPreview::mMotionID [protected] |
Definition at line 121 of file llfloateranimpreview.h.
Referenced by draw(), onBtnOK(), onBtnPlay(), onBtnStop(), onCommitEaseIn(), onCommitEaseOut(), onCommitEmote(), onCommitHandPose(), onCommitLoop(), onCommitLoopIn(), onCommitLoopOut(), onCommitName(), onCommitPriority(), onSliderMove(), postBuild(), refresh(), resetMotion(), validateEaseIn(), and validateEaseOut().
Definition at line 124 of file llfloateranimpreview.h.
Referenced by onBtnPlay(), onCommitBaseAnim(), onSliderMove(), refresh(), and resetMotion().
LLButton* LLFloaterAnimPreview::mPlayButton [protected] |
LLRectf LLFloaterAnimPreview::mPreviewImageRect [protected] |
LLRect LLFloaterAnimPreview::mPreviewRect [protected] |
Definition at line 119 of file llfloateranimpreview.h.
Referenced by handleHover(), handleMouseDown(), and postBuild().
LLButton* LLFloaterAnimPreview::mStopButton [protected] |
LLTransactionID LLFloaterAnimPreview::mTransactionID [protected] |
S32 LLFloaterAnimPreview::sUploadAmount = 10 [static, protected] |
Definition at line 128 of file llfloateranimpreview.h.
Referenced by postBuild(), and setUploadAmount().