#include <llviewerjointattachment.h>
Definition at line 48 of file llviewerjointattachment.h.
LLViewerJointAttachment::LLViewerJointAttachment | ( | ) |
Definition at line 58 of file llviewerjointattachment.cpp.
References FALSE, LLJoint::mUpdateXform, and LLViewerJoint::mValid.
LLViewerJointAttachment::~LLViewerJointAttachment | ( | ) | [virtual] |
Definition at line 73 of file llviewerjointattachment.cpp.
BOOL LLViewerJointAttachment::isTransparent | ( | ) | [virtual] |
Reimplemented from LLViewerJoint.
Definition at line 80 of file llviewerjointattachment.cpp.
References FALSE.
Reimplemented from LLViewerJoint.
Definition at line 88 of file llviewerjointattachment.cpp.
References LLGLImmediate::begin(), LLGLImmediate::color4f(), LLGLImmediate::end(), gGL, LLVertexBuffer::QUADS, LLVOAvatar::sShowAttachmentPoints, and LLGLImmediate::vertex3f().
Reimplemented from LLViewerJoint.
Definition at line 371 of file llviewerjointattachment.cpp.
References FALSE, LLViewerJoint::mValid, LLViewerJoint::setValid(), and TRUE.
void LLViewerJointAttachment::setJoint | ( | LLJoint * | joint | ) | [inline] |
void LLViewerJointAttachment::setPieSlice | ( | S32 | pie_slice | ) | [inline] |
Definition at line 72 of file llviewerjointattachment.h.
References mPieSlice.
Referenced by LLVOAvatar::loadSkeletonNode().
void LLViewerJointAttachment::setVisibleInFirstPerson | ( | BOOL | visibility | ) | [inline] |
Definition at line 73 of file llviewerjointattachment.h.
References mVisibleInFirst.
Referenced by LLVOAvatar::loadSkeletonNode().
BOOL LLViewerJointAttachment::getVisibleInFirstPerson | ( | ) | [inline] |
Definition at line 74 of file llviewerjointattachment.h.
References mVisibleInFirst.
Referenced by LLVOAvatar::updateAttachmentVisibility().
void LLViewerJointAttachment::setGroup | ( | S32 | group | ) | [inline] |
Definition at line 75 of file llviewerjointattachment.h.
References mGroup.
Referenced by LLVOAvatar::loadSkeletonNode().
void LLViewerJointAttachment::setOriginalPosition | ( | LLVector3 & | position | ) |
Definition at line 327 of file llviewerjointattachment.cpp.
References mOriginalPos, and LLJoint::setPosition().
Referenced by LLVOAvatar::loadSkeletonNode().
void LLViewerJointAttachment::setAttachmentVisibility | ( | BOOL | visible | ) |
Definition at line 305 of file llviewerjointattachment.cpp.
References LLViewerObject::isHUDAttachment(), LLPointer< Type >::isNull(), mAttachedObject, LLViewerObject::mDrawable, LLPipeline::RENDER_TYPE_HUD, and LLPipeline::RENDER_TYPE_VOLUME.
Referenced by LLVOAvatar::releaseMeshData(), removeObject(), LLVOAvatar::restoreMeshData(), and LLVOAvatar::updateAttachmentVisibility().
void LLViewerJointAttachment::setIsHUDAttachment | ( | BOOL | is_hud | ) | [inline] |
Definition at line 78 of file llviewerjointattachment.h.
References mIsHUDAttachment.
Referenced by LLVOAvatar::loadSkeletonNode().
BOOL LLViewerJointAttachment::getIsHUDAttachment | ( | ) | [inline] |
Definition at line 79 of file llviewerjointattachment.h.
References mIsHUDAttachment.
Referenced by LLVOAvatar::buildCharacter(), LLObjectBridge::buildContextMenu(), LLVOAvatar::getHUDBBox(), LLVOAvatar::hasHUDAttachment(), LLVOAvatar::releaseMeshData(), LLPipeline::renderForSelect(), LLViewerObjectList::renderObjectsForSelect(), LLVOAvatar::resetHUDAttachments(), LLVOAvatar::restoreMeshData(), LLVOAvatar::updateAttachmentVisibility(), and LLSelectMgr::updateSilhouettes().
BOOL LLViewerJointAttachment::isAnimatable | ( | ) | [inline, virtual] |
Reimplemented from LLJoint.
Definition at line 81 of file llviewerjointattachment.h.
References FALSE.
S32 LLViewerJointAttachment::getGroup | ( | ) | [inline] |
Definition at line 83 of file llviewerjointattachment.h.
References mGroup.
Referenced by LLVOAvatar::buildCharacter().
S32 LLViewerJointAttachment::getPieSlice | ( | ) | [inline] |
Definition at line 84 of file llviewerjointattachment.h.
References mPieSlice.
Referenced by LLVOAvatar::buildCharacter().
LLViewerObject* LLViewerJointAttachment::getObject | ( | ) | [inline] |
Definition at line 85 of file llviewerjointattachment.h.
References mAttachedObject.
Referenced by attach_label(), detach_label(), LLVOAvatar::detachObject(), LLVOAvatar::getHUDBBox(), LLVOAvatar::getSpatialExtents(), LLVOAvatar::getWornAttachment(), handle_detach_from_avatar(), handle_dump_attachments(), LLSelfEnableRemoveAllAttachments::handleEvent(), LLVOAvatar::hasHUDAttachment(), LLVOAvatar::idleUpdate(), LLAgent::makeNewOutfit(), object_attached(), LLPipeline::renderForSelect(), LLViewerObjectList::renderObjectsForSelect(), LLVOAvatar::resetHUDAttachments(), rez_attachment(), LLVOAvatar::shame(), LLAgent::updateCamera(), LLVOAvatar::updateVisibility(), and LLAgent::userRemoveAllAttachments().
S32 LLViewerJointAttachment::getNumObjects | ( | ) | [inline] |
Definition at line 86 of file llviewerjointattachment.h.
References mAttachedObject.
Referenced by LLMakeOutfitDialog::LLMakeOutfitDialog().
const LLUUID& LLViewerJointAttachment::getItemID | ( | ) | [inline] |
Definition at line 87 of file llviewerjointattachment.h.
References mItemID.
Referenced by attach_label(), LLVOAvatar::attachObject(), detach_label(), LLVOAvatar::detachObject(), LLVOAvatar::getAttachedPointName(), LLVOAvatar::getWornAttachment(), handle_dump_attachments(), LLVOAvatar::isWearingAttachment(), and LLAgent::makeNewOutfit().
BOOL LLViewerJointAttachment::addObject | ( | LLViewerObject * | object | ) |
Definition at line 155 of file llviewerjointattachment.cpp.
References calcLOD(), FALSE, LLViewerObject::getNVPair(), LLNameValue::getString(), gObjectList, LLDrawable::isActive(), LLViewerObjectList::killObject(), lldebugs, llendl, llinfos, llwarns, LLDrawable::makeStatic(), mAttachedObject, LLViewerObject::mChildList, mIsHUDAttachment, mItemID, LLViewerObject::mText, LLJoint::mUpdateXform, LLPointer< Type >::notNull(), removeObject(), LLUUID::set(), setupDrawable(), and TRUE.
Referenced by LLVOAvatar::attachObject().
void LLViewerJointAttachment::removeObject | ( | LLViewerObject * | object | ) |
Definition at line 231 of file llviewerjointattachment.cpp.
References FALSE, LLFace::HUD_RENDER, LLPipeline::markMoved(), LLPipeline::markTextured(), mAttachedObject, LLViewerObject::mChildList, LLViewerObject::mDrawable, mIsHUDAttachment, mItemID, LLViewerObject::mText, LLJoint::mUpdateXform, LLPointer< Type >::notNull(), NULL, S32, setAttachmentVisibility(), LLUUID::setNull(), TRUE, and LLDrawable::USE_BACKLIGHT.
Referenced by addObject(), and LLVOAvatar::detachObject().
void LLViewerJointAttachment::setupDrawable | ( | LLDrawable * | drawable | ) |
Definition at line 106 of file llviewerjointattachment.cpp.
References LLDrawable::getFace(), LLDrawable::getNumFaces(), LLViewerObject::getRenderPosition(), LLViewerObject::getRenderRotation(), LLJoint::getWorldPosition(), LLJoint::getWorldRotation(), LLFace::HUD_RENDER, LLDrawable::makeActive(), LLPipeline::markMoved(), LLPipeline::markTextured(), mAttachedObject, LLViewerObject::mChildList, LLViewerObject::mDrawable, mIsHUDAttachment, LLJoint::mXform, LLDrawable::mXform, LLPointer< Type >::notNull(), LLVector3::rotVec(), S32, LLXform::setParent(), LLXform::setPosition(), LLXform::setRotation(), LLFace::setState(), LLDrawable::setState(), and LLDrawable::USE_BACKLIGHT.
Referenced by addObject().
void LLViewerJointAttachment::clampObjectPosition | ( | ) |
Definition at line 336 of file llviewerjointattachment.cpp.
References LLXform::getPosition(), llmin(), mAttachedObject, MAX_ATTACHMENT_DIST, LLVector3::normVec(), and LLViewerObject::setPosition().
Referenced by LLVOAvatar::clampAttachmentPositions().
void LLViewerJointAttachment::calcLOD | ( | ) | [protected] |
Definition at line 352 of file llviewerjointattachment.cpp.
References LLViewerObject::getMaxScale(), LLViewerObject::getMidScale(), llclamp(), llmax(), mAttachedObject, LLViewerObject::mChildList, and LLViewerJoint::setLOD().
Referenced by addObject().
LLJoint* LLViewerJointAttachment::mJoint [protected] |
LLViewerObject* LLViewerJointAttachment::mAttachedObject [protected] |
Definition at line 104 of file llviewerjointattachment.h.
Referenced by addObject(), calcLOD(), clampObjectPosition(), getNumObjects(), getObject(), removeObject(), setAttachmentVisibility(), and setupDrawable().
BOOL LLViewerJointAttachment::mVisibleInFirst [protected] |
Definition at line 105 of file llviewerjointattachment.h.
Referenced by getVisibleInFirstPerson(), and setVisibleInFirstPerson().
LLVector3 LLViewerJointAttachment::mOriginalPos [protected] |
S32 LLViewerJointAttachment::mGroup [protected] |
BOOL LLViewerJointAttachment::mIsHUDAttachment [protected] |
Definition at line 108 of file llviewerjointattachment.h.
Referenced by addObject(), getIsHUDAttachment(), removeObject(), setIsHUDAttachment(), and setupDrawable().
S32 LLViewerJointAttachment::mPieSlice [protected] |
Definition at line 109 of file llviewerjointattachment.h.
Referenced by getPieSlice(), and setPieSlice().
LLUUID LLViewerJointAttachment::mItemID [protected] |
Definition at line 110 of file llviewerjointattachment.h.
Referenced by addObject(), getItemID(), and removeObject().