llhudeffectlookat.cpp File Reference

LLHUDEffectLookAt class implementation. More...

#include "llviewerprecompiledheaders.h"
#include "llhudeffectlookat.h"
#include "message.h"
#include "llagent.h"
#include "llvoavatar.h"
#include "lldrawable.h"
#include "llviewerobjectlist.h"
#include "llsphere.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-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 llhudeffectlookat.cpp.


Function Documentation

static BOOL loadAttentions (  )  [static]

Definition at line 178 of file llhudeffectlookat.cpp.

References LLXmlTree::addAttributeString(), FALSE, gDirUtilp, LLXmlTreeNode::getChildByName(), LLDir::getExpandedFilename(), LLXmlTreeNode::getFastAttributeString(), LLXmlTreeNode::getNextNamedChild(), LLXmlTreeNode::hasName(), LL_PATH_CHARACTER, llendl, llwarns, loadGender(), and TRUE.

Referenced by LLHUDEffectLookAt::LLHUDEffectLookAt().

static BOOL loadGender ( LLXmlTreeNode gender  )  [static]

Definition at line 142 of file llhudeffectlookat.cpp.

References FALSE, gBoyAttentions, LLXmlTreeNode::getAttributeString(), LLXmlTreeNode::getChildByName(), LLXmlTreeNode::getNextNamedChild(), gGirlAttentions, LOOKAT_TARGET_AUTO_LISTEN, LOOKAT_TARGET_CONVERSATION, LOOKAT_TARGET_FOCUS, LOOKAT_TARGET_FREELOOK, LOOKAT_TARGET_HOVER, LOOKAT_TARGET_IDLE, LOOKAT_TARGET_MOUSELOOK, LOOKAT_TARGET_RESPOND, LOOKAT_TARGET_SELECT, MAX_TIMEOUT, LLAttention::mPriority, LLAttention::mTimeout, and TRUE.

Referenced by loadAttentions().


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 110 of file llhudeffectlookat.cpp.

LLAttentionSet gBoyAttentions(BOY_ATTS) [static]

Referenced by loadGender(), and LLHUDEffectLookAt::update().

LLAttentionSet gGirlAttentions(GIRL_ATTS)

Referenced by LLHUDEffectLookAt::LLHUDEffectLookAt(), loadGender(), and LLHUDEffectLookAt::update().

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 123 of file llhudeffectlookat.cpp.

const S32 LOOKAT_TYPE = 56

Definition at line 55 of file llhudeffectlookat.cpp.

Referenced by LLHUDEffectLookAt::packData(), and LLHUDEffectLookAt::unpackData().

const F32 MAX_SENDS_PER_SEC = 4.f

Definition at line 59 of file llhudeffectlookat.cpp.

Referenced by LLHUDEffectLookAt::setLookAt(), and LLHUDEffectPointAt::setPointAt().

const F32 MAX_TIMEOUT = F32_MAX / 2.f

Definition at line 66 of file llhudeffectlookat.cpp.

Referenced by loadGender().

const F32 MIN_DELTAPOS_FOR_UPDATE = 0.05f

Definition at line 61 of file llhudeffectlookat.cpp.

Referenced by LLHUDEffectLookAt::setLookAt(), and LLHUDEffectPointAt::setPointAt().

const F32 MIN_TARGET_OFFSET_SQUARED = 0.0001f

Definition at line 62 of file llhudeffectlookat.cpp.

Referenced by LLHUDEffectLookAt::calcTargetPosition().

const S32 PKT_SIZE = 57

Definition at line 56 of file llhudeffectlookat.cpp.

Referenced by LLHUDEffectPointAt::packData(), LLHUDEffectLookAt::packData(), LLHUDEffectPointAt::unpackData(), and LLHUDEffectLookAt::unpackData().

const S32 SOURCE_AVATAR = 0

Definition at line 52 of file llhudeffectlookat.cpp.

Referenced by LLHUDEffectPointAt::packData(), LLHUDEffectLookAt::packData(), LLHUDEffectPointAt::unpackData(), and LLHUDEffectLookAt::unpackData().

const S32 TARGET_OBJECT = 16

Definition at line 53 of file llhudeffectlookat.cpp.

Referenced by LLHUDEffectPointAt::packData(), LLHUDEffectLookAt::packData(), LLHUDEffectPointAt::unpackData(), and LLHUDEffectLookAt::unpackData().

const S32 TARGET_POS = 32

Definition at line 54 of file llhudeffectlookat.cpp.

Referenced by LLHUDEffectPointAt::packData(), LLHUDEffectLookAt::packData(), LLHUDEffectPointAt::unpackData(), and LLHUDEffectLookAt::unpackData().


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