LLViewerCamera Class Reference

#include <llviewercamera.h>

Inheritance diagram for LLViewerCamera:

Inheritance graph
[legend]
Collaboration diagram for LLViewerCamera:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLViewerCamera ()
void updateCameraLocation (const LLVector3 &center, const LLVector3 &up_direction, const LLVector3 &point_of_interest)
void setPerspective (BOOL for_selection, S32 x, S32 y_from_bot, S32 width, S32 height, BOOL limit_select_distance, F32 z_near=0, F32 z_far=0)
const LLMatrix4getProjection () const
const LLMatrix4getModelview () const
void projectScreenToPosAgent (const S32 screen_x, const S32 screen_y, LLVector3 *pos_agent) const
BOOL projectPosAgentToScreen (const LLVector3 &pos_agent, LLCoordGL &out_point, const BOOL clamp=TRUE) const
BOOL projectPosAgentToScreenEdge (const LLVector3 &pos_agent, LLCoordGL &out_point) const
LLStatgetVelocityStat ()
LLStatgetAngularVelocityStat ()
void getPixelVectors (const LLVector3 &pos_agent, LLVector3 &up, LLVector3 &right)
LLVector3 roundToPixel (const LLVector3 &pos_agent)
void setDefaultFOV (F32 fov)
F32 getDefaultFOV ()
BOOL cameraUnderWater () const
const LLVector3getPointOfInterest ()
BOOL areVertsVisible (LLViewerObject *volumep, BOOL all_verts)
F32 getPixelMeterRatio () const
S32 getScreenPixelArea () const
void setZoomParameters (F32 factor, S16 subregion)
F32 getZoomFactor ()
S16 getZoomSubRegion ()

Static Public Member Functions

static void updateFrustumPlanes (LLCamera &camera, BOOL ortho=FALSE, BOOL zflip=FALSE)

Protected Member Functions

void calcProjection (const F32 far_distance) const

Protected Attributes

LLStat mVelocityStat
LLStat mAngularVelocityStat
LLMatrix4 mProjectionMatrix
LLMatrix4 mModelviewMatrix
F32 mCameraFOVDefault
LLVector3 mLastPointOfInterest
F32 mPixelMeterRatio
S32 mScreenPixelArea
F32 mZoomFactor
S16 mZoomSubregion


Detailed Description

Definition at line 53 of file llviewercamera.h.


Constructor & Destructor Documentation

LLViewerCamera::LLViewerCamera (  ) 

Definition at line 88 of file llviewercamera.cpp.

References calcProjection(), DEFAULT_FIELD_OF_VIEW, LLCamera::getFar(), mCameraFOVDefault, mPixelMeterRatio, mScreenPixelArea, mZoomFactor, and mZoomSubregion.

Here is the call graph for this function:


Member Function Documentation

void LLViewerCamera::updateCameraLocation ( const LLVector3 center,
const LLVector3 up_direction,
const LLVector3 point_of_interest 
)

void LLViewerCamera::updateFrustumPlanes ( LLCamera camera,
BOOL  ortho = FALSE,
BOOL  zflip = FALSE 
) [static]

void LLViewerCamera::setPerspective ( BOOL  for_selection,
S32  x,
S32  y_from_bot,
S32  width,
S32  height,
BOOL  limit_select_distance,
F32  z_near = 0,
F32  z_far = 0 
)

const LLMatrix4 & LLViewerCamera::getProjection (  )  const

Definition at line 155 of file llviewercamera.cpp.

References calcProjection(), LLCamera::getFar(), and mProjectionMatrix.

Referenced by LLAgent::calcFocusOffset(), LLManipTranslate::highlightManipulators(), and LLManipScale::highlightManipulators().

Here is the call graph for this function:

Here is the caller graph for this function:

const LLMatrix4 & LLViewerCamera::getModelview (  )  const

Definition at line 162 of file llviewercamera.cpp.

References LLCoordFrame::getMatrixToLocal(), mModelviewMatrix, and OGL_TO_CFR_ROTATION.

Referenced by LLManipTranslate::highlightManipulators(), LLManipScale::highlightManipulators(), LLDrawPoolWater::render(), and LLPipeline::setupAvatarLights().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLViewerCamera::projectScreenToPosAgent ( const S32  screen_x,
const S32  screen_y,
LLVector3 pos_agent 
) const

Definition at line 395 of file llviewercamera.cpp.

References gGLModelView, gGLProjection, gGLViewport, and LLVector3::setVec().

Referenced by LLManipRotate::mouseToRay(), and roundToPixel().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLViewerCamera::projectPosAgentToScreen ( const LLVector3 pos_agent,
LLCoordGL out_point,
const BOOL  clamp = TRUE 
) const

BOOL LLViewerCamera::projectPosAgentToScreenEdge ( const LLVector3 pos_agent,
LLCoordGL out_point 
) const

LLStat* LLViewerCamera::getVelocityStat (  )  [inline]

Definition at line 77 of file llviewercamera.h.

References mVelocityStat.

Referenced by earlyFail(), LLHUDText::updateAll(), and LLHoverView::updateHover().

Here is the caller graph for this function:

LLStat* LLViewerCamera::getAngularVelocityStat (  )  [inline]

Definition at line 78 of file llviewercamera.h.

References mAngularVelocityStat.

Referenced by LLHoverView::updateHover().

Here is the caller graph for this function:

void LLViewerCamera::getPixelVectors ( const LLVector3 pos_agent,
LLVector3 up,
LLVector3 right 
)

LLVector3 LLViewerCamera::roundToPixel ( const LLVector3 pos_agent  ) 

Definition at line 667 of file llviewercamera.cpp.

References FALSE, LLCoordFrame::getOrigin(), LLCoord::mX, LLCoord::mY, LLVector3::normVec(), projectPosAgentToScreen(), and projectScreenToPosAgent().

Here is the call graph for this function:

void LLViewerCamera::setDefaultFOV ( F32  fov  )  [inline]

Definition at line 83 of file llviewercamera.h.

References mCameraFOVDefault.

Referenced by LLViewZoomDefault::handleEvent(), and update_fov().

Here is the caller graph for this function:

F32 LLViewerCamera::getDefaultFOV (  )  [inline]

Definition at line 84 of file llviewercamera.h.

References mCameraFOVDefault.

Referenced by LLFloaterAnimPreview::postBuild(), LLSelectNode::renderOneSilhouette(), and update_fov().

Here is the caller graph for this function:

BOOL LLViewerCamera::cameraUnderWater (  )  const

Definition at line 694 of file llviewercamera.cpp.

References gAgent, LLCoordFrame::getOrigin(), LLAgent::getRegion(), LLViewerRegion::getWaterHeight(), LLVector3::mV, and VZ.

Referenced by display(), and LLPipeline::generateWaterReflection().

Here is the call graph for this function:

Here is the caller graph for this function:

const LLVector3& LLViewerCamera::getPointOfInterest (  )  [inline]

Definition at line 88 of file llviewercamera.h.

References mLastPointOfInterest.

Referenced by LLSelectNode::renderOneSilhouette().

Here is the caller graph for this function:

BOOL LLViewerCamera::areVertsVisible ( LLViewerObject volumep,
BOOL  all_verts 
)

F32 LLViewerCamera::getPixelMeterRatio (  )  const [inline]

S32 LLViewerCamera::getScreenPixelArea (  )  const [inline]

Definition at line 91 of file llviewercamera.h.

References mScreenPixelArea.

Referenced by LLVolumeImplFlexible::doIdleUpdate(), LLSpatialPartition::renderDebug(), LLViewerObject::setPixelAreaAndAngle(), and LLVOVolume::updateTextures().

Here is the caller graph for this function:

void LLViewerCamera::setZoomParameters ( F32  factor,
S16  subregion 
) [inline]

Definition at line 93 of file llviewercamera.h.

References mZoomFactor, and mZoomSubregion.

Referenced by display(), and LLViewerWindow::rawSnapshot().

Here is the caller graph for this function:

F32 LLViewerCamera::getZoomFactor (  )  [inline]

Definition at line 94 of file llviewercamera.h.

References mZoomFactor.

Referenced by LLViewerWindow::draw(), render_ui_2d(), and setup_hud_matrices().

Here is the caller graph for this function:

S16 LLViewerCamera::getZoomSubRegion (  )  [inline]

Definition at line 95 of file llviewercamera.h.

References mZoomSubregion.

Referenced by LLViewerWindow::draw(), render_ui_2d(), and setup_hud_matrices().

Here is the caller graph for this function:

void LLViewerCamera::calcProjection ( const F32  far_distance  )  const [protected]

Definition at line 170 of file llviewercamera.cpp.

References LLCamera::getAspect(), LLCamera::getNear(), LLCamera::getView(), LLMatrix4::mMatrix, mProjectionMatrix, and LLMatrix4::setZero().

Referenced by getProjection(), LLViewerCamera(), and setPerspective().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 100 of file llviewercamera.h.

Referenced by getVelocityStat(), and updateCameraLocation().

Definition at line 101 of file llviewercamera.h.

Referenced by getAngularVelocityStat(), and updateCameraLocation().

Definition at line 102 of file llviewercamera.h.

Referenced by calcProjection(), and getProjection().

Definition at line 103 of file llviewercamera.h.

Referenced by getModelview().

Definition at line 105 of file llviewercamera.h.

Referenced by getPointOfInterest(), and updateCameraLocation().

Definition at line 106 of file llviewercamera.h.

Referenced by getPixelMeterRatio(), LLViewerCamera(), and updateCameraLocation().

Definition at line 107 of file llviewercamera.h.

Referenced by getScreenPixelArea(), LLViewerCamera(), and updateCameraLocation().

Definition at line 108 of file llviewercamera.h.

Referenced by getZoomFactor(), LLViewerCamera(), setPerspective(), and setZoomParameters().


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

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