TSShapeLoader

Engine/source/ts/loader/tsShapeLoader.h

More...

Classes:

Public Types

enum
eLoadPhases {
  Load_ReadFile = 0
  Load_ParseFile 
  Load_ExternalRefs 
  Load_EnumerateScene 
  Load_GenerateSubshapes 
  Load_GenerateObjects 
  Load_GenerateDefaultStates 
  Load_GenerateSkins 
  Load_GenerateMaterials 
  Load_GenerateSequences 
  Load_InitShape 
  NumLoadPhases 
  Load_Complete = NumLoadPhases
}

Protected Static Attributes

Public Static Functions

Protected Functions

addNodeRotation(QuatF & rot, bool defaultVal)
addNodeTranslation(Point3F & trans, bool defaultVal)
addObject(AppMesh * mesh, S32 nodeIndex, S32 subShapeNum)
generateFrame(TSShape::Object & obj, F32 t, bool addFrame, bool addMatFrame)

Convert all Collada materials into a single TSMaterialList.

generateNodeTransform(AppNode * node, F32 t, bool blend, F32 referenceTime, QuatF & rot, Point3F & trans, QuatF & srot, Point3F & scale)
generateObjectState(TSShape::Object & obj, F32 t, bool addFrame, bool addMatFrame)
bool
bool
bool
recurseSubshape(AppNode * appNode, S32 parentIndex, bool recurseChildren)

Detailed Description

Public Types

eLoadPhases

Enumerator

Load_ReadFile = 0
Load_ParseFile
Load_ExternalRefs
Load_EnumerateScene
Load_GenerateSubshapes
Load_GenerateObjects
Load_GenerateDefaultStates
Load_GenerateSkins
Load_GenerateMaterials
Load_GenerateSequences
Load_InitShape
NumLoadPhases
Load_Complete = NumLoadPhases

Protected Static Attributes

Torque::Path shapePath 
Vector< ShapeFormat > smFormats 

Public Static Attributes

const F64 AppGroundFrameRate 
const F32 DefaultTime 
const F64 MaxFrameRate 
const F64 MinFrameRate 

Protected Attributes

Vector< AppMesh * > appMeshes 
Vector< AppNode * > appNodes 

Nodes in the loaded shape.

Vector< AppSequence * > appSequences 
AppNode * boundsNode 
Vector< QuatF * > nodeRotCache 
Vector< Point3F * > nodeScaleCache 
Vector< QuatF * > nodeScaleRotCache 
Vector< Point3F * > nodeTransCache 
TSShape * shape 
Vector< Subshape * > subshapes 

Public Static Functions

addFormat(String name, String extension)

getFormatExtensions()

getFormatFilters()

getShapePath()

isSupportedFormat(String extension)

updateProgress(S32 major, const char * msg, S32 numMinor, S32 minor)

zapScale(MatrixF & mat)

Protected Functions

addDetailMesh(AppMesh * mesh)

addNodeAlignedScale(Point3F & scale)

addNodeArbitraryScale(QuatF & qrot, Point3F & scale)

addNodeRotation(QuatF & rot, bool defaultVal)

addNodeTranslation(Point3F & trans, bool defaultVal)

addNodeUniformScale(F32 scale)

addObject(AppMesh * mesh, S32 nodeIndex, S32 subShapeNum)

addSkin(AppMesh * mesh)

addSubshape(AppNode * node)

clearNodeTransformCache()

computeBounds(Box3F & bounds)

Reimplemented by: AssimpShapeLoader, ColladaShapeLoader

enumerateScene()

Reimplemented by: AssimpShapeLoader, ColladaShapeLoader

fillNodeTransformCache(TSShape::Sequence & seq, const AppSequence * appSeq)

generateDefaultStates()

generateFrame(TSShape::Object & obj, F32 t, bool addFrame, bool addMatFrame)

generateFrameTriggers(TSShape::Sequence & seq, const AppSequence * appSeq)

generateGroundAnimation(TSShape::Sequence & seq, const AppSequence * appSeq)

generateMaterialList()

Convert all Collada materials into a single TSMaterialList.

generateNodeAnimation(TSShape::Sequence & seq)

generateNodeTransform(AppNode * node, F32 t, bool blend, F32 referenceTime, QuatF & rot, Point3F & trans, QuatF & srot, Point3F & scale)

generateObjectAnimation(TSShape::Sequence & seq, const AppSequence * appSeq)

generateObjects()

generateObjectState(TSShape::Object & obj, F32 t, bool addFrame, bool addMatFrame)

generateSequences()

generateSkins()

generateSubshapes()

getLocalNodeMatrix(AppNode * node, F32 t)

ignoreMesh(const String & name)

Reimplemented by: AssimpShapeLoader, ColladaShapeLoader

ignoreNode(const String & name)

Reimplemented by: AssimpShapeLoader, ColladaShapeLoader

install()

processNode(AppNode * node)

recurseSubshape(AppNode * appNode, S32 parentIndex, bool recurseChildren)

setNodeMembership(TSShape::Sequence & seq, const AppSequence * appSeq)

setObjectMembership(TSShape::Sequence & seq, const AppSequence * appSeq)

setRotationMembership(TSShape::Sequence & seq)

setScaleMembership(TSShape::Sequence & seq)

setTranslationMembership(TSShape::Sequence & seq)

sortDetails()