LLFollowCam Class Reference

#include <llfollowcam.h>

Inheritance diagram for LLFollowCam:

Inheritance graph
[legend]
Collaboration diagram for LLFollowCam:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLFollowCam ()
virtual ~LLFollowCam ()
void setSubjectPositionAndRotation (const LLVector3 p, const LLQuaternion r)
void update ()
void copyParams (LLFollowCamParams &params)
void reset (const LLVector3 position, const LLVector3 focus, const LLVector3 upVector)
void setMaxCameraDistantFromSubject (F32 m)
bool isZoomedToMinimumDistance ()
LLVector3 getUpVector ()
void zoom (S32)
virtual void setPitch (F32)
virtual void setDistance (F32)
virtual void setPosition (const LLVector3 &pos)
virtual void setFocus (const LLVector3 &focus)
virtual void setPositionLocked (bool)
virtual void setFocusLocked (bool)
LLVector3 getSimulatedPosition () const
LLVector3 getSimulatedFocus () const

Protected Member Functions

void calculatePitchSineAndCosine ()
BOOL updateBehindnessConstraint (LLVector3 focus, LLVector3 &cam_position)

Protected Attributes

F32 mPositionLagTimeScale
F32 mFocusLagTimeScale
F32 mPitchCos
F32 mPitchSin
LLGlobalVec mSimulatedPositionGlobal
LLGlobalVec mSimulatedFocusGlobal
F32 mSimulatedDistance
bool mZoomedToMinimumDistance
LLFrameTimer mTimer
LLVector3 mSubjectPosition
LLQuaternion mSubjectRotation
LLVector3 mUpVector
LLVector3 mRelativeFocus
LLVector3 mRelativePos
bool mPitchSineAndCosineNeedToBeUpdated


Detailed Description

Definition at line 120 of file llfollowcam.h.


Constructor & Destructor Documentation

LLFollowCam::LLFollowCam (  ) 

LLFollowCam::~LLFollowCam (  )  [virtual]

Definition at line 668 of file llfollowcam.cpp.


Member Function Documentation

void LLFollowCam::setSubjectPositionAndRotation ( const LLVector3  p,
const LLQuaternion  r 
)

Definition at line 516 of file llfollowcam.cpp.

References mSubjectPosition, and mSubjectRotation.

Referenced by LLAgent::updateCamera().

Here is the caller graph for this function:

void LLFollowCam::update (  ) 

void LLFollowCam::copyParams ( LLFollowCamParams params  ) 

void LLFollowCam::reset ( const LLVector3  position,
const LLVector3  focus,
const LLVector3  upVector 
)

Definition at line 570 of file llfollowcam.cpp.

References mUpVector, setFocus(), and setPosition().

Referenced by LLAgent::changeCameraToFollow().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFollowCam::setMaxCameraDistantFromSubject ( F32  m  ) 

Definition at line 578 of file llfollowcam.cpp.

References LLFollowCamParams::mMaxCameraDistantFromSubject.

Referenced by LLAgent::LLAgent().

Here is the caller graph for this function:

bool LLFollowCam::isZoomedToMinimumDistance (  ) 

Definition at line 563 of file llfollowcam.cpp.

References mZoomedToMinimumDistance.

Referenced by LLAgent::handleScrollWheel().

Here is the caller graph for this function:

LLVector3 LLFollowCam::getUpVector (  ) 

Definition at line 659 of file llfollowcam.cpp.

References mUpVector.

Referenced by LLAgent::updateCamera().

Here is the caller graph for this function:

void LLFollowCam::zoom ( S32  z  ) 

void LLFollowCam::setPitch ( F32  p  )  [virtual]

Reimplemented from LLFollowCamParams.

Definition at line 584 of file llfollowcam.cpp.

References mPitchSineAndCosineNeedToBeUpdated, and LLFollowCamParams::setPitch().

Referenced by copyParams().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFollowCam::setDistance ( F32  d  )  [virtual]

Reimplemented from LLFollowCamParams.

Definition at line 590 of file llfollowcam.cpp.

References LLFollowCamParams::mDistance, mSimulatedDistance, mZoomedToMinimumDistance, and LLFollowCamParams::setDistance().

Referenced by copyParams().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFollowCam::setPosition ( const LLVector3 pos  )  [virtual]

Reimplemented from LLFollowCamParams.

Definition at line 600 of file llfollowcam.cpp.

References gAgent, LLAgent::getPosGlobalFromAgent(), LLFollowCamParams::mPosition, LLFollowCamParams::mPositionLocked, mRelativePos, mSimulatedPositionGlobal, mSubjectPosition, mSubjectRotation, and LLFollowCamParams::setPosition().

Referenced by copyParams(), and reset().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFollowCam::setFocus ( const LLVector3 focus  )  [virtual]

Reimplemented from LLFollowCamParams.

Definition at line 613 of file llfollowcam.cpp.

References gAgent, LLAgent::getPosGlobalFromAgent(), LLFollowCamParams::mFocus, LLFollowCamParams::mFocusLocked, mRelativeFocus, mSimulatedFocusGlobal, mSubjectPosition, mSubjectRotation, and LLFollowCamParams::setFocus().

Referenced by copyParams(), and reset().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFollowCam::setPositionLocked ( bool  locked  )  [virtual]

Reimplemented from LLFollowCamParams.

Definition at line 626 of file llfollowcam.cpp.

References gAgent, LLAgent::getPosAgentFromGlobal(), mRelativePos, mSimulatedPositionGlobal, mSubjectPosition, mSubjectRotation, and LLFollowCamParams::setPositionLocked().

Referenced by copyParams().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFollowCam::setFocusLocked ( bool  locked  )  [virtual]

Reimplemented from LLFollowCamParams.

Definition at line 636 of file llfollowcam.cpp.

References gAgent, LLAgent::getPosAgentFromGlobal(), mRelativeFocus, mSimulatedFocusGlobal, mSubjectPosition, mSubjectRotation, and LLFollowCamParams::setFocusLocked().

Referenced by copyParams().

Here is the call graph for this function:

Here is the caller graph for this function:

LLVector3 LLFollowCam::getSimulatedPosition (  )  const

Definition at line 647 of file llfollowcam.cpp.

References mRelativePos, mSubjectPosition, and mSubjectRotation.

Referenced by LLAgent::calcCameraPositionTargetGlobal().

Here is the caller graph for this function:

LLVector3 LLFollowCam::getSimulatedFocus (  )  const

Definition at line 653 of file llfollowcam.cpp.

References mRelativeFocus, mSubjectPosition, and mSubjectRotation.

Referenced by LLAgent::calcFocusPositionTargetGlobal().

Here is the caller graph for this function:

void LLFollowCam::calculatePitchSineAndCosine (  )  [protected]

Definition at line 508 of file llfollowcam.cpp.

References DEG_TO_RAD, LLFollowCamParams::mPitch, mPitchCos, and mPitchSin.

Referenced by update().

Here is the caller graph for this function:

BOOL LLFollowCam::updateBehindnessConstraint ( LLVector3  focus,
LLVector3 cam_position 
) [protected]


Member Data Documentation

Definition at line 172 of file llfollowcam.h.

Definition at line 173 of file llfollowcam.h.

Definition at line 174 of file llfollowcam.h.

Referenced by calculatePitchSineAndCosine(), and update().

Definition at line 175 of file llfollowcam.h.

Referenced by calculatePitchSineAndCosine(), and update().

Definition at line 176 of file llfollowcam.h.

Referenced by setPosition(), setPositionLocked(), and update().

Definition at line 177 of file llfollowcam.h.

Referenced by setFocus(), setFocusLocked(), and update().

Definition at line 178 of file llfollowcam.h.

Referenced by LLFollowCam(), setDistance(), update(), and zoom().

Definition at line 183 of file llfollowcam.h.

Referenced by isZoomedToMinimumDistance(), LLFollowCam(), setDistance(), and zoom().

Definition at line 184 of file llfollowcam.h.

Definition at line 187 of file llfollowcam.h.

Referenced by getUpVector(), LLFollowCam(), reset(), and update().

Definition at line 188 of file llfollowcam.h.

Referenced by getSimulatedFocus(), setFocus(), setFocusLocked(), and update().

Definition at line 189 of file llfollowcam.h.

Referenced by getSimulatedPosition(), setPosition(), setPositionLocked(), and update().

Definition at line 191 of file llfollowcam.h.

Referenced by LLFollowCam(), setPitch(), and update().


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

Generated on Fri May 16 08:47:50 2008 for SecondLife by  doxygen 1.5.5