LLBBox Class Reference

#include <llbbox.h>

Collaboration diagram for LLBBox:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLBBox ()
 LLBBox (const LLVector3 &pos_agent, const LLQuaternion &rot, const LLVector3 &min_local, const LLVector3 &max_local)
const LLVector3getPositionAgent () const
const LLQuaterniongetRotation () const
const LLVector3getMinLocal () const
void setMinLocal (const LLVector3 &min)
const LLVector3getMaxLocal () const
void setMaxLocal (const LLVector3 &max)
LLVector3 getCenterLocal () const
LLVector3 getCenterAgent () const
LLVector3 getExtentLocal () const
BOOL containsPointLocal (const LLVector3 &p) const
BOOL containsPointAgent (const LLVector3 &p) const
BOOL intersects (const LLBBox &b) const
void addPointAgent (LLVector3 p)
void addBBoxAgent (const LLBBox &b)
void addPointLocal (const LLVector3 &p)
void addBBoxLocal (const LLBBox &b)
void expand (F32 delta)
LLVector3 localToAgent (const LLVector3 &v) const
LLVector3 agentToLocal (const LLVector3 &v) const
LLVector3 localToAgentBasis (const LLVector3 &v) const
LLVector3 agentToLocalBasis (const LLVector3 &v) const

Private Attributes

LLVector3 mMinLocal
LLVector3 mMaxLocal
LLVector3 mPosAgent
LLQuaternion mRotation
BOOL mEmpty


Detailed Description

Definition at line 42 of file llbbox.h.


Constructor & Destructor Documentation

LLBBox::LLBBox (  )  [inline]

Definition at line 45 of file llbbox.h.

References mEmpty, and TRUE.

LLBBox::LLBBox ( const LLVector3 pos_agent,
const LLQuaternion rot,
const LLVector3 min_local,
const LLVector3 max_local 
) [inline]

Definition at line 46 of file llbbox.h.


Member Function Documentation

const LLVector3& LLBBox::getPositionAgent (  )  const [inline]

Definition at line 56 of file llbbox.h.

References mPosAgent.

Referenced by LLManipScale::highlightManipulators(), and LLManipScale::render().

Here is the caller graph for this function:

const LLQuaternion& LLBBox::getRotation (  )  const [inline]

Definition at line 57 of file llbbox.h.

References mRotation.

Referenced by LLSelectMgr::getGrid(), LLManipScale::highlightManipulators(), LLManipScale::render(), and LLManipScale::updateSnapGuides().

Here is the caller graph for this function:

const LLVector3& LLBBox::getMinLocal (  )  const [inline]

Definition at line 59 of file llbbox.h.

References mMinLocal.

Referenced by LLManipScale::highlightManipulators(), LLManipScale::renderCorners(), LLManipScale::renderFaces(), and LLManipScale::unitVectorToLocalBBoxExtent().

Here is the caller graph for this function:

void LLBBox::setMinLocal ( const LLVector3 min  )  [inline]

Definition at line 60 of file llbbox.h.

References mMinLocal.

const LLVector3& LLBBox::getMaxLocal (  )  const [inline]

void LLBBox::setMaxLocal ( const LLVector3 max  )  [inline]

Definition at line 63 of file llbbox.h.

References mMaxLocal.

LLVector3 LLBBox::getCenterLocal (  )  const [inline]

LLVector3 LLBBox::getCenterAgent (  )  const [inline]

LLVector3 LLBBox::getExtentLocal (  )  const [inline]

BOOL LLBBox::containsPointLocal ( const LLVector3 p  )  const

Definition at line 135 of file llbbox.cpp.

References FALSE, mMaxLocal, mMinLocal, LLVector3::mV, TRUE, VX, VY, and VZ.

Referenced by containsPointAgent().

Here is the caller graph for this function:

BOOL LLBBox::containsPointAgent ( const LLVector3 p  )  const

Definition at line 149 of file llbbox.cpp.

References agentToLocal(), and containsPointLocal().

Referenced by LLAgent::calcFocusOffset().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLBBox::intersects ( const LLBBox b  )  const

void LLBBox::addPointAgent ( LLVector3  p  ) 

Definition at line 59 of file llbbox.cpp.

References addPointLocal(), mPosAgent, mRotation, and LLVector3::rotVec().

Here is the call graph for this function:

void LLBBox::addBBoxAgent ( const LLBBox b  ) 

Definition at line 67 of file llbbox.cpp.

References addPointLocal(), LLVector3::clearVec(), i, mEmpty, mMaxLocal, mMinLocal, mPosAgent, mRotation, LLVector3::mV, LLMatrix4::rotate(), S32, LLVector3::setVec(), LLMatrix4::translate(), VX, VY, and VZ.

Referenced by LLVOAvatar::getHUDBBox(), and LLSelectMgr::updateSelectionCenter().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLBBox::addPointLocal ( const LLVector3 p  ) 

Definition at line 40 of file llbbox.cpp.

References FALSE, llmax(), llmin(), mEmpty, mMaxLocal, mMinLocal, LLVector3::mV, VX, VY, and VZ.

Referenced by addBBoxAgent(), addBBoxLocal(), addPointAgent(), and LLVOAvatar::getHUDBBox().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLBBox::addBBoxLocal ( const LLBBox b  )  [inline]

Definition at line 79 of file llbbox.h.

References addPointLocal(), mMaxLocal, and mMinLocal.

Here is the call graph for this function:

void LLBBox::expand ( F32  delta  ) 

Definition at line 98 of file llbbox.cpp.

References mMaxLocal, mMinLocal, LLVector3::mV, VX, VY, and VZ.

LLVector3 LLBBox::localToAgent ( const LLVector3 v  )  const

Definition at line 108 of file llbbox.cpp.

References mPosAgent, mRotation, and LLMatrix4::translate().

Referenced by getCenterAgent(), LLManipScale::handleMouseDownOnPart(), LLManipScale::stretchFace(), and LLManipScale::updateSnapGuides().

Here is the call graph for this function:

Here is the caller graph for this function:

LLVector3 LLBBox::agentToLocal ( const LLVector3 v  )  const

Definition at line 115 of file llbbox.cpp.

References mPosAgent, mRotation, LLMatrix4::rotate(), and LLMatrix4::translate().

Referenced by containsPointAgent(), and LLManipScale::stretchFace().

Here is the call graph for this function:

Here is the caller graph for this function:

LLVector3 LLBBox::localToAgentBasis ( const LLVector3 v  )  const

Definition at line 123 of file llbbox.cpp.

References mRotation.

Referenced by LLManipScale::dragFace().

Here is the caller graph for this function:

LLVector3 LLBBox::agentToLocalBasis ( const LLVector3 v  )  const

Definition at line 129 of file llbbox.cpp.

References mRotation.

Referenced by LLManipScale::renderFaces().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 96 of file llbbox.h.

Referenced by addBBoxAgent(), addPointAgent(), agentToLocal(), getPositionAgent(), and localToAgent().

BOOL LLBBox::mEmpty [private]

Definition at line 98 of file llbbox.h.

Referenced by addBBoxAgent(), addPointLocal(), and LLBBox().


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

Generated on Fri May 16 08:39:27 2008 for SecondLife by  doxygen 1.5.5