LLPolyMeshSharedData Class Reference

#include <llpolymesh.h>

Collaboration diagram for LLPolyMeshSharedData:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLPolyMeshSharedData ()
 ~LLPolyMeshSharedData ()
void genIndices (S32 offset)
const LLVector2getUVs (U32 index)
const S32getSharedVert (S32 vert)
BOOL isLOD ()

Public Attributes

U32 mNumTriangleIndices
U32mTriangleIndices

Private Types

typedef std::set
< LLPolyMorphData * > 
morphdata_list_t

Private Member Functions

void setupLOD (LLPolyMeshSharedData *reference_data)
void freeMeshData ()
void setPosition (const LLVector3 &pos)
void setRotation (const LLQuaternion &rot)
void setScale (const LLVector3 &scale)
BOOL allocateVertexData (U32 numVertices)
BOOL allocateFaceData (U32 numFaces)
BOOL allocateJointNames (U32 numJointNames)
U32 getNumKB ()
BOOL loadMesh (const char *fileName)

Private Attributes

LLVector3 mPosition
LLQuaternion mRotation
LLVector3 mScale
S32 mNumVertices
LLVector3mBaseCoords
LLVector3mBaseNormals
LLVector3mBaseBinormals
LLVector2mTexCoords
LLVector2mDetailTexCoords
F32mWeights
BOOL mHasWeights
BOOL mHasDetailTexCoords
S32 mNumFaces
LLPolyFacemFaces
U32 mNumJointNames
std::string * mJointNames
morphdata_list_t mMorphData
std::map< S32, S32mSharedVerts
LLPolyMeshSharedDatamReferenceData
S32 mLastIndexOffset

Friends

class LLPolyMesh


Detailed Description

Definition at line 69 of file llpolymesh.h.


Member Typedef Documentation

Definition at line 99 of file llpolymesh.h.


Constructor & Destructor Documentation

LLPolyMeshSharedData::LLPolyMeshSharedData (  ) 

LLPolyMeshSharedData::~LLPolyMeshSharedData (  ) 

Definition at line 90 of file llpolymesh.cpp.

References freeMeshData(), and mMorphData.

Here is the call graph for this function:


Member Function Documentation

void LLPolyMeshSharedData::setupLOD ( LLPolyMeshSharedData reference_data  )  [private]

void LLPolyMeshSharedData::freeMeshData (  )  [private]

Definition at line 120 of file llpolymesh.cpp.

References mBaseBinormals, mBaseCoords, mBaseNormals, mDetailTexCoords, mFaces, mJointNames, mNumFaces, mNumJointNames, mNumVertices, mReferenceData, mTexCoords, mTriangleIndices, mWeights, and NULL.

Referenced by loadMesh(), and ~LLPolyMeshSharedData().

Here is the caller graph for this function:

void LLPolyMeshSharedData::setPosition ( const LLVector3 pos  )  [inline, private]

Definition at line 123 of file llpolymesh.h.

References mPosition.

Referenced by loadMesh().

Here is the caller graph for this function:

void LLPolyMeshSharedData::setRotation ( const LLQuaternion rot  )  [inline, private]

Definition at line 124 of file llpolymesh.h.

References mRotation.

Referenced by loadMesh().

Here is the caller graph for this function:

void LLPolyMeshSharedData::setScale ( const LLVector3 scale  )  [inline, private]

Definition at line 125 of file llpolymesh.h.

References mScale.

Referenced by loadMesh().

Here is the caller graph for this function:

BOOL LLPolyMeshSharedData::allocateVertexData ( U32  numVertices  )  [private]

Definition at line 223 of file llpolymesh.cpp.

References i, mBaseBinormals, mBaseCoords, mBaseNormals, mDetailTexCoords, mNumVertices, mTexCoords, mWeights, and TRUE.

Referenced by loadMesh().

Here is the caller graph for this function:

BOOL LLPolyMeshSharedData::allocateFaceData ( U32  numFaces  )  [private]

Definition at line 243 of file llpolymesh.cpp.

References mFaces, mNumFaces, mNumTriangleIndices, and TRUE.

Referenced by loadMesh().

Here is the caller graph for this function:

BOOL LLPolyMeshSharedData::allocateJointNames ( U32  numJointNames  )  [private]

Definition at line 254 of file llpolymesh.cpp.

References mJointNames, mNumJointNames, and TRUE.

Referenced by loadMesh().

Here is the caller graph for this function:

U32 LLPolyMeshSharedData::getNumKB (  )  [private]

Definition at line 192 of file llpolymesh.cpp.

References isLOD(), mHasDetailTexCoords, mHasWeights, mNumFaces, and mNumVertices.

Referenced by LLPolyMesh::dumpDiagInfo().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLPolyMeshSharedData::loadMesh ( const char *  fileName  )  [private]

void LLPolyMeshSharedData::genIndices ( S32  offset  ) 

Definition at line 165 of file llpolymesh.cpp.

References i, mFaces, mLastIndexOffset, mNumFaces, mNumTriangleIndices, mTriangleIndices, and S32.

const LLVector2 & LLPolyMeshSharedData::getUVs ( U32  index  ) 

Definition at line 670 of file llpolymesh.cpp.

References llassert, mNumVertices, mTexCoords, and S32.

Referenced by LLPolyVertexMask::generateMask().

Here is the caller graph for this function:

const S32 * LLPolyMeshSharedData::getSharedVert ( S32  vert  ) 

Definition at line 658 of file llpolymesh.cpp.

References mSharedVerts, and NULL.

Referenced by LLPolyVertexMask::generateMask().

Here is the caller graph for this function:

BOOL LLPolyMeshSharedData::isLOD (  )  [inline]

Definition at line 146 of file llpolymesh.h.

References mReferenceData, and NULL.

Referenced by getNumKB(), LLPolyMesh::isLOD(), LLPolyMesh::LLPolyMesh(), and loadMesh().

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class LLPolyMesh [friend]

Definition at line 71 of file llpolymesh.h.


Member Data Documentation

Definition at line 74 of file llpolymesh.h.

Referenced by LLPolyMesh::getPosition(), and setPosition().

Definition at line 75 of file llpolymesh.h.

Referenced by LLPolyMesh::getRotation(), and setRotation().

Definition at line 76 of file llpolymesh.h.

Referenced by LLPolyMesh::getScale(), and setScale().

std::string* LLPolyMeshSharedData::mJointNames [private]

Definition at line 100 of file llpolymesh.h.

Referenced by LLPolyMesh::getMorphData(), loadMesh(), and ~LLPolyMeshSharedData().

Definition at line 102 of file llpolymesh.h.

Referenced by getSharedVert(), and loadMesh().

Definition at line 104 of file llpolymesh.h.

Referenced by freeMeshData(), isLOD(), LLPolyMeshSharedData(), loadMesh(), and setupLOD().

Definition at line 105 of file llpolymesh.h.

Referenced by genIndices(), and LLPolyMeshSharedData().


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

Generated on Fri May 16 08:59:48 2008 for SecondLife by  doxygen 1.5.5