MeshComponent

Engine/source/T3D/components/render/meshComponent.h

More...

Classes:

Protected Types

enum
_Anonymous_ {
  ShapeMask = Parent::NextFreeMask
  MaterialMask = Parent::NextFreeMask << 1
  NextFreeMask = Parent::NextFreeMask << 2
}

Private Types

Parent 

Public Functions

const char *
_getShape(void * object, const char * data)
bool
changeMaterial(U32 slot, const char * newMat)

Called after any property of the object is changed in the world editor.

bool

Called when the object is added to the sim.

onDynamicModified(const char * slotName, const char * newValue)

Called when a dynamic field is modified.

Called when the object is removed from the sim.

packUpdate(NetConnection * conn, U32 mask, BitStream * stream)

Instructs this object to pack its state for transfer over the network.

bool
setMeshAsset(const char * assetName)

Instructs this object to read state data previously packed with packUpdate.

Public Static Functions

bool
_setMesh(void * object, const char * index, const char * data)
bool
_setShape(void * object, const char * index, const char * data)

Detailed Description

Protected Types

@126

Enumerator

ShapeMask = Parent::NextFreeMask
MaterialMask = Parent::NextFreeMask << 1
NextFreeMask = Parent::NextFreeMask << 2

Private Types

typedef Component Parent 

Protected Attributes

Point3F mCenterOffset 
Vector< matMap > mChangingMaterials 
Vector< matMap > mMaterials 
Vector< boneObject * > mNodesList 
TSShape * mShape 
StringTableEntry mShapeAsset 
Box3F mShapeBounds 
StringTableEntry mShapeName 

Public Attributes

AssetPtr< ShapeAsset > mMeshAsset 
StringTableEntry mMeshAssetId 
TSShapeInstance * mShapeInstance 

Public Functions

MeshComponent()

~MeshComponent()

_getShape(void * object, const char * data)

_onResourceChanged(const Torque::Path & path)

castRayRendered(const Point3F & start, const Point3F & end, RayInfo * info)

Reimplemented from: CastRayRenderedInterface

changeMaterial(U32 slot, const char * newMat)

DECLARE_CONOBJECT(MeshComponent )

getNodeByName(String nodeName)

getNodeTransform(S32 nodeIdx)

Reimplemented from: RenderComponentInterface

getNodeTransforms()

Reimplemented from: RenderComponentInterface

getShape()

Reimplemented from: RenderComponentInterface

getShapeBounds()

getShapeInstance()

Reimplemented from: RenderComponentInterface

getShapeResource()

inspectPostApply()

Reimplemented from: SimObject

mountObjectToNode(SceneObject * objB, String node, MatrixF txfm)

onAdd()

Reimplemented from: Component

onComponentAdd()

Reimplemented from: Component

onComponentRemove()

Reimplemented from: Component

onDynamicModified(const char * slotName, const char * newValue)

Reimplemented from: Component

onEndInspect()

Reimplemented from: EditorInspectInterface

onInspect()

Reimplemented from: EditorInspectInterface

onRemove()

Reimplemented from: Component

packUpdate(NetConnection * conn, U32 mask, BitStream * stream)

Reimplemented from: Component

prepRenderImage(SceneRenderState * state)

Reimplemented from: RenderComponentInterface

setMeshAsset(const char * assetName)

setNodeTransforms(Vector< MatrixF > transforms)

Reimplemented from: RenderComponentInterface

setupShape()

unpackUpdate(NetConnection * conn, BitStream * stream)

Reimplemented from: Component

updateMaterials()

updateShape()

Public Static Functions

_setMesh(void * object, const char * index, const char * data)

_setShape(void * object, const char * index, const char * data)

initPersistFields()