#include <llviewerjoint.h>


Public Types | |
| enum | Components { SC_BONE = 1, SC_JOINT = 2, SC_AXES = 4 } |
| enum | PickName { PN_DEFAULT = -1, PN_0 = 0, PN_1 = 1, PN_2 = 2, PN_3 = 3, PN_4 = 4, PN_5 = 5 } |
Public Member Functions | |
| LLViewerJoint () | |
| LLViewerJoint (const std::string &name, LLJoint *parent=NULL) | |
| virtual | ~LLViewerJoint () |
| BOOL | getValid () |
| virtual void | setValid (BOOL valid, BOOL recursive=FALSE) |
| virtual void | renderSkeleton (BOOL recursive=TRUE) |
| virtual U32 | render (F32 pixelArea, BOOL first_pass=TRUE) |
| virtual void | drawBone () |
| virtual BOOL | isTransparent () |
| virtual BOOL | inheritScale () |
| virtual U32 | drawShape (F32 pixelArea, BOOL first_pass=TRUE) |
| virtual void | drawNormals () |
| void | setSkeletonComponents (U32 comp, BOOL recursive=TRUE) |
| U32 | getSkeletonComponents () |
| F32 | getLOD () |
| void | setLOD (F32 pixelArea) |
| void | setPickName (PickName name) |
| PickName | getPickName () |
| virtual void | updateFaceSizes (U32 &num_vertices, U32 &num_indices, F32 pixel_area) |
| virtual void | updateFaceData (LLFace *face, F32 pixel_area, BOOL damp_wind=FALSE) |
| virtual BOOL | updateLOD (F32 pixel_area, BOOL activate) |
| virtual void | updateGeometry () |
| virtual void | dump () |
| void | setVisible (BOOL visible, BOOL recursive) |
Static Public Attributes | |
| static BOOL | sDisableLOD = FALSE |
Protected Attributes | |
| BOOL | mValid |
| U32 | mComponents |
| F32 | mMinPixelArea |
| PickName | mPickName |
| BOOL | mVisible |
Definition at line 46 of file llviewerjoint.h.
Definition at line 114 of file llviewerjoint.h.
| LLViewerJoint::LLViewerJoint | ( | ) |
Definition at line 60 of file llviewerjoint.cpp.
References DEFAULT_LOD, FALSE, mComponents, mMinPixelArea, mPickName, LLJoint::mUpdateXform, mValid, mVisible, PN_DEFAULT, SC_AXES, SC_BONE, SC_JOINT, and TRUE.
| LLViewerJoint::LLViewerJoint | ( | const std::string & | name, | |
| LLJoint * | parent = NULL | |||
| ) |
Definition at line 75 of file llviewerjoint.cpp.
References DEFAULT_LOD, FALSE, mComponents, mMinPixelArea, mPickName, mValid, PN_DEFAULT, SC_AXES, SC_BONE, and SC_JOINT.
| LLViewerJoint::~LLViewerJoint | ( | ) | [virtual] |
Definition at line 89 of file llviewerjoint.cpp.
| BOOL LLViewerJoint::getValid | ( | ) | [inline] |
Definition at line 55 of file llviewerjoint.h.
References mValid.
Referenced by LLVOAvatar::getSpatialExtents(), and LLVOAvatar::idleUpdate().

Definition at line 97 of file llviewerjoint.cpp.
References LLJoint::mChildren, mValid, setValid(), and TRUE.
Referenced by LLVOAvatar::releaseMeshData(), setValid(), LLViewerJointMesh::updateLOD(), and LLViewerJointAttachment::updateLOD().


| void LLViewerJoint::renderSkeleton | ( | BOOL | recursive = TRUE |
) | [virtual] |
Definition at line 122 of file llviewerjoint.cpp.
References LLGLImmediate::begin(), LLGLImmediate::color3f(), drawBone(), LLGLImmediate::end(), LLJoint::getWorldMatrix(), gGL, LLVertexBuffer::LINES, LLJoint::mChildren, mComponents, renderSkeleton(), SC_AXES, SC_BONE, SC_JOINT, LLVertexBuffer::TRIANGLES, and LLGLImmediate::vertex3f().
Referenced by renderSkeleton().


Definition at line 243 of file llviewerjoint.cpp.
References DEFAULT_LOD, drawShape(), FALSE, getLOD(), gRenderForSelect, isTransparent(), LLJoint::mChildren, MIN_PIXEL_AREA_3PASS_HAIR, mValid, render(), sDisableLOD, LLPipeline::sReflectionRender, and TRUE.
Referenced by render(), LLVOAvatar::renderRigid(), LLVOAvatar::renderSkinned(), and LLVOAvatar::renderTransparent().


| void LLViewerJoint::drawBone | ( | ) | [virtual] |
Reimplemented in LLViewerJointMesh.
Definition at line 334 of file llviewerjoint.cpp.
References LLGLImmediate::begin(), LLGLImmediate::color3f(), LLGLImmediate::end(), LLJoint::getPosition(), gGL, LLMatrix4::mMatrix, LLJoint::mParent, LLVector3::normVec(), NULL, LLMatrix4::setFwdRow(), LLMatrix4::setLeftRow(), LLMatrix4::setUpRow(), LLVertexBuffer::TRIANGLES, and LLGLImmediate::vertex3f().
Referenced by renderSkeleton().


| BOOL LLViewerJoint::isTransparent | ( | ) | [virtual] |
Reimplemented in LLViewerJointAttachment, and LLViewerJointMesh.
Definition at line 390 of file llviewerjoint.cpp.
References FALSE.
Referenced by render().

| virtual BOOL LLViewerJoint::inheritScale | ( | ) | [inline, virtual] |
Reimplemented in LLViewerJointCollisionVolume.
Definition at line 81 of file llviewerjoint.h.
References FALSE.
Referenced by LLPolySkeletalDistortion::setInfo().

Reimplemented in LLViewerJointAttachment, and LLViewerJointMesh.
Definition at line 398 of file llviewerjoint.cpp.
Referenced by render().

| virtual void LLViewerJoint::drawNormals | ( | ) | [inline, virtual] |
Definition at line 86 of file llviewerjoint.h.
Definition at line 406 of file llviewerjoint.cpp.
References LLJoint::mChildren, mComponents, and setSkeletonComponents().
Referenced by setSkeletonComponents().


| U32 LLViewerJoint::getSkeletonComponents | ( | ) | [inline] |
| F32 LLViewerJoint::getLOD | ( | ) | [inline] |
Definition at line 108 of file llviewerjoint.h.
References mMinPixelArea.
Referenced by render(), and updateLOD().

| void LLViewerJoint::setLOD | ( | F32 | pixelArea | ) | [inline] |
Definition at line 109 of file llviewerjoint.h.
References mMinPixelArea.
Referenced by LLViewerJointAttachment::calcLOD(), and LLVOAvatar::loadMeshNodes().

| void LLViewerJoint::setPickName | ( | PickName | name | ) | [inline] |
Definition at line 124 of file llviewerjoint.h.
References mPickName.
Referenced by LLVOAvatar::LLVOAvatar().

| PickName LLViewerJoint::getPickName | ( | ) | [inline] |
| void LLViewerJoint::updateFaceSizes | ( | U32 & | num_vertices, | |
| U32 & | num_indices, | |||
| F32 | pixel_area | |||
| ) | [virtual] |
Reimplemented in LLViewerJointMesh.
Definition at line 420 of file llviewerjoint.cpp.
References LLJoint::mChildren, and updateFaceSizes().
Referenced by updateFaceSizes(), and LLVOAvatar::updateMeshData().


| void LLViewerJoint::updateFaceData | ( | LLFace * | face, | |
| F32 | pixel_area, | |||
| BOOL | damp_wind = FALSE | |||
| ) | [virtual] |
Reimplemented in LLViewerJointMesh.
Definition at line 430 of file llviewerjoint.cpp.
References LLJoint::mChildren, and updateFaceData().
Referenced by updateFaceData(), and LLVOAvatar::updateMeshData().


Reimplemented in LLViewerJointAttachment, and LLViewerJointMesh.
Definition at line 451 of file llviewerjoint.cpp.
References DEFAULT_LOD, FALSE, getLOD(), LLJoint::mChildren, sDisableLOD, TRUE, and updateLOD().
Referenced by LLVOAvatar::updateJointLODs(), and updateLOD().


| void LLViewerJoint::updateGeometry | ( | ) | [virtual] |
Reimplemented in LLViewerJointMesh.
Definition at line 440 of file llviewerjoint.cpp.
References LLJoint::mChildren, and updateGeometry().
Referenced by LLVOAvatar::renderSkinned(), and updateGeometry().


| void LLViewerJoint::dump | ( | ) | [virtual] |
Reimplemented in LLViewerJointMesh.
Definition at line 483 of file llviewerjoint.cpp.
References dump(), and LLJoint::mChildren.
Referenced by dump().


Definition at line 493 of file llviewerjoint.cpp.
References LLJoint::mChildren, mVisible, and setVisible().
Referenced by LLImagePreviewAvatar::setPreviewTarget(), and setVisible().


BOOL LLViewerJoint::sDisableLOD = FALSE [static] |
Definition at line 136 of file llviewerjoint.h.
Referenced by init_debug_avatar_menu(), render(), and updateLOD().
BOOL LLViewerJoint::mValid [protected] |
Definition at line 139 of file llviewerjoint.h.
Referenced by LLViewerJointMesh::drawShape(), LLViewerJointMesh::dump(), getValid(), LLViewerJoint(), LLViewerJointAttachment::LLViewerJointAttachment(), LLViewerJointMesh::LLViewerJointMesh(), render(), setValid(), LLViewerJointMesh::updateFaceData(), LLViewerJointMesh::updateFaceSizes(), LLViewerJointMesh::updateGeometry(), LLViewerJointMesh::updateLOD(), and LLViewerJointAttachment::updateLOD().
U32 LLViewerJoint::mComponents [protected] |
Definition at line 140 of file llviewerjoint.h.
Referenced by getSkeletonComponents(), LLViewerJoint(), renderSkeleton(), and setSkeletonComponents().
F32 LLViewerJoint::mMinPixelArea [protected] |
Definition at line 141 of file llviewerjoint.h.
Referenced by getLOD(), LLViewerJoint(), and setLOD().
PickName LLViewerJoint::mPickName [protected] |
Definition at line 142 of file llviewerjoint.h.
Referenced by getPickName(), LLViewerJoint(), and setPickName().
BOOL LLViewerJoint::mVisible [protected] |
Definition at line 143 of file llviewerjoint.h.
Referenced by LLViewerJointMesh::drawShape(), LLViewerJoint(), and setVisible().
1.5.5