LLImagePreviewSculpted Class Reference

#include <llfloaterimagepreview.h>

Inheritance diagram for LLImagePreviewSculpted:

Inheritance graph
[legend]
Collaboration diagram for LLImagePreviewSculpted:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLImagePreviewSculpted (S32 width, S32 height)
virtual ~LLImagePreviewSculpted ()
void setPreviewTarget (LLImageRaw *imagep, F32 distance)
void setTexture (U32 name)
BOOL render ()
void refresh ()
void rotate (F32 yaw_radians, F32 pitch_radians)
void zoom (F32 zoom_amt)
void pan (F32 right, F32 up)
virtual BOOL needsRender ()

Protected Attributes

BOOL mNeedsUpdate
U32 mTextureName
F32 mCameraDistance
F32 mCameraYaw
F32 mCameraPitch
F32 mCameraZoom
LLVector3 mCameraOffset
LLPointer< LLVolumemVolume

Detailed Description

Definition at line 45 of file llfloaterimagepreview.h.


Constructor & Destructor Documentation

LLImagePreviewSculpted::LLImagePreviewSculpted ( S32  width,
S32  height 
)

Definition at line 764 of file llfloaterimagepreview.cpp.

References LL_PCODE_PATH_CIRCLE, LL_PCODE_PROFILE_CIRCLE, LL_SCULPT_TYPE_SPHERE, MAX_LOD, mCameraDistance, mCameraPitch, mCameraYaw, mCameraZoom, mNeedsUpdate, mTextureName, mVolume, LLUUID::null, LLVolumeParams::setSculptID(), LLVolumeParams::setType(), and TRUE.

LLImagePreviewSculpted::~LLImagePreviewSculpted (  )  [virtual]

Definition at line 793 of file llfloaterimagepreview.cpp.


Member Function Documentation

virtual BOOL LLImagePreviewSculpted::needsRender (  )  [inline, virtual]

Reimplemented from LLDynamicTexture.

Definition at line 59 of file llfloaterimagepreview.h.

References mNeedsUpdate.

void LLImagePreviewSculpted::pan ( F32  right,
F32  up 
)

Definition at line 921 of file llfloaterimagepreview.cpp.

References llclamp(), mCameraDistance, mCameraOffset, mCameraZoom, LLVector3::mV, VY, and VZ.

Referenced by LLFloaterImagePreview::handleHover().

void LLImagePreviewSculpted::refresh (  ) 

Definition at line 898 of file llfloaterimagepreview.cpp.

References mNeedsUpdate, and TRUE.

Referenced by LLFloaterImagePreview::handleHover(), LLFloaterImagePreview::handleScrollWheel(), and LLFloaterImagePreview::onPreviewTypeCommit().

BOOL LLImagePreviewSculpted::render (  )  [virtual]

Reimplemented from LLDynamicTexture.

Definition at line 820 of file llfloaterimagepreview.cpp.

References depth, LLPipeline::enableLightsAvatar(), f, FALSE, gCamera, LLViewerCamera::getDefaultFOV(), gl_rect_2d_simple(), glBegin, glClear, glColor4f, glEnd, glOrtho, glPopMatrix, gPipeline, i, mCameraDistance, mCameraOffset, mCameraPitch, mCameraYaw, mCameraZoom, LLDynamicTexture::mHeight, LLVolumeFace::mIndices, mNeedsUpdate, LLDynamicTexture::mOrigin, LLVector3::mV, LLVolumeFace::mVertices, mVolume, LLDynamicTexture::mWidth, LLCoord::mX, LLCoord::mY, S32, LLCamera::setAspect(), LLCoordFrame::setOriginAndLookAt(), LLViewerCamera::setPerspective(), LLCamera::setView(), stop_glerror, TRUE, VX, VY, VZ, LLVector3::y_axis, and LLVector3::z_axis.

void LLImagePreviewSculpted::rotate ( F32  yaw_radians,
F32  pitch_radians 
)

Definition at line 906 of file llfloaterimagepreview.cpp.

References f, F_PI_BY_TWO, llclamp(), mCameraPitch, and mCameraYaw.

Referenced by LLFloaterImagePreview::handleHover().

void LLImagePreviewSculpted::setPreviewTarget ( LLImageRaw imagep,
F32  distance 
)

Definition at line 801 of file llfloaterimagepreview.cpp.

References LLVector3::clearVec(), LLImageBase::getComponents(), LLImageBase::getData(), LLImageBase::getHeight(), LLImageBase::getWidth(), mCameraDistance, mCameraOffset, mCameraPitch, mCameraYaw, mCameraZoom, and mVolume.

Referenced by LLFloaterImagePreview::onPreviewTypeCommit(), and LLFloaterImagePreview::postBuild().

void LLImagePreviewSculpted::setTexture ( U32  name  )  [inline]

Definition at line 52 of file llfloaterimagepreview.h.

References mTextureName.

Referenced by LLFloaterImagePreview::draw().

void LLImagePreviewSculpted::zoom ( F32  zoom_amt  ) 

Definition at line 916 of file llfloaterimagepreview.cpp.

References f, llclamp(), and mCameraZoom.

Referenced by LLFloaterImagePreview::handleHover(), and LLFloaterImagePreview::handleScrollWheel().


Member Data Documentation

F32 LLImagePreviewSculpted::mCameraDistance [protected]

Definition at line 64 of file llfloaterimagepreview.h.

Referenced by LLImagePreviewSculpted(), pan(), render(), and setPreviewTarget().

LLVector3 LLImagePreviewSculpted::mCameraOffset [protected]

Definition at line 68 of file llfloaterimagepreview.h.

Referenced by pan(), render(), and setPreviewTarget().

F32 LLImagePreviewSculpted::mCameraPitch [protected]

Definition at line 66 of file llfloaterimagepreview.h.

Referenced by LLImagePreviewSculpted(), render(), rotate(), and setPreviewTarget().

F32 LLImagePreviewSculpted::mCameraYaw [protected]

Definition at line 65 of file llfloaterimagepreview.h.

Referenced by LLImagePreviewSculpted(), render(), rotate(), and setPreviewTarget().

F32 LLImagePreviewSculpted::mCameraZoom [protected]

Definition at line 67 of file llfloaterimagepreview.h.

Referenced by LLImagePreviewSculpted(), pan(), render(), setPreviewTarget(), and zoom().

BOOL LLImagePreviewSculpted::mNeedsUpdate [protected]

Definition at line 62 of file llfloaterimagepreview.h.

Referenced by LLImagePreviewSculpted(), needsRender(), refresh(), and render().

U32 LLImagePreviewSculpted::mTextureName [protected]

Definition at line 63 of file llfloaterimagepreview.h.

Referenced by LLImagePreviewSculpted(), and setTexture().

LLPointer<LLVolume> LLImagePreviewSculpted::mVolume [protected]

Definition at line 69 of file llfloaterimagepreview.h.

Referenced by LLImagePreviewSculpted(), render(), and setPreviewTarget().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:25 2010 for Second Life Viewer by  doxygen 1.4.7