LLHoverView Class Reference

#include <llhoverview.h>

Inheritance diagram for LLHoverView:

Inheritance graph
[legend]
Collaboration diagram for LLHoverView:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLHoverView (const std::string &name, const LLRect &rect)
 ~LLHoverView ()
virtual EWidgetType getWidgetType () const
virtual LLString getWidgetTag () const
void draw ()
void updateHover (LLTool *current_tool)
void cancelHover ()
void resetLastHoverObject ()
void setHoverActive (const BOOL active)
void setTyping (BOOL b)
BOOL isHovering () const
BOOL isHoveringObject () const
BOOL isHoveringLand () const
LLViewerObjectgetLastHoverObject () const

Static Public Member Functions

static void pickCallback (S32 x, S32 y, MASK mask)

Static Public Attributes

static BOOL sShowHoverTips = TRUE

Protected Member Functions

void updateText ()

Protected Attributes

LLFrameTimer mStartHoverTimer
BOOL mStartHoverPickTimer
BOOL mDoneHoverPick
BOOL mHoverActive
LLCoordGL mHoverPos
LLFrameTimer mHoverTimer
LLLinkedList< LLStringmText
BOOL mUseHover
LLPointer< LLViewerObjectmLastHoverObject
LLVector3d mHoverLandGlobal
LLVector3d mHoverOffset
BOOL mTyping

Detailed Description

Definition at line 52 of file llhoverview.h.


Constructor & Destructor Documentation

LLHoverView::LLHoverView ( const std::string &  name,
const LLRect rect 
)

Definition at line 93 of file llhoverview.cpp.

References LLVector3d::clearVec(), FALSE, mDoneHoverPick, mHoverActive, mHoverOffset, mStartHoverPickTimer, mTyping, mUseHover, and TRUE.

LLHoverView::~LLHoverView (  ) 

Definition at line 104 of file llhoverview.cpp.

References mText.


Member Function Documentation

void LLHoverView::cancelHover (  ) 

Definition at line 198 of file llhoverview.cpp.

References FALSE, gSelectMgr, mDoneHoverPick, mStartHoverPickTimer, mStartHoverTimer, NULL, LLFrameTimer::reset(), setHoverActive(), and LLSelectMgr::setHoverObject().

Referenced by LLViewerWindow::handleKey(), LLViewerWindow::handleMouseDown(), LLViewerWindow::handleMouseUp(), LLViewerWindow::handlePerFrameHover(), LLViewerWindow::handleRightMouseDown(), LLViewerWindow::handleRightMouseUp(), LLViewerWindow::hideCursor(), and updateHover().

void LLHoverView::draw (  )  [virtual]

Reimplemented from LLView.

Definition at line 635 of file llhoverview.cpp.

References LLViewerImage::bindTexture(), bottom, CLICK_ACTION_NONE, f, FALSE, gAgent, gColors, LLControlGroup::getColor(), LLFrameTimer::getElapsedTimeF32(), LLImageGL::getHeight(), LLViewerImageList::getImage(), getLastHoverObject(), LLFontGL::getLineHeight(), LLResMgr::getRes(), LLControlGroup::getS32(), LLControlGroup::getString(), LLViewerWindow::getVirtualWindowRect(), LLView::getVisible(), LLImageGL::getWidth(), LLFontGL::getWidth(), gImageList, gl_segmented_rect_2d_tex(), glColor4fv, gResMgr, gSavedSettings, gViewerArt, gViewerWindow, LLPrimitive::isAvatar(), isHovering(), isHoveringObject(), LLFontGL::LEFT, left, llfloor(), LLFONT_SANSSERIF_SMALL, llmax(), LOOKAT_TARGET_HOVER, LLRectBase< Type >::mBottom, LLVector3d::mdV, mHoverActive, mHoverOffset, mHoverPos, mHoverTimer, MIPMAP_FALSE, mLastHoverObject, LLRectBase< Type >::mLeft, LLView::mRect, LLRectBase< Type >::mRight, mText, LLRectBase< Type >::mTop, LLColor4::mV, LLCoord::mX, LLCoord::mY, LLFontGL::renderUTF8(), right, S32, LLRectBase< Type >::set(), LLAgent::setLookAt(), sShowHoverTips, LLFontGL::TOP, top, LLView::translateIntoRect(), TRUE, VALPHA, VX, VY, VZ, and LLVector3::zero.

LLViewerObject * LLHoverView::getLastHoverObject (  )  const

Definition at line 795 of file llhoverview.cpp.

References LLPointer< Type >::isNull(), mLastHoverObject, and NULL.

Referenced by LLTextureView::draw(), draw(), LLToolPie::handleHover(), LLViewerObjectList::updateApparentAngles(), and updateText().

LLString LLHoverView::getWidgetTag (  )  const [virtual]

Implements LLView.

Definition at line 115 of file llhoverview.cpp.

References LL_HOVER_VIEW_TAG.

EWidgetType LLHoverView::getWidgetType (  )  const [virtual]

Implements LLView.

Definition at line 110 of file llhoverview.cpp.

References WIDGET_TYPE_HOVER_VIEW.

BOOL LLHoverView::isHovering (  )  const [inline]

Definition at line 76 of file llhoverview.h.

References isHoveringLand(), and isHoveringObject().

Referenced by draw().

BOOL LLHoverView::isHoveringLand (  )  const

Definition at line 783 of file llhoverview.cpp.

References LLVector3d::isExactlyZero(), and mHoverLandGlobal.

Referenced by isHovering().

BOOL LLHoverView::isHoveringObject (  )  const

Definition at line 789 of file llhoverview.cpp.

References LLPointer< Type >::isNull(), and mLastHoverObject.

Referenced by draw(), and isHovering().

void LLHoverView::pickCallback ( S32  x,
S32  y,
MASK  mask 
) [static]

Definition at line 161 of file llhoverview.cpp.

References gHoverView, gLastHitPosGlobal, gParcelMgr, gSelectMgr, gViewerWindow, LLViewerWindow::lastObjectHit(), LLViewerWindow::lastObjectHitOffset(), mDoneHoverPick, mHoverLandGlobal, mHoverOffset, mLastHoverObject, NULL, LLViewerParcelMgr::requestHoverParcelProperties(), setHoverActive(), LLSelectMgr::setHoverObject(), TRUE, and LLVector3d::zero.

Referenced by updateHover().

void LLHoverView::resetLastHoverObject (  ) 

Definition at line 212 of file llhoverview.cpp.

References mLastHoverObject, and NULL.

Referenced by LLToolPie::handleMouseUp().

void LLHoverView::setHoverActive ( const BOOL  active  ) 

Definition at line 767 of file llhoverview.cpp.

References LLViewerWindow::getCurrentMouse(), gViewerWindow, mHoverActive, mHoverPos, mHoverTimer, and LLFrameTimer::reset().

Referenced by cancelHover(), and pickCallback().

void LLHoverView::setTyping ( BOOL  b  ) 

Definition at line 192 of file llhoverview.cpp.

References mTyping.

Referenced by LLViewerWindow::handleKey(), and LLViewerWindow::handleMouseMove().

void LLHoverView::updateHover ( LLTool current_tool  ) 

Definition at line 120 of file llhoverview.cpp.

References LLAgent::cameraMouselook(), cancelHover(), DELAY_BEFORE_SHOW_TIP, gAgent, gCamera, LLViewerCamera::getAngularVelocityStat(), LLViewerWindow::getCurrentMouseX(), LLViewerWindow::getCurrentMouseY(), LLFrameTimer::getElapsedTimeF32(), LLViewerWindow::getMouseVelocityStat(), LLStat::getPrev(), LLViewerCamera::getVelocityStat(), gToolParcel, gToolPie, gViewerWindow, LLViewerWindow::hitObjectOrLandGlobalAsync(), mDoneHoverPick, mStartHoverPickTimer, mStartHoverTimer, mText, mTyping, mUseHover, pickCallback(), LLFrameTimer::reset(), TRUE, and updateText().

Referenced by LLViewerWindow::handlePerFrameHover().

void LLHoverView::updateText (  )  [protected]

Definition at line 217 of file llhoverview.cpp.

References DB_FIRST_NAME_BUF_SIZE, DB_GROUP_NAME_BUF_SIZE, DB_LAST_NAME_BUF_SIZE, DEFAULT_DESC, FALSE, LLViewerObject::flagAllowInventoryAdd(), LLViewerObject::flagHandleTouch(), LLViewerObject::flagPhantom(), LLViewerObject::flagScripted(), LLViewerObject::flagTakesMoney(), LLViewerObject::flagTemporary(), LLSaleInfo::FS_COPY, gAgent, gCacheName, LLParcel::getAllowDamage(), LLParcel::getAllowFly(), LLParcel::getAllowGroupModify(), LLParcel::getAllowGroupScripts(), LLParcel::getAllowModify(), LLParcel::getAllowOtherScripts(), LLParcel::getAllowTerraform(), LLControlGroup::getBOOL(), LLPermissions::getGroup(), LLCacheName::getGroupName(), LLSelectMgr::getHoverNode(), LLViewerParcelMgr::getHoverParcel(), LLViewerParcelMgr::getHoverParcelHeight(), LLViewerParcelMgr::getHoverParcelWidth(), LLAgent::getID(), LLParcel::getIsGroupOwned(), getLastHoverObject(), LLPermissions::getMaskEveryone(), LLPermissions::getMaskOwner(), LLParcel::getName(), LLCacheName::getName(), LLViewerObject::getNVPair(), LLPermissions::getOwner(), LLParcel::getOwnerID(), LLParcel::getParcelFlag(), LLXform::getParent(), LLViewerObject::getRootEdit(), LLParcel::getSalePrice(), LLSaleInfo::getSalePrice(), LLSaleInfo::getSaleType(), LLNameValue::getString(), gParcelMgr, gSavedSettings, gSelectMgr, height, LLViewerObject::isAttachment(), LLPrimitive::isAvatar(), LLSaleInfo::isForSale(), LLPermissions::isGroupOwned(), LLViewerObject::isHUDAttachment(), MAX_STRING, LLSelectNode::mDescription, mHoverLandGlobal, LLSelectNode::mName, LLSelectNode::mPermissions, LLSelectNode::mSaleInfo, mText, LLSelectNode::mValid, LLUUID::null, NULL, PERM_COPY, PERM_TRANSFER, LLViewerObject::permCopy(), PF_FOR_SALE, S32, LLViewerObject::usePhysics(), width, and LLVector3d::zero.

Referenced by updateHover().


Member Data Documentation

BOOL LLHoverView::mDoneHoverPick [protected]

Definition at line 92 of file llhoverview.h.

Referenced by cancelHover(), LLHoverView(), pickCallback(), and updateHover().

BOOL LLHoverView::mHoverActive [protected]

Definition at line 94 of file llhoverview.h.

Referenced by draw(), LLHoverView(), and setHoverActive().

LLVector3d LLHoverView::mHoverLandGlobal [protected]

Definition at line 108 of file llhoverview.h.

Referenced by isHoveringLand(), pickCallback(), and updateText().

LLVector3d LLHoverView::mHoverOffset [protected]

Definition at line 109 of file llhoverview.h.

Referenced by draw(), LLHoverView(), and pickCallback().

LLCoordGL LLHoverView::mHoverPos [protected]

Definition at line 95 of file llhoverview.h.

Referenced by draw(), and setHoverActive().

LLFrameTimer LLHoverView::mHoverTimer [protected]

Definition at line 98 of file llhoverview.h.

Referenced by draw(), and setHoverActive().

LLPointer<LLViewerObject> LLHoverView::mLastHoverObject [protected]

Definition at line 105 of file llhoverview.h.

Referenced by draw(), getLastHoverObject(), isHoveringObject(), pickCallback(), and resetLastHoverObject().

BOOL LLHoverView::mStartHoverPickTimer [protected]

Definition at line 91 of file llhoverview.h.

Referenced by cancelHover(), LLHoverView(), and updateHover().

LLFrameTimer LLHoverView::mStartHoverTimer [protected]

Definition at line 90 of file llhoverview.h.

Referenced by cancelHover(), and updateHover().

LLLinkedList<LLString> LLHoverView::mText [protected]

Definition at line 100 of file llhoverview.h.

Referenced by draw(), updateHover(), updateText(), and ~LLHoverView().

BOOL LLHoverView::mTyping [protected]

Definition at line 111 of file llhoverview.h.

Referenced by LLHoverView(), setTyping(), and updateHover().

BOOL LLHoverView::mUseHover [protected]

Definition at line 102 of file llhoverview.h.

Referenced by LLHoverView(), and updateHover().

BOOL LLHoverView::sShowHoverTips = TRUE [static]

Definition at line 116 of file llhoverview.h.

Referenced by cleanup_saved_settings(), draw(), LLViewCheckShowHoverTips::handleEvent(), LLViewShowHoverTips::handleEvent(), and saved_settings_to_globals().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:24 2010 for Second Life Viewer by  doxygen 1.4.7