Definition at line 99 of file llfloatersnapshot.cpp.
Definition at line 102 of file llfloatersnapshot.cpp.
LLSnapshotLivePreview::LLSnapshotLivePreview | ( | const LLRect & | rect | ) |
Definition at line 194 of file llfloatersnapshot.cpp.
References FALSE, LLControlGroup::getBOOL(), LLViewerWindow::getWindowDisplayHeight(), LLViewerWindow::getWindowDisplayWidth(), gSavedSettings, gViewerWindow, MAX_IMAGE_SIZE, mHeight, mImageScaled, mKeepAspectRatio, mMaxImageSize, mSnapshotDelayTimer, mThumbnailUpdateLock, mThumbnailUpToDate, mWidth, LLView::setFollowsAll(), LLFrameTimer::setTimerExpirySec(), sList, and LLFrameTimer::start().
LLSnapshotLivePreview::~LLSnapshotLivePreview | ( | ) |
Definition at line 233 of file llfloatersnapshot.cpp.
References mJPEGImage, mRawImage, mRawImageEncoded, NULL, and sList.
void LLSnapshotLivePreview::draw | ( | void | ) | [virtual] |
Reimplemented from LLView.
Definition at line 396 of file llfloatersnapshot.cpp.
References LLGLImmediate::begin(), LLViewerImage::bindTexture(), BORDER_WIDTH, clamp_rescale(), LLGLImmediate::color4f(), LLGLImmediate::color4fv(), LLGLImmediate::end(), FALL_TIME, FALSE, LLFrameTimer::getElapsedTimeF32(), LLRectBase< Type >::getHeight(), LLCriticalDamp::getInterpolant(), LLView::getLocalRect(), LLView::getRect(), LLFrameTimer::getStarted(), LLRectBase< Type >::getWidth(), LLViewerWindow::getWindowHeight(), LLViewerWindow::getWindowWidth(), gGL, gl_drop_shadow(), gl_rect_2d(), gViewerWindow, lerp(), llmin(), llround(), LLRectBase< Type >::mBottom, mCurImageIndex, mFallAnimTimer, mFlashAlpha, mHeight, mImageRect, mImageScaled, LLRectBase< Type >::mLeft, mNeedsFlash, mRawImageEncoded, LLRectBase< Type >::mRight, mShineAnimTimer, mShineCountdown, mSnapshotUpToDate, LLRectBase< Type >::mTop, LLColor4::mV, mViewerImage, mWidth, LLPointer< Type >::notNull(), LLVertexBuffer::QUADS, rescale(), S32, SHINE_OPACITY, SHINE_TIME, SHINE_WIDTH, LLFrameTimer::start(), LLFrameTimer::stop(), LLRectBase< Type >::stretch(), LLGLImmediate::texCoord2f(), and LLGLImmediate::vertex2i().
Reimplemented from LLView.
Definition at line 580 of file llfloatersnapshot.cpp.
References FALSE, LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), LLView::reshape(), TRUE, and updateSnapshot().
Definition at line 857 of file llfloatersnapshot.cpp.
References mCurImageIndex, mHeight, and mWidth.
Referenced by LLFloaterSnapshot::Impl::onClickKeepAspectCheck(), LLFloaterSnapshot::Impl::onCommitCustomResolution(), LLFloaterSnapshot::Impl::onCommitResolution(), and LLFloaterSnapshot::Impl::updateLayout().
Definition at line 863 of file llfloatersnapshot.cpp.
References mCurImageIndex, mHeight, and mWidth.
Referenced by LLFloaterSnapshot::Impl::onClickKeepAspectCheck(), LLFloaterSnapshot::Impl::onCommitCustomResolution(), and LLFloaterSnapshot::Impl::onCommitResolution().
S32 LLSnapshotLivePreview::getDataSize | ( | ) | const [inline] |
Definition at line 117 of file llfloatersnapshot.cpp.
References mDataSize.
Referenced by LLFloaterSnapshot::draw().
void LLSnapshotLivePreview::setMaxImageSize | ( | S32 | size | ) |
Definition at line 244 of file llfloatersnapshot.cpp.
References MAX_IMAGE_SIZE, and mMaxImageSize.
Referenced by LLFloaterSnapshot::Impl::onCommitCustomResolution().
S32 LLSnapshotLivePreview::getMaxImageSize | ( | ) | [inline] |
Definition at line 119 of file llfloatersnapshot.cpp.
References mMaxImageSize.
Referenced by LLFloaterSnapshot::Impl::onClickKeepAspectCheck(), LLFloaterSnapshot::Impl::onCommitCustomResolution(), LLFloaterSnapshot::Impl::onCommitResolution(), and onIdle().
ESnapshotType LLSnapshotLivePreview::getSnapshotType | ( | ) | const [inline] |
Definition at line 121 of file llfloatersnapshot.cpp.
References mSnapshotType.
Referenced by LLFloaterSnapshot::draw(), LLFloaterSnapshot::Impl::onClickKeep(), and onIdle().
BOOL LLSnapshotLivePreview::getSnapshotUpToDate | ( | ) | const [inline] |
Definition at line 122 of file llfloatersnapshot.cpp.
References mSnapshotUpToDate.
Referenced by LLFloaterSnapshot::draw().
BOOL LLSnapshotLivePreview::isSnapshotActive | ( | ) | [inline] |
Definition at line 123 of file llfloatersnapshot.cpp.
References mSnapshotActive.
Referenced by LLFloaterSnapshot::draw().
LLImageGL* LLSnapshotLivePreview::getThumbnailImage | ( | ) | const [inline] |
Definition at line 124 of file llfloatersnapshot.cpp.
References mThumbnailImage.
Referenced by LLFloaterSnapshot::draw().
S32 LLSnapshotLivePreview::getThumbnailWidth | ( | ) | const [inline] |
Definition at line 125 of file llfloatersnapshot.cpp.
References mThumbnailWidth.
Referenced by LLFloaterSnapshot::draw().
S32 LLSnapshotLivePreview::getThumbnailHeight | ( | ) | const [inline] |
Definition at line 126 of file llfloatersnapshot.cpp.
References mThumbnailHeight.
Referenced by LLFloaterSnapshot::draw().
BOOL LLSnapshotLivePreview::getThumbnailLock | ( | ) | const [inline] |
Definition at line 127 of file llfloatersnapshot.cpp.
References mThumbnailUpdateLock.
Referenced by LLFloaterSnapshot::draw().
BOOL LLSnapshotLivePreview::getThumbnailUpToDate | ( | ) | const [inline] |
Definition at line 128 of file llfloatersnapshot.cpp.
References mThumbnailUpToDate.
Referenced by onIdle().
LLImageGL * LLSnapshotLivePreview::getCurrentImage | ( | ) |
Definition at line 256 of file llfloatersnapshot.cpp.
References mCurImageIndex, and mViewerImage.
Referenced by savePostcard().
F32 LLSnapshotLivePreview::getImageAspect | ( | ) |
Definition at line 276 of file llfloatersnapshot.cpp.
References getAspect(), mCurImageIndex, and mViewerImage.
F32 LLSnapshotLivePreview::getAspect | ( | ) |
Definition at line 261 of file llfloatersnapshot.cpp.
References LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), mCurImageIndex, mHeight, mKeepAspectRatio, and mWidth.
Referenced by getImageAspect().
LLRect LLSnapshotLivePreview::getImageRect | ( | ) |
BOOL LLSnapshotLivePreview::isImageScaled | ( | ) |
Definition at line 291 of file llfloatersnapshot.cpp.
References mCurImageIndex, and mImageScaled.
Referenced by savePostcard().
void LLSnapshotLivePreview::setSnapshotType | ( | ESnapshotType | type | ) | [inline] |
Definition at line 135 of file llfloatersnapshot.cpp.
References mSnapshotType.
Referenced by LLFloaterSnapshot::Impl::updateControls().
void LLSnapshotLivePreview::setSnapshotQuality | ( | S32 | quality | ) |
Definition at line 348 of file llfloatersnapshot.cpp.
References gSavedSettings, mSnapshotQuality, and LLControlGroup::setS32().
void LLSnapshotLivePreview::setSnapshotBufferType | ( | LLViewerWindow::ESnapshotType | type | ) | [inline] |
Definition at line 137 of file llfloatersnapshot.cpp.
References mSnapshotBufferType.
Referenced by LLFloaterSnapshot::Impl::onCommitLayerTypes(), and LLFloaterSnapshot::Impl::updateControls().
Definition at line 296 of file llfloatersnapshot.cpp.
References FALSE, LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), llround(), LLRectBase< Type >::mBottom, mCurImageIndex, mFallAnimTimer, mHeight, mImageRect, mKeepAspectRatio, LLRectBase< Type >::mLeft, LLRectBase< Type >::mRight, mShineAnimTimer, mSnapshotDelayTimer, mSnapshotUpToDate, mThumbnailUpToDate, LLRectBase< Type >::mTop, mWidth, S32, LLRectBase< Type >::set(), setThumbnailImageSize(), LLFrameTimer::setTimerExpirySec(), SNAPSHOT_TIME_DELAY, LLFrameTimer::start(), and LLFrameTimer::stop().
Referenced by LLFloaterSnapshot::Impl::checkAutoSnapshot(), LLFloaterSnapshot::Impl::onClickNewSnapshot(), LLFloaterSnapshot::Impl::onCommitSnapshotType(), onIdle(), and reshape().
LLFloaterPostcard * LLSnapshotLivePreview::savePostcard | ( | ) |
Definition at line 869 of file llfloatersnapshot.cpp.
References getCurrentImage(), isImageScaled(), llmin(), mCurImageIndex, mHeight, mJPEGImage, mPosTakenGlobal, mViewerImage, mWidth, NULL, LLVector2::setVec(), and LLFloaterPostcard::showFromSnapshot().
Referenced by LLFloaterSnapshot::Impl::onClickKeep().
void LLSnapshotLivePreview::saveTexture | ( | ) |
Definition at line 888 of file llfloatersnapshot.cpp.
References LLViewerWindow::alertXml(), LLAssetType::AT_SNAPSHOT_CATEGORY, LLAssetType::AT_TEXTURE, LLAgent::buildFullname(), LLAgent::buildLocationString(), gAgent, LLUUID::generate(), LLSingleton< LLViewerStats >::getInstance(), LLAgent::getSecureSessionID(), gVFS, gViewerWindow, LLViewerStats::incStat(), LLInventoryType::IT_SNAPSHOT, llendl, llwarns, LLTransactionID::makeAssetID(), mRawImage, PERM_ALL, LLViewerStats::ST_SNAPSHOT_COUNT, upload_new_resource(), and LLVFile::writeFile().
Referenced by LLFloaterSnapshot::Impl::onClickKeep().
BOOL LLSnapshotLivePreview::saveLocal | ( | ) |
Definition at line 929 of file llfloatersnapshot.cpp.
References gViewerWindow, mRawImage, and LLViewerWindow::saveImageNumbered().
Referenced by LLFloaterSnapshot::Impl::onClickKeep().
BOOL LLSnapshotLivePreview::setThumbnailImageSize | ( | ) |
Definition at line 590 of file llfloatersnapshot.cpp.
References FALSE, LLFloaterSnapshot::getUIWinWidth(), LLViewerWindow::getWindowDisplayHeight(), LLViewerWindow::getWindowDisplayWidth(), gViewerWindow, llround(), mCurImageIndex, mHeight, mKeepAspectRatio, mPreviewRect, mThumbnailHeight, mThumbnailWidth, mWidth, S32, LLRectBase< Type >::set(), and TRUE.
Referenced by generateThumbnailImage(), LLFloaterSnapshot::Impl::onClickLess(), and updateSnapshot().
void LLSnapshotLivePreview::generateThumbnailImage | ( | BOOL | force_update = FALSE |
) |
Definition at line 656 of file llfloatersnapshot.cpp.
References FALSE, get_nearest_power_two(), LLControlGroup::getBOOL(), gSavedSettings, gViewerWindow, mCurImageIndex, mHeight, mSnapshotBufferType, mThumbnailHeight, mThumbnailImage, mThumbnailUpdateLock, mThumbnailUpToDate, mThumbnailWidth, mWidth, NULL, resetThumbnailImage(), S32, setThumbnailImageSize(), LLViewerWindow::thumbnailSnapshot(), and TRUE.
Referenced by onIdle().
void LLSnapshotLivePreview::resetThumbnailImage | ( | ) | [inline] |
Definition at line 145 of file llfloatersnapshot.cpp.
References mThumbnailImage, and NULL.
Referenced by generateThumbnailImage().
Definition at line 357 of file llfloatersnapshot.cpp.
References FALSE, LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), gl_rect_2d(), LLRectBase< Type >::mBottom, mKeepAspectRatio, LLRectBase< Type >::mLeft, mPreviewRect, LLRectBase< Type >::mRight, mThumbnailHeight, mThumbnailWidth, LLRectBase< Type >::mTop, S32, and TRUE.
Referenced by LLFloaterSnapshot::draw().
void LLSnapshotLivePreview::onIdle | ( | void * | snapshot_preview | ) | [static] |
Definition at line 714 of file llfloatersnapshot.cpp.
References LLViewerImage::bindTexture(), LLWindow::decBusyCount(), dot(), FALSE, gAgent, generateThumbnailImage(), LLControlGroup::getBOOL(), LLAgent::getCameraPositionGlobal(), LLSingleton< LLToolCamera >::getInstance(), LLSingleton< LLViewerCamera >::getInstance(), getMaxImageSize(), LLCoordFrame::getOrigin(), LLCoordFrame::getQuaternion(), getSnapshotType(), LLFrameTimer::getStarted(), getThumbnailUpToDate(), LLView::getWindow(), gSavedSettings, gViewerWindow, LLFrameTimer::hasExpired(), LLTool::hasMouseCapture(), LLWindow::incBusyCount(), llclamp(), mCameraPos, mCameraRot, mCurImageIndex, mDataSize, mHeight, mImageScaled, mJPEGImage, mKeepAspectRatio, mPosTakenGlobal, mRawImage, mRawImageEncoded, mShineCountdown, mSnapshotActive, mSnapshotBufferType, mSnapshotDelayTimer, mSnapshotQuality, mSnapshotSoundPlayed, mSnapshotUpToDate, mViewerImage, mWidth, NULL, LLViewerWindow::playSnapshotAnimAndSound(), LLViewerWindow::rawSnapshot(), LLView::setEnabled(), LLView::setVisible(), SNAPSHOT_POSTCARD, SNAPSHOT_TEXTURE, LLFrameTimer::stop(), TRUE, and updateSnapshot().
Referenced by LLFloaterSnapshot::update().
LLColor4 LLSnapshotLivePreview::mColor [protected] |
Definition at line 151 of file llfloatersnapshot.cpp.
LLPointer<LLImageGL> LLSnapshotLivePreview::mViewerImage[2] [protected] |
Definition at line 152 of file llfloatersnapshot.cpp.
Referenced by draw(), getCurrentImage(), getImageAspect(), onIdle(), and savePostcard().
LLRect LLSnapshotLivePreview::mImageRect[2] [protected] |
Definition at line 153 of file llfloatersnapshot.cpp.
Referenced by draw(), getImageRect(), and updateSnapshot().
S32 LLSnapshotLivePreview::mWidth[2] [protected] |
Definition at line 154 of file llfloatersnapshot.cpp.
Referenced by draw(), generateThumbnailImage(), getAspect(), getSize(), LLSnapshotLivePreview(), onIdle(), savePostcard(), setSize(), setThumbnailImageSize(), and updateSnapshot().
S32 LLSnapshotLivePreview::mHeight[2] [protected] |
Definition at line 155 of file llfloatersnapshot.cpp.
Referenced by draw(), generateThumbnailImage(), getAspect(), getSize(), LLSnapshotLivePreview(), onIdle(), savePostcard(), setSize(), setThumbnailImageSize(), and updateSnapshot().
BOOL LLSnapshotLivePreview::mImageScaled[2] [protected] |
Definition at line 156 of file llfloatersnapshot.cpp.
Referenced by draw(), isImageScaled(), LLSnapshotLivePreview(), and onIdle().
S32 LLSnapshotLivePreview::mMaxImageSize [protected] |
Definition at line 157 of file llfloatersnapshot.cpp.
Referenced by getMaxImageSize(), LLSnapshotLivePreview(), and setMaxImageSize().
LLPointer<LLImageGL> LLSnapshotLivePreview::mThumbnailImage [protected] |
Definition at line 160 of file llfloatersnapshot.cpp.
Referenced by generateThumbnailImage(), getThumbnailImage(), and resetThumbnailImage().
S32 LLSnapshotLivePreview::mThumbnailWidth [protected] |
Definition at line 161 of file llfloatersnapshot.cpp.
Referenced by drawPreviewRect(), generateThumbnailImage(), getThumbnailWidth(), and setThumbnailImageSize().
S32 LLSnapshotLivePreview::mThumbnailHeight [protected] |
Definition at line 162 of file llfloatersnapshot.cpp.
Referenced by drawPreviewRect(), generateThumbnailImage(), getThumbnailHeight(), and setThumbnailImageSize().
LLRect LLSnapshotLivePreview::mPreviewRect [protected] |
Definition at line 163 of file llfloatersnapshot.cpp.
Referenced by drawPreviewRect(), and setThumbnailImageSize().
BOOL LLSnapshotLivePreview::mThumbnailUpdateLock [protected] |
Definition at line 164 of file llfloatersnapshot.cpp.
Referenced by generateThumbnailImage(), getThumbnailLock(), and LLSnapshotLivePreview().
BOOL LLSnapshotLivePreview::mThumbnailUpToDate [protected] |
Definition at line 165 of file llfloatersnapshot.cpp.
Referenced by generateThumbnailImage(), getThumbnailUpToDate(), LLSnapshotLivePreview(), and updateSnapshot().
S32 LLSnapshotLivePreview::mCurImageIndex [protected] |
Definition at line 167 of file llfloatersnapshot.cpp.
Referenced by draw(), generateThumbnailImage(), getAspect(), getCurrentImage(), getImageAspect(), getImageRect(), getSize(), isImageScaled(), onIdle(), savePostcard(), setSize(), setThumbnailImageSize(), and updateSnapshot().
LLPointer<LLImageRaw> LLSnapshotLivePreview::mRawImage [protected] |
Definition at line 168 of file llfloatersnapshot.cpp.
Referenced by onIdle(), saveLocal(), saveTexture(), and ~LLSnapshotLivePreview().
LLPointer<LLImageRaw> LLSnapshotLivePreview::mRawImageEncoded [protected] |
Definition at line 169 of file llfloatersnapshot.cpp.
Referenced by draw(), onIdle(), and ~LLSnapshotLivePreview().
LLPointer<LLImageJPEG> LLSnapshotLivePreview::mJPEGImage [protected] |
Definition at line 170 of file llfloatersnapshot.cpp.
Referenced by onIdle(), savePostcard(), and ~LLSnapshotLivePreview().
Definition at line 171 of file llfloatersnapshot.cpp.
Referenced by LLSnapshotLivePreview(), onIdle(), and updateSnapshot().
S32 LLSnapshotLivePreview::mShineCountdown [protected] |
LLFrameTimer LLSnapshotLivePreview::mShineAnimTimer [protected] |
F32 LLSnapshotLivePreview::mFlashAlpha [protected] |
BOOL LLSnapshotLivePreview::mNeedsFlash [protected] |
LLVector3d LLSnapshotLivePreview::mPosTakenGlobal [protected] |
S32 LLSnapshotLivePreview::mSnapshotQuality [protected] |
Definition at line 177 of file llfloatersnapshot.cpp.
Referenced by onIdle(), and setSnapshotQuality().
S32 LLSnapshotLivePreview::mDataSize [protected] |
ESnapshotType LLSnapshotLivePreview::mSnapshotType [protected] |
Definition at line 179 of file llfloatersnapshot.cpp.
Referenced by getSnapshotType(), and setSnapshotType().
BOOL LLSnapshotLivePreview::mSnapshotUpToDate [protected] |
Definition at line 180 of file llfloatersnapshot.cpp.
Referenced by draw(), getSnapshotUpToDate(), onIdle(), and updateSnapshot().
LLFrameTimer LLSnapshotLivePreview::mFallAnimTimer [protected] |
LLVector3 LLSnapshotLivePreview::mCameraPos [protected] |
LLQuaternion LLSnapshotLivePreview::mCameraRot [protected] |
BOOL LLSnapshotLivePreview::mSnapshotActive [protected] |
Definition at line 184 of file llfloatersnapshot.cpp.
Referenced by isSnapshotActive(), and onIdle().
Definition at line 185 of file llfloatersnapshot.cpp.
Referenced by generateThumbnailImage(), onIdle(), and setSnapshotBufferType().
bool LLSnapshotLivePreview::mSnapshotSoundPlayed [protected] |
std::set< LLSnapshotLivePreview * > LLSnapshotLivePreview::sList [static] |
Definition at line 189 of file llfloatersnapshot.cpp.
Referenced by LLSnapshotLivePreview(), LLFloaterSnapshot::update(), and ~LLSnapshotLivePreview().
Definition at line 190 of file llfloatersnapshot.cpp.
Referenced by LLFloaterSnapshot::Impl::checkAspectRatio(), LLFloaterSnapshot::Impl::checkImageSize(), drawPreviewRect(), getAspect(), LLSnapshotLivePreview(), LLFloaterSnapshot::Impl::onClickKeepAspectCheck(), onIdle(), setThumbnailImageSize(), LLFloaterSnapshot::Impl::updateLayout(), and updateSnapshot().