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

void LLBBox::addBBoxAgent ( const LLBBox b  ) 

Definition at line 67 of file llbbox.cpp.

References addPointLocal(), b, LLVector3::clearVec(), i, m, mEmpty, mMaxLocal, mMinLocal, mPosAgent, mRotation, S32, LLVector3::setVec(), VX, VY, and VZ.

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

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

Definition at line 79 of file llbbox.h.

References addPointLocal(), and b.

void LLBBox::addPointAgent ( LLVector3  p  ) 

Definition at line 59 of file llbbox.cpp.

References addPointLocal(), mPosAgent, mRotation, and p.

void LLBBox::addPointLocal ( const LLVector3 p  ) 

Definition at line 40 of file llbbox.cpp.

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

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

LLVector3 LLBBox::agentToLocal ( const LLVector3 v  )  const

Definition at line 115 of file llbbox.cpp.

References m, mPosAgent, mRotation, and v.

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

LLVector3 LLBBox::agentToLocalBasis ( const LLVector3 v  )  const

Definition at line 129 of file llbbox.cpp.

References m, mRotation, and v.

Referenced by LLManipScale::renderFaces().

BOOL LLBBox::containsPointAgent ( const LLVector3 p  )  const

Definition at line 149 of file llbbox.cpp.

References agentToLocal(), containsPointLocal(), and p.

BOOL LLBBox::containsPointLocal ( const LLVector3 p  )  const

Definition at line 135 of file llbbox.cpp.

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

Referenced by containsPointAgent().

void LLBBox::expand ( F32  delta  ) 

Definition at line 98 of file llbbox.cpp.

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

LLVector3 LLBBox::getCenterAgent (  )  const [inline]

Definition at line 66 of file llbbox.h.

References getCenterLocal(), and localToAgent().

Referenced by LLSelectMgr::getGrid(), LLManip::getPivotPoint(), LLManip::getSavedPivotPoint(), LLToolsLookAtSelection::handleEvent(), LLManipScale::handleMouseDownOnPart(), LLManipScale::renderFaces(), LLManipScale::renderSnapGuides(), LLSelectMgr::updateSelectionCenter(), and LLManipScale::updateSnapGuides().

LLVector3 LLBBox::getCenterLocal (  )  const [inline]

Definition at line 65 of file llbbox.h.

References mMaxLocal, and mMinLocal.

Referenced by getCenterAgent(), LLManipScale::highlightManipulators(), LLManipScale::renderFaces(), LLManipScale::renderGuidelinesPart(), LLSelectMgr::renderSilhouettes(), setup_hud_matrices(), and LLManipScale::unitVectorToLocalBBoxExtent().

LLVector3 LLBBox::getExtentLocal (  )  const [inline]

Definition at line 68 of file llbbox.h.

References mMaxLocal, and mMinLocal.

Referenced by LLSelectMgr::getGrid(), LLToolsLookAtSelection::handleEvent(), LLManipScale::render(), LLManipScale::renderEdges(), LLSelectNode::renderOneSilhouette(), LLSelectMgr::renderSilhouettes(), and setup_hud_matrices().

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

Definition at line 62 of file llbbox.h.

References mMaxLocal.

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

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().

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

Definition at line 56 of file llbbox.h.

References mPosAgent.

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

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().

BOOL LLBBox::intersects ( const LLBBox b  )  const

LLVector3 LLBBox::localToAgent ( const LLVector3 v  )  const

Definition at line 108 of file llbbox.cpp.

References m, mPosAgent, mRotation, and v.

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

LLVector3 LLBBox::localToAgentBasis ( const LLVector3 v  )  const

Definition at line 123 of file llbbox.cpp.

References m, mRotation, and v.

Referenced by LLManipScale::dragFace().

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

Definition at line 63 of file llbbox.h.

References mMaxLocal.

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

Definition at line 60 of file llbbox.h.

References mMinLocal.


Member Data Documentation

BOOL LLBBox::mEmpty [private]

Definition at line 98 of file llbbox.h.

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

LLVector3 LLBBox::mMaxLocal [private]

Definition at line 95 of file llbbox.h.

Referenced by addBBoxAgent(), addPointLocal(), containsPointLocal(), expand(), getCenterLocal(), getExtentLocal(), getMaxLocal(), and setMaxLocal().

LLVector3 LLBBox::mMinLocal [private]

Definition at line 94 of file llbbox.h.

Referenced by addBBoxAgent(), addPointLocal(), containsPointLocal(), expand(), getCenterLocal(), getExtentLocal(), getMinLocal(), and setMinLocal().

LLVector3 LLBBox::mPosAgent [private]

Definition at line 96 of file llbbox.h.

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

LLQuaternion LLBBox::mRotation [private]

Definition at line 97 of file llbbox.h.

Referenced by addBBoxAgent(), addPointAgent(), agentToLocal(), agentToLocalBasis(), getRotation(), localToAgent(), and localToAgentBasis().


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