llfollowcam.cpp File Reference

LLFollowCam class implementation. More...

#include "llviewerprecompiledheaders.h"
#include "llfollowcam.h"
#include "llagent.h"

Include dependency graph for llfollowcam.cpp:

Go to the source code of this file.

Variables

const F32 ONE_HALF = 0.5
const F32 FOLLOW_CAM_ZOOM_FACTOR = 0.1f
const F32 FOLLOW_CAM_MIN_ZOOM_AMOUNT = 0.1f
const F32 DISTANCE_EPSILON = 0.0001f
const F32 DEFAULT_MAX_DISTANCE_FROM_SUBJECT = 1000.0
const F32 FOLLOW_CAM_MIN_POSITION_LAG = 0.0f
const F32 FOLLOW_CAM_DEFAULT_POSITION_LAG = 0.1f
const F32 FOLLOW_CAM_MAX_POSITION_LAG = 3.0f
const F32 FOLLOW_CAM_MIN_FOCUS_LAG = 0.0f
const F32 FOLLOW_CAM_DEFAULT_FOCUS_LAG = 0.1f
const F32 FOLLOW_CAM_MAX_FOCUS_LAG = 3.0f
const F32 FOLLOW_CAM_MIN_POSITION_THRESHOLD = 0.0f
const F32 FOLLOW_CAM_DEFAULT_POSITION_THRESHOLD = 1.0f
const F32 FOLLOW_CAM_MAX_POSITION_THRESHOLD = 4.0f
const F32 FOLLOW_CAM_MIN_FOCUS_THRESHOLD = 0.0f
const F32 FOLLOW_CAM_DEFAULT_FOCUS_THRESHOLD = 1.0f
const F32 FOLLOW_CAM_MAX_FOCUS_THRESHOLD = 4.0f
const F32 FOLLOW_CAM_MIN_DISTANCE = 0.5f
const F32 FOLLOW_CAM_DEFAULT_DISTANCE = 3.0f
const F32 FOLLOW_CAM_MIN_PITCH = -45.0f
const F32 FOLLOW_CAM_DEFAULT_PITCH = 0.0f
const F32 FOLLOW_CAM_MAX_PITCH = 80.0f
const F32 FOLLOW_CAM_MIN_FOCUS_OFFSET = -10.0f
const LLVector3 FOLLOW_CAM_DEFAULT_FOCUS_OFFSET = LLVector3(1.0f, 0.f, 0.f)
const F32 FOLLOW_CAM_MAX_FOCUS_OFFSET = 10.0f
const F32 FOLLOW_CAM_MIN_BEHINDNESS_LAG = 0.0f
const F32 FOLLOW_CAM_DEFAULT_BEHINDNESS_LAG = 0.f
const F32 FOLLOW_CAM_MAX_BEHINDNESS_LAG = 3.0f
const F32 FOLLOW_CAM_MIN_BEHINDNESS_ANGLE = 0.0f
const F32 FOLLOW_CAM_DEFAULT_BEHINDNESS_ANGLE = 10.0f
const F32 FOLLOW_CAM_MAX_BEHINDNESS_ANGLE = 180.0f
const F32 FOLLOW_CAM_BEHINDNESS_EPSILON = 1.0f


Detailed Description

LLFollowCam class implementation.

Author:
Jeffrey Ventrella
LicenseInfo
firstyear=2005&license=viewergpl

Copyright (c) 2005-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llfollowcam.cpp.


Variable Documentation

const F32 DEFAULT_MAX_DISTANCE_FROM_SUBJECT = 1000.0

Definition at line 50 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::LLFollowCamParams().

const F32 DISTANCE_EPSILON = 0.0001f

Definition at line 49 of file llfollowcam.cpp.

Referenced by LLFollowCam::update().

const F32 FOLLOW_CAM_BEHINDNESS_EPSILON = 1.0f

Definition at line 117 of file llfollowcam.cpp.

Referenced by LLFollowCam::updateBehindnessConstraint().

const F32 FOLLOW_CAM_DEFAULT_BEHINDNESS_ANGLE = 10.0f

Definition at line 115 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::LLFollowCamParams().

const F32 FOLLOW_CAM_DEFAULT_BEHINDNESS_LAG = 0.f

Definition at line 108 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::LLFollowCamParams().

const F32 FOLLOW_CAM_DEFAULT_DISTANCE = 3.0f

Definition at line 84 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::LLFollowCamParams().

const F32 FOLLOW_CAM_DEFAULT_FOCUS_LAG = 0.1f

Definition at line 63 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::LLFollowCamParams().

const LLVector3 FOLLOW_CAM_DEFAULT_FOCUS_OFFSET = LLVector3(1.0f, 0.f, 0.f)

Definition at line 101 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::LLFollowCamParams().

const F32 FOLLOW_CAM_DEFAULT_FOCUS_THRESHOLD = 1.0f

Definition at line 77 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::LLFollowCamParams().

const F32 FOLLOW_CAM_DEFAULT_PITCH = 0.0f

Definition at line 93 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::LLFollowCamParams().

const F32 FOLLOW_CAM_DEFAULT_POSITION_LAG = 0.1f

Definition at line 56 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::LLFollowCamParams().

const F32 FOLLOW_CAM_DEFAULT_POSITION_THRESHOLD = 1.0f

Definition at line 70 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::LLFollowCamParams().

const F32 FOLLOW_CAM_MAX_BEHINDNESS_ANGLE = 180.0f

Definition at line 116 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::setBehindnessAngle(), and LLFollowCam::updateBehindnessConstraint().

const F32 FOLLOW_CAM_MAX_BEHINDNESS_LAG = 3.0f

Definition at line 109 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::setBehindnessLag().

const F32 FOLLOW_CAM_MAX_FOCUS_LAG = 3.0f

Definition at line 64 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::setFocusLag().

const F32 FOLLOW_CAM_MAX_FOCUS_OFFSET = 10.0f

Definition at line 102 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::setFocusOffset().

const F32 FOLLOW_CAM_MAX_FOCUS_THRESHOLD = 4.0f

Definition at line 78 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::setFocusThreshold().

const F32 FOLLOW_CAM_MAX_PITCH = 80.0f

Definition at line 94 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::setPitch().

const F32 FOLLOW_CAM_MAX_POSITION_LAG = 3.0f

Definition at line 57 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::setPositionLag().

const F32 FOLLOW_CAM_MAX_POSITION_THRESHOLD = 4.0f

Definition at line 71 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::setPositionThreshold().

const F32 FOLLOW_CAM_MIN_BEHINDNESS_ANGLE = 0.0f

Definition at line 114 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::setBehindnessAngle().

const F32 FOLLOW_CAM_MIN_BEHINDNESS_LAG = 0.0f

Definition at line 107 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::setBehindnessLag().

const F32 FOLLOW_CAM_MIN_DISTANCE = 0.5f

Definition at line 83 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::setDistance(), and LLFollowCam::zoom().

const F32 FOLLOW_CAM_MIN_FOCUS_LAG = 0.0f

Definition at line 62 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::setFocusLag().

const F32 FOLLOW_CAM_MIN_FOCUS_OFFSET = -10.0f

Definition at line 100 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::setFocusOffset().

const F32 FOLLOW_CAM_MIN_FOCUS_THRESHOLD = 0.0f

Definition at line 76 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::setFocusThreshold().

const F32 FOLLOW_CAM_MIN_PITCH = -45.0f

Definition at line 92 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::setPitch().

const F32 FOLLOW_CAM_MIN_POSITION_LAG = 0.0f

Definition at line 55 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::setPositionLag().

const F32 FOLLOW_CAM_MIN_POSITION_THRESHOLD = 0.0f

Definition at line 69 of file llfollowcam.cpp.

Referenced by LLFollowCamParams::setPositionThreshold().

const F32 FOLLOW_CAM_MIN_ZOOM_AMOUNT = 0.1f

Definition at line 48 of file llfollowcam.cpp.

Referenced by LLFollowCam::zoom().

const F32 FOLLOW_CAM_ZOOM_FACTOR = 0.1f

Definition at line 47 of file llfollowcam.cpp.

Referenced by LLFollowCam::zoom().

const F32 ONE_HALF = 0.5

Definition at line 46 of file llfollowcam.cpp.


Generated on Thu Jul 1 06:10:15 2010 for Second Life Viewer by  doxygen 1.4.7