LLSnapshotLivePreview Class Reference

Inheritance diagram for LLSnapshotLivePreview:

Inheritance graph
[legend]
Collaboration diagram for LLSnapshotLivePreview:

Collaboration graph
[legend]

List of all members.

Public Types

enum  ESnapshotType { SNAPSHOT_POSTCARD, SNAPSHOT_TEXTURE, SNAPSHOT_BITMAP }

Public Member Functions

 LLSnapshotLivePreview (const LLRect &rect)
 ~LLSnapshotLivePreview ()
void draw ()
void reshape (S32 width, S32 height, BOOL called_from_parent)
void setSize (S32 w, S32 h)
void getSize (S32 &w, S32 &h) const
S32 getDataSize () const
void setMaxImageSize (S32 size)
S32 getMaxImageSize ()
ESnapshotType getSnapshotType () const
BOOL getSnapshotUpToDate () const
BOOL isSnapshotActive ()
LLImageGLgetThumbnailImage () const
S32 getThumbnailWidth () const
S32 getThumbnailHeight () const
BOOL getThumbnailLock () const
BOOL getThumbnailUpToDate () const
LLImageGLgetCurrentImage ()
F32 getImageAspect ()
F32 getAspect ()
LLRect getImageRect ()
BOOL isImageScaled ()
void setSnapshotType (ESnapshotType type)
void setSnapshotQuality (S32 quality)
void setSnapshotBufferType (LLViewerWindow::ESnapshotType type)
void updateSnapshot (BOOL new_snapshot, BOOL new_thumbnail=FALSE)
LLFloaterPostcardsavePostcard ()
void saveTexture ()
BOOL saveLocal ()
BOOL setThumbnailImageSize ()
void generateThumbnailImage (BOOL force_update=FALSE)
void resetThumbnailImage ()
void drawPreviewRect (S32 offset_x, S32 offset_y)

Static Public Member Functions

static void onIdle (void *snapshot_preview)

Public Attributes

BOOL mKeepAspectRatio

Static Public Attributes

static std::set
< LLSnapshotLivePreview * > 
sList

Protected Attributes

LLColor4 mColor
LLPointer< LLImageGLmViewerImage [2]
LLRect mImageRect [2]
S32 mWidth [2]
S32 mHeight [2]
BOOL mImageScaled [2]
S32 mMaxImageSize
LLPointer< LLImageGLmThumbnailImage
S32 mThumbnailWidth
S32 mThumbnailHeight
LLRect mPreviewRect
BOOL mThumbnailUpdateLock
BOOL mThumbnailUpToDate
S32 mCurImageIndex
LLPointer< LLImageRawmRawImage
LLPointer< LLImageRawmRawImageEncoded
LLPointer< LLImageJPEGmJPEGImage
LLFrameTimer mSnapshotDelayTimer
S32 mShineCountdown
LLFrameTimer mShineAnimTimer
F32 mFlashAlpha
BOOL mNeedsFlash
LLVector3d mPosTakenGlobal
S32 mSnapshotQuality
S32 mDataSize
ESnapshotType mSnapshotType
BOOL mSnapshotUpToDate
LLFrameTimer mFallAnimTimer
LLVector3 mCameraPos
LLQuaternion mCameraRot
BOOL mSnapshotActive
LLViewerWindow::ESnapshotType mSnapshotBufferType
bool mSnapshotSoundPlayed


Detailed Description

---------------------------------------------------------------------------- Class LLSnapshotLivePreview ----------------------------------------------------------------------------

Definition at line 99 of file llfloatersnapshot.cpp.


Member Enumeration Documentation

Enumerator:
SNAPSHOT_POSTCARD 
SNAPSHOT_TEXTURE 
SNAPSHOT_BITMAP 

Definition at line 102 of file llfloatersnapshot.cpp.


Constructor & Destructor Documentation

LLSnapshotLivePreview::LLSnapshotLivePreview ( const LLRect rect  ) 

LLSnapshotLivePreview::~LLSnapshotLivePreview (  ) 

Definition at line 233 of file llfloatersnapshot.cpp.

References mJPEGImage, mRawImage, mRawImageEncoded, NULL, and sList.


Member Function Documentation

void LLSnapshotLivePreview::draw ( void   )  [virtual]

void LLSnapshotLivePreview::reshape ( S32  width,
S32  height,
BOOL  called_from_parent 
) [virtual]

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().

Here is the call graph for this function:

void LLSnapshotLivePreview::setSize ( S32  w,
S32  h 
)

void LLSnapshotLivePreview::getSize ( S32 w,
S32 h 
) const

S32 LLSnapshotLivePreview::getDataSize (  )  const [inline]

Definition at line 117 of file llfloatersnapshot.cpp.

References mDataSize.

Referenced by LLFloaterSnapshot::draw().

Here is the caller graph for this function:

void LLSnapshotLivePreview::setMaxImageSize ( S32  size  ) 

Definition at line 244 of file llfloatersnapshot.cpp.

References MAX_IMAGE_SIZE, and mMaxImageSize.

Referenced by LLFloaterSnapshot::Impl::onCommitCustomResolution().

Here is the caller graph for this function:

S32 LLSnapshotLivePreview::getMaxImageSize (  )  [inline]

ESnapshotType LLSnapshotLivePreview::getSnapshotType (  )  const [inline]

Definition at line 121 of file llfloatersnapshot.cpp.

References mSnapshotType.

Referenced by LLFloaterSnapshot::draw(), LLFloaterSnapshot::Impl::onClickKeep(), and onIdle().

Here is the caller graph for this function:

BOOL LLSnapshotLivePreview::getSnapshotUpToDate (  )  const [inline]

Definition at line 122 of file llfloatersnapshot.cpp.

References mSnapshotUpToDate.

Referenced by LLFloaterSnapshot::draw().

Here is the caller graph for this function:

BOOL LLSnapshotLivePreview::isSnapshotActive (  )  [inline]

Definition at line 123 of file llfloatersnapshot.cpp.

References mSnapshotActive.

Referenced by LLFloaterSnapshot::draw().

Here is the caller graph for this function:

LLImageGL* LLSnapshotLivePreview::getThumbnailImage (  )  const [inline]

Definition at line 124 of file llfloatersnapshot.cpp.

References mThumbnailImage.

Referenced by LLFloaterSnapshot::draw().

Here is the caller graph for this function:

S32 LLSnapshotLivePreview::getThumbnailWidth (  )  const [inline]

Definition at line 125 of file llfloatersnapshot.cpp.

References mThumbnailWidth.

Referenced by LLFloaterSnapshot::draw().

Here is the caller graph for this function:

S32 LLSnapshotLivePreview::getThumbnailHeight (  )  const [inline]

Definition at line 126 of file llfloatersnapshot.cpp.

References mThumbnailHeight.

Referenced by LLFloaterSnapshot::draw().

Here is the caller graph for this function:

BOOL LLSnapshotLivePreview::getThumbnailLock (  )  const [inline]

Definition at line 127 of file llfloatersnapshot.cpp.

References mThumbnailUpdateLock.

Referenced by LLFloaterSnapshot::draw().

Here is the caller graph for this function:

BOOL LLSnapshotLivePreview::getThumbnailUpToDate (  )  const [inline]

Definition at line 128 of file llfloatersnapshot.cpp.

References mThumbnailUpToDate.

Referenced by onIdle().

Here is the caller graph for this function:

LLImageGL * LLSnapshotLivePreview::getCurrentImage (  ) 

Definition at line 256 of file llfloatersnapshot.cpp.

References mCurImageIndex, and mViewerImage.

Referenced by savePostcard().

Here is the caller graph for this function:

F32 LLSnapshotLivePreview::getImageAspect (  ) 

Definition at line 276 of file llfloatersnapshot.cpp.

References getAspect(), mCurImageIndex, and mViewerImage.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

LLRect LLSnapshotLivePreview::getImageRect (  ) 

Definition at line 286 of file llfloatersnapshot.cpp.

References mCurImageIndex, and mImageRect.

BOOL LLSnapshotLivePreview::isImageScaled (  ) 

Definition at line 291 of file llfloatersnapshot.cpp.

References mCurImageIndex, and mImageScaled.

Referenced by savePostcard().

Here is the caller graph for this function:

void LLSnapshotLivePreview::setSnapshotType ( ESnapshotType  type  )  [inline]

Definition at line 135 of file llfloatersnapshot.cpp.

References mSnapshotType.

Referenced by LLFloaterSnapshot::Impl::updateControls().

Here is the caller graph for this function:

void LLSnapshotLivePreview::setSnapshotQuality ( S32  quality  ) 

Definition at line 348 of file llfloatersnapshot.cpp.

References gSavedSettings, mSnapshotQuality, and LLControlGroup::setS32().

Here is the call graph for this function:

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().

Here is the caller graph for this function:

void LLSnapshotLivePreview::updateSnapshot ( BOOL  new_snapshot,
BOOL  new_thumbnail = FALSE 
)

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLSnapshotLivePreview::saveTexture (  ) 

BOOL LLSnapshotLivePreview::saveLocal (  ) 

Definition at line 929 of file llfloatersnapshot.cpp.

References gViewerWindow, mRawImage, and LLViewerWindow::saveImageNumbered().

Referenced by LLFloaterSnapshot::Impl::onClickKeep().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLSnapshotLivePreview::setThumbnailImageSize (  ) 

void LLSnapshotLivePreview::generateThumbnailImage ( BOOL  force_update = FALSE  ) 

void LLSnapshotLivePreview::resetThumbnailImage (  )  [inline]

Definition at line 145 of file llfloatersnapshot.cpp.

References mThumbnailImage, and NULL.

Referenced by generateThumbnailImage().

Here is the caller graph for this function:

void LLSnapshotLivePreview::drawPreviewRect ( S32  offset_x,
S32  offset_y 
)

void LLSnapshotLivePreview::onIdle ( void *  snapshot_preview  )  [static]


Member Data Documentation

Definition at line 151 of file llfloatersnapshot.cpp.

Definition at line 152 of file llfloatersnapshot.cpp.

Referenced by draw(), getCurrentImage(), getImageAspect(), onIdle(), and savePostcard().

Definition at line 153 of file llfloatersnapshot.cpp.

Referenced by draw(), getImageRect(), and updateSnapshot().

Definition at line 156 of file llfloatersnapshot.cpp.

Referenced by draw(), isImageScaled(), LLSnapshotLivePreview(), and onIdle().

Definition at line 157 of file llfloatersnapshot.cpp.

Referenced by getMaxImageSize(), LLSnapshotLivePreview(), and setMaxImageSize().

Definition at line 163 of file llfloatersnapshot.cpp.

Referenced by drawPreviewRect(), and setThumbnailImageSize().

Definition at line 168 of file llfloatersnapshot.cpp.

Referenced by onIdle(), saveLocal(), saveTexture(), and ~LLSnapshotLivePreview().

Definition at line 169 of file llfloatersnapshot.cpp.

Referenced by draw(), onIdle(), and ~LLSnapshotLivePreview().

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().

Definition at line 172 of file llfloatersnapshot.cpp.

Referenced by draw(), and onIdle().

Definition at line 173 of file llfloatersnapshot.cpp.

Referenced by draw(), and updateSnapshot().

Definition at line 174 of file llfloatersnapshot.cpp.

Referenced by draw().

Definition at line 175 of file llfloatersnapshot.cpp.

Referenced by draw().

Definition at line 176 of file llfloatersnapshot.cpp.

Referenced by onIdle(), and savePostcard().

Definition at line 177 of file llfloatersnapshot.cpp.

Referenced by onIdle(), and setSnapshotQuality().

Definition at line 178 of file llfloatersnapshot.cpp.

Referenced by getDataSize(), and onIdle().

Definition at line 179 of file llfloatersnapshot.cpp.

Referenced by getSnapshotType(), and setSnapshotType().

Definition at line 180 of file llfloatersnapshot.cpp.

Referenced by draw(), getSnapshotUpToDate(), onIdle(), and updateSnapshot().

Definition at line 181 of file llfloatersnapshot.cpp.

Referenced by draw(), and updateSnapshot().

Definition at line 182 of file llfloatersnapshot.cpp.

Referenced by onIdle().

Definition at line 183 of file llfloatersnapshot.cpp.

Referenced by onIdle().

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().

Definition at line 186 of file llfloatersnapshot.cpp.

Referenced by onIdle().


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

Generated on Fri May 16 09:05:05 2008 for SecondLife by  doxygen 1.5.5