ColladaAppMesh

Engine/source/ts/collada/colladaAppMesh.h

More...

Private Types

Parent 

Protected Attributes

Pointer to the node that owns this mesh.

Local map of symbols to materials.

geometry extension

const domInstance_controller *
const domInstance_geometry *

Protected Static Attributes

The fixed detail size value for all geometry.

bool

Set to true to fix the detail size to a particular value for all geometry.

Protected Functions

addMaterial(const char * symbol)
bool
checkGeometryType(const daeElement * element)
const domMorph *

Get the morph controller for this mesh (if any)

getMorphVertexData(const domMorph * morph, F32 time, const MatrixF & objOffset, Vector< Point3F > & points, Vector< Point3F > & norms, Vector< ColorI > & colors, Vector< Point2F > & uvs, Vector< Point2F > & uv2s)
getPrimitives(const domGeometry * geometry)
getVertexData(const domGeometry * geometry, F32 time, const MatrixF & objOffset, Vector< Point3F > & points, Vector< Point3F > & norms, Vector< ColorI > & colors, Vector< Point2F > & uvs, Vector< Point2F > & uv2s, bool appendValues)

Public Functions

ColladaAppMesh(const domInstance_controller * instance, ColladaAppNode * node)
ColladaAppMesh(const domInstance_geometry * instance, ColladaAppNode * node)
bool

Check if the mesh is animated.

bool

Check if the material used by this mesh is animated.

bool

Check if the mesh visibility is animated.

bool
getBool(const char * propName, bool & defaultVal)

Get a boolean property value.

bool
getFloat(const char * propName, F32 & defaultVal)

Get a floating point property value.

bool
getInt(const char * propName, S32 & defaultVal)

Get an integer property value.

Get the transform of this mesh at a certain time.

const char *
getName(bool allowFixed)

Get the name of this mesh.

Get the visibility of this mesh at a certain time.

bool

Return true if this mesh is a skin.

lockMesh(F32 time, const MatrixF & objOffset)

Generate the vertex, normal and triangle data for the mesh.

Get the skin data: bones, vertex weights etc.

Public Static Functions

fixDetailSize(bool fixed, S32 size)

Detailed Description

Private Types

typedef AppMesh Parent 

Protected Attributes

class ColladaAppNode * appNode 

Pointer to the node that owns this mesh.

Map< StringTableEntry, U32 > boundMaterials 

Local map of symbols to materials.

ColladaExtension_geometry * geomExt 

geometry extension

const domInstance_controller * instanceCtrl 
const domInstance_geometry * instanceGeom 
Vector< VertTuple > vertTuples 

Protected Static Attributes

S32 fixedSize 

The fixed detail size value for all geometry.

bool fixedSizeEnabled 

Set to true to fix the detail size to a particular value for all geometry.

Protected Functions

addMaterial(const char * symbol)

checkGeometryType(const daeElement * element)

getMorph()

Get the morph controller for this mesh (if any)

getMorphVertexData(const domMorph * morph, F32 time, const MatrixF & objOffset, Vector< Point3F > & points, Vector< Point3F > & norms, Vector< ColorI > & colors, Vector< Point2F > & uvs, Vector< Point2F > & uv2s)

getPrimitives(const domGeometry * geometry)

getVertexData(const domGeometry * geometry, F32 time, const MatrixF & objOffset, Vector< Point3F > & points, Vector< Point3F > & norms, Vector< ColorI > & colors, Vector< Point2F > & uvs, Vector< Point2F > & uv2s, bool appendValues)

Public Functions

ColladaAppMesh(const domInstance_controller * instance, ColladaAppNode * node)

ColladaAppMesh(const domInstance_geometry * instance, ColladaAppNode * node)

~ColladaAppMesh()

animatesFrame(const AppSequence * appSeq)

Reimplemented from: AppMesh

animatesMatFrame(const AppSequence * appSeq)

Reimplemented from: AppMesh

animatesVis(const AppSequence * appSeq)

Reimplemented from: AppMesh

getBool(const char * propName, bool & defaultVal)

Reimplemented from: AppMesh

getFloat(const char * propName, F32 & defaultVal)

Reimplemented from: AppMesh

getInt(const char * propName, S32 & defaultVal)

Reimplemented from: AppMesh

getMeshTransform(F32 time)

Reimplemented from: AppMesh

getName(bool allowFixed)

Reimplemented from: AppMesh

getVisValue(F32 time)

Reimplemented from: AppMesh

isSkin()

Reimplemented from: AppMesh

lockMesh(F32 time, const MatrixF & objOffset)

Reimplemented from: AppMesh

lookupSkinData()

Reimplemented from: AppMesh

Public Static Functions

fixDetailSize(bool fixed, S32 size)