llhudeffectlookat.cpp File Reference

LLHUDEffectLookAt class implementation. More...

#include "llviewerprecompiledheaders.h"
#include "llhudeffectlookat.h"
#include "llglimmediate.h"
#include "message.h"
#include "llagent.h"
#include "llvoavatar.h"
#include "lldrawable.h"
#include "llviewerobjectlist.h"
#include "llrendersphere.h"
#include "llselectmgr.h"
#include "llglheaders.h"
#include "llxmltree.h"

Include dependency graph for llhudeffectlookat.cpp:

Go to the source code of this file.

Classes

class  LLAttention
class  LLAttentionSet

Functions

static BOOL loadGender (LLXmlTreeNode *gender)
static BOOL loadAttentions ()

Variables

const S32 SOURCE_AVATAR = 0
const S32 TARGET_OBJECT = 16
const S32 TARGET_POS = 32
const S32 LOOKAT_TYPE = 56
const S32 PKT_SIZE = 57
const F32 MAX_SENDS_PER_SEC = 4.f
const F32 MIN_DELTAPOS_FOR_UPDATE = 0.05f
const F32 MIN_TARGET_OFFSET_SQUARED = 0.0001f
const F32 MAX_TIMEOUT = F32_MAX / 2.f
static const LLAttention BOY_ATTS []
static const LLAttention GIRL_ATTS []
static LLAttentionSet gBoyAttentions (BOY_ATTS)
static LLAttentionSet gGirlAttentions (GIRL_ATTS)


Detailed Description

LLHUDEffectLookAt class implementation.

LicenseInfo
firstyear=2002&license=viewergpl

Copyright (c) 2002-2008, 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://secondlifegrid.net/programs/open_source/licensing/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://secondlifegrid.net/programs/open_source/licensing/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 llhudeffectlookat.cpp.


Function Documentation

static BOOL loadAttentions (  )  [static]

static BOOL loadGender ( LLXmlTreeNode gender  )  [static]


Variable Documentation

const LLAttention BOY_ATTS[] [static]

Initial value:

 { 
                        LLAttention(MAX_TIMEOUT, 0, "None",                      LLColor3(0.3f, 0.3f, 0.3f)), 
                        LLAttention(3.f,         1, "Idle",                  LLColor3(0.5f, 0.5f, 0.5f)), 
                        LLAttention(4.f,         3, "AutoListen",        LLColor3(0.5f, 0.5f, 0.5f)), 
                        LLAttention(2.f,         2, "FreeLook",          LLColor3(0.5f, 0.5f, 0.9f)), 
                        LLAttention(4.f,         3, "Respond",       LLColor3(0.0f, 0.0f, 0.0f)), 
                        LLAttention(1.f,         4, "Hover",             LLColor3(0.5f, 0.9f, 0.5f)), 
                        LLAttention(MAX_TIMEOUT, 0, "Conversation",  LLColor3(0.1f, 0.1f, 0.5f)), 
                        LLAttention(MAX_TIMEOUT, 6, "Select",            LLColor3(0.9f, 0.5f, 0.5f)), 
                        LLAttention(MAX_TIMEOUT, 6, "Focus",             LLColor3(0.9f, 0.5f, 0.9f)), 
                        LLAttention(MAX_TIMEOUT, 7, "Mouselook",         LLColor3(0.9f, 0.9f, 0.5f)), 
                        LLAttention(0.f,         8, "Clear",             LLColor3(1.0f, 1.0f, 1.0f)), 
                }

Definition at line 112 of file llhudeffectlookat.cpp.

const LLAttention GIRL_ATTS[] [static]

Initial value:

 { 
                        LLAttention(MAX_TIMEOUT, 0, "None",                      LLColor3(0.3f, 0.3f, 0.3f)), 
                        LLAttention(3.f,         1, "Idle",                  LLColor3(0.5f, 0.5f, 0.5f)), 
                        LLAttention(4.f,         3, "AutoListen",        LLColor3(0.5f, 0.5f, 0.5f)), 
                        LLAttention(2.f,         2, "FreeLook",          LLColor3(0.5f, 0.5f, 0.9f)), 
                        LLAttention(4.f,         3, "Respond",       LLColor3(0.0f, 0.0f, 0.0f)), 
                        LLAttention(1.f,         4, "Hover",             LLColor3(0.5f, 0.9f, 0.5f)), 
                        LLAttention(MAX_TIMEOUT, 0, "Conversation",  LLColor3(0.1f, 0.1f, 0.5f)), 
                        LLAttention(MAX_TIMEOUT, 6, "Select",            LLColor3(0.9f, 0.5f, 0.5f)), 
                        LLAttention(MAX_TIMEOUT, 6, "Focus",             LLColor3(0.9f, 0.5f, 0.9f)), 
                        LLAttention(MAX_TIMEOUT, 7, "Mouselook",         LLColor3(0.9f, 0.9f, 0.5f)), 
                        LLAttention(0.f,         8, "Clear",             LLColor3(1.0f, 1.0f, 1.0f)), 
                }

Definition at line 125 of file llhudeffectlookat.cpp.

const S32 LOOKAT_TYPE = 56

const F32 MAX_SENDS_PER_SEC = 4.f

const F32 MAX_TIMEOUT = F32_MAX / 2.f

Definition at line 68 of file llhudeffectlookat.cpp.

Referenced by loadGender().

const F32 MIN_TARGET_OFFSET_SQUARED = 0.0001f

Definition at line 64 of file llhudeffectlookat.cpp.

Referenced by LLHUDEffectLookAt::calcTargetPosition().

const S32 PKT_SIZE = 57

const S32 SOURCE_AVATAR = 0

const S32 TARGET_OBJECT = 16

const S32 TARGET_POS = 32


Generated on Fri May 16 08:36:44 2008 for SecondLife by  doxygen 1.5.5