Definition at line 94 of file llfloatersnapshot.cpp.
Definition at line 97 of file llfloatersnapshot.cpp.
LLSnapshotLivePreview::LLSnapshotLivePreview | ( | const LLRect & | rect | ) |
Definition at line 169 of file llfloatersnapshot.cpp.
References f, FALSE, LLViewerWindow::getWindowDisplayHeight(), LLViewerWindow::getWindowDisplayWidth(), gViewerWindow, mHeight, mImageScaled, mSnapshotDelayTimer, mWidth, LLView::setFollowsAll(), LLFrameTimer::setTimerExpirySec(), sList, and LLFrameTimer::start().
LLSnapshotLivePreview::~LLSnapshotLivePreview | ( | ) |
Definition at line 201 of file llfloatersnapshot.cpp.
References mJPEGImage, mRawImage, mRawImageEncoded, NULL, and sList.
void LLSnapshotLivePreview::draw | ( | ) | [virtual] |
Reimplemented from LLView.
Definition at line 309 of file llfloatersnapshot.cpp.
References LLViewerImage::bindTexture(), BORDER_WIDTH, clamp_rescale(), f, FALL_TIME, FALSE, LLFrameTimer::getElapsedTimeF32(), LLRectBase< Type >::getHeight(), LLCriticalDamp::getInterpolant(), LLView::getLocalRect(), LLFrameTimer::getStarted(), LLView::getVisible(), LLRectBase< Type >::getWidth(), LLViewerWindow::getWindowHeight(), LLViewerWindow::getWindowWidth(), gl_drop_shadow(), gl_rect_2d(), glBegin, glColor4f, glColor4fv, glEnd, glPopMatrix, glRotatef, glTranslatef, gViewerWindow, lerp(), llmin(), llround(), LLRectBase< Type >::mBottom, mCurImageIndex, mFallAnimTimer, mFlashAlpha, mHeight, mImageRect, mImageScaled, LLRectBase< Type >::mLeft, mNeedsFlash, mRawImageEncoded, LLView::mRect, LLRectBase< Type >::mRight, mShineAnimTimer, mShineCountdown, mSnapshotUpToDate, LLRectBase< Type >::mTop, LLColor4::mV, mViewerImage, mWidth, LLPointer< Type >::notNull(), rescale(), S32, SHINE_OPACITY, SHINE_TIME, SHINE_WIDTH, LLFrameTimer::start(), LLFrameTimer::stop(), and LLRectBase< Type >::stretch().
LLImageGL * LLSnapshotLivePreview::getCurrentImage | ( | ) |
Definition at line 212 of file llfloatersnapshot.cpp.
References mCurImageIndex, and mViewerImage.
Referenced by LLFloaterSnapshot::draw(), and savePostcard().
S32 LLSnapshotLivePreview::getDataSize | ( | ) | const [inline] |
Definition at line 115 of file llfloatersnapshot.cpp.
References mDataSize.
Referenced by LLFloaterSnapshot::draw().
F32 LLSnapshotLivePreview::getImageAspect | ( | ) |
Definition at line 217 of file llfloatersnapshot.cpp.
References LLControlGroup::getBOOL(), LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), gSavedSettings, mCurImageIndex, mHeight, LLView::mRect, mViewerImage, and mWidth.
Referenced by LLFloaterSnapshot::draw().
LLRect LLSnapshotLivePreview::getImageRect | ( | ) |
Definition at line 639 of file llfloatersnapshot.cpp.
References mCurImageIndex, mHeight, and mWidth.
Referenced by LLFloaterSnapshot::draw(), LLFloaterSnapshot::Impl::onCommitCustomResolution(), and LLFloaterSnapshot::Impl::onCommitResolution().
ESnapshotType LLSnapshotLivePreview::getSnapshotType | ( | ) | const [inline] |
Definition at line 117 of file llfloatersnapshot.cpp.
References mSnapshotType.
Referenced by LLFloaterSnapshot::draw(), LLFloaterSnapshot::Impl::onClickKeep(), and onIdle().
BOOL LLSnapshotLivePreview::getSnapshotUpToDate | ( | ) | const [inline] |
Definition at line 118 of file llfloatersnapshot.cpp.
References mSnapshotUpToDate.
Referenced by LLFloaterSnapshot::draw(), and reshape().
LLString LLSnapshotLivePreview::getWidgetTag | ( | ) | const [virtual] |
Implements LLView.
Definition at line 304 of file llfloatersnapshot.cpp.
References LL_SNAPSHOT_LIVE_PREVIEW_TAG.
EWidgetType LLSnapshotLivePreview::getWidgetType | ( | ) | const [virtual] |
Implements LLView.
Definition at line 299 of file llfloatersnapshot.cpp.
References WIDGET_TYPE_SNAPSHOT_LIVE_PREVIEW.
BOOL LLSnapshotLivePreview::isImageScaled | ( | ) |
Definition at line 242 of file llfloatersnapshot.cpp.
References mCurImageIndex, and mImageScaled.
Referenced by LLFloaterSnapshot::draw(), and savePostcard().
BOOL LLSnapshotLivePreview::isSnapshotActive | ( | ) | [inline] |
Definition at line 119 of file llfloatersnapshot.cpp.
References mSnapshotActive.
Referenced by LLFloaterSnapshot::draw().
Definition at line 510 of file llfloatersnapshot.cpp.
References LLViewerImage::bindTexture(), LLWindow::decBusyCount(), dot(), FALSE, gAgent, gCamera, LLControlGroup::getBOOL(), LLAgent::getCameraPositionGlobal(), LLCoordFrame::getOrigin(), LLCoordFrame::getQuaternion(), getSnapshotType(), LLFrameTimer::getStarted(), LLView::getWindow(), gSavedSettings, gToolCamera, gViewerWindow, LLFrameTimer::hasExpired(), LLTool::hasMouseCapture(), LLWindow::incBusyCount(), llclamp(), mCameraPos, mCameraRot, mCurImageIndex, mDataSize, mHeight, mImageScaled, mJPEGImage, mPosTakenGlobal, mRawImage, mRawImageEncoded, mShineCountdown, mSnapshotActive, mSnapshotBufferType, mSnapshotDelayTimer, mSnapshotQuality, mSnapshotUpToDate, mViewerImage, mWidth, NULL, LLViewerWindow::rawSnapshot(), LLView::setEnabled(), LLView::setVisible(), SNAPSHOT_POSTCARD, SNAPSHOT_TEXTURE, LLFrameTimer::stop(), TRUE, and updateSnapshot().
Referenced by LLFloaterSnapshot::update().
Reimplemented from LLView.
Definition at line 499 of file llfloatersnapshot.cpp.
References LLRectBase< Type >::getHeight(), getSnapshotUpToDate(), LLRectBase< Type >::getWidth(), LLView::mRect, LLView::reshape(), and updateSnapshot().
BOOL LLSnapshotLivePreview::saveLocal | ( | ) |
Definition at line 705 of file llfloatersnapshot.cpp.
References gViewerWindow, mRawImage, and LLViewerWindow::saveImageNumbered().
Referenced by LLFloaterSnapshot::Impl::onClickKeep().
LLFloaterPostcard * LLSnapshotLivePreview::savePostcard | ( | ) |
Definition at line 645 of file llfloatersnapshot.cpp.
References f, 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 664 of file llfloatersnapshot.cpp.
References LLViewerWindow::alertXml(), LLAssetType::AT_SNAPSHOT_CATEGORY, LLAssetType::AT_TEXTURE, LLAgent::buildFullname(), LLAgent::buildLocationString(), gAgent, LLUUID::generate(), LLAgent::getSecureSessionID(), gVFS, gViewerStats, 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().
Definition at line 633 of file llfloatersnapshot.cpp.
References mCurImageIndex, mHeight, and mWidth.
Referenced by LLFloaterSnapshot::Impl::onCommitCustomResolution(), and LLFloaterSnapshot::Impl::onCommitResolution().
void LLSnapshotLivePreview::setSnapshotBufferType | ( | LLViewerWindow::ESnapshotType | type | ) | [inline] |
Definition at line 127 of file llfloatersnapshot.cpp.
References mSnapshotBufferType.
Referenced by LLFloaterSnapshot::Impl::onCommitLayerTypes(), and LLFloaterSnapshot::Impl::updateControls().
Definition at line 290 of file llfloatersnapshot.cpp.
References gSavedSettings, mSnapshotQuality, and LLControlGroup::setS32().
void LLSnapshotLivePreview::setSnapshotType | ( | ESnapshotType | type | ) | [inline] |
Definition at line 125 of file llfloatersnapshot.cpp.
References mSnapshotType.
Referenced by LLFloaterSnapshot::Impl::updateControls().
Definition at line 247 of file llfloatersnapshot.cpp.
References FALSE, LLControlGroup::getBOOL(), LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), gSavedSettings, llround(), LLRectBase< Type >::mBottom, mCurImageIndex, mFallAnimTimer, mHeight, mImageRect, LLRectBase< Type >::mLeft, LLView::mRect, LLRectBase< Type >::mRight, mShineAnimTimer, mSnapshotDelayTimer, mSnapshotUpToDate, LLRectBase< Type >::mTop, mWidth, S32, LLRectBase< Type >::set(), LLFrameTimer::setTimerExpirySec(), SNAPSHOT_TIME_DELAY, LLFrameTimer::start(), and LLFrameTimer::stop().
Referenced by LLFloaterSnapshot::Impl::checkAutoSnapshot(), LLFloaterSnapshot::Impl::onClickNewSnapshot(), LLFloaterSnapshot::Impl::onCommitSnapshotType(), onIdle(), and reshape().
LLVector3 LLSnapshotLivePreview::mCameraPos [protected] |
LLQuaternion LLSnapshotLivePreview::mCameraRot [protected] |
LLColor4 LLSnapshotLivePreview::mColor [protected] |
Definition at line 136 of file llfloatersnapshot.cpp.
S32 LLSnapshotLivePreview::mCurImageIndex [protected] |
Definition at line 143 of file llfloatersnapshot.cpp.
Referenced by draw(), getCurrentImage(), getImageAspect(), getImageRect(), getSize(), isImageScaled(), onIdle(), savePostcard(), setSize(), and updateSnapshot().
S32 LLSnapshotLivePreview::mDataSize [protected] |
LLFrameTimer LLSnapshotLivePreview::mFallAnimTimer [protected] |
F32 LLSnapshotLivePreview::mFlashAlpha [protected] |
S32 LLSnapshotLivePreview::mHeight[2] [protected] |
Definition at line 140 of file llfloatersnapshot.cpp.
Referenced by draw(), getImageAspect(), getSize(), LLSnapshotLivePreview(), onIdle(), savePostcard(), setSize(), and updateSnapshot().
LLRect LLSnapshotLivePreview::mImageRect[2] [protected] |
Definition at line 138 of file llfloatersnapshot.cpp.
Referenced by draw(), getImageRect(), and updateSnapshot().
BOOL LLSnapshotLivePreview::mImageScaled[2] [protected] |
Definition at line 141 of file llfloatersnapshot.cpp.
Referenced by draw(), isImageScaled(), LLSnapshotLivePreview(), and onIdle().
LLPointer<LLImageJPEG> LLSnapshotLivePreview::mJPEGImage [protected] |
Definition at line 146 of file llfloatersnapshot.cpp.
Referenced by onIdle(), savePostcard(), and ~LLSnapshotLivePreview().
BOOL LLSnapshotLivePreview::mNeedsFlash [protected] |
LLVector3d LLSnapshotLivePreview::mPosTakenGlobal [protected] |
LLPointer<LLImageRaw> LLSnapshotLivePreview::mRawImage [protected] |
Definition at line 144 of file llfloatersnapshot.cpp.
Referenced by onIdle(), saveLocal(), saveTexture(), and ~LLSnapshotLivePreview().
LLPointer<LLImageRaw> LLSnapshotLivePreview::mRawImageEncoded [protected] |
Definition at line 145 of file llfloatersnapshot.cpp.
Referenced by draw(), onIdle(), and ~LLSnapshotLivePreview().
LLFrameTimer LLSnapshotLivePreview::mShineAnimTimer [protected] |
S32 LLSnapshotLivePreview::mShineCountdown [protected] |
BOOL LLSnapshotLivePreview::mSnapshotActive [protected] |
Definition at line 160 of file llfloatersnapshot.cpp.
Referenced by isSnapshotActive(), and onIdle().
Definition at line 161 of file llfloatersnapshot.cpp.
Referenced by onIdle(), and setSnapshotBufferType().
Definition at line 147 of file llfloatersnapshot.cpp.
Referenced by LLSnapshotLivePreview(), onIdle(), and updateSnapshot().
S32 LLSnapshotLivePreview::mSnapshotQuality [protected] |
Definition at line 153 of file llfloatersnapshot.cpp.
Referenced by onIdle(), and setSnapshotQuality().
ESnapshotType LLSnapshotLivePreview::mSnapshotType [protected] |
Definition at line 155 of file llfloatersnapshot.cpp.
Referenced by getSnapshotType(), and setSnapshotType().
BOOL LLSnapshotLivePreview::mSnapshotUpToDate [protected] |
Definition at line 156 of file llfloatersnapshot.cpp.
Referenced by draw(), getSnapshotUpToDate(), onIdle(), and updateSnapshot().
LLPointer<LLImageGL> LLSnapshotLivePreview::mViewerImage[2] [protected] |
Definition at line 137 of file llfloatersnapshot.cpp.
Referenced by draw(), getCurrentImage(), getImageAspect(), onIdle(), and savePostcard().
S32 LLSnapshotLivePreview::mWidth[2] [protected] |
Definition at line 139 of file llfloatersnapshot.cpp.
Referenced by draw(), getImageAspect(), getSize(), LLSnapshotLivePreview(), onIdle(), savePostcard(), setSize(), and updateSnapshot().
std::set< LLSnapshotLivePreview * > LLSnapshotLivePreview::sList [static] |
Definition at line 164 of file llfloatersnapshot.cpp.
Referenced by LLSnapshotLivePreview(), LLFloaterSnapshot::update(), and ~LLSnapshotLivePreview().