C# Class Axiom.Serialization.MeshSerializerImpl

Summary description for MeshSerializerImpl.
Inheritance: Serializer
Show file Open project: WolfgangSt/axiom

Protected Properties

Property Type Description
isSkeletallyAnimated bool
mesh Axiom.Core.Mesh

Public Methods

Method Description
ExportMesh ( Axiom.Core.Mesh mesh, string fileName ) : void

Exports a mesh to the file specified.

This method takes an externally created Mesh object, and exports both it to a .mesh file.

GetDependencyInfo ( Stream stream, Axiom.Core.Mesh mesh ) : DependencyInfo

Multiverse Extension

ImportMesh ( Stream stream, Axiom.Core.Mesh mesh ) : void

Imports mesh data from a .mesh file.

MeshSerializerImpl ( ) : System

Default constructor.

Protected Methods

Method Description
ReadAnimation ( BinaryReader reader ) : void
ReadAnimationTrack ( BinaryReader reader, Animation anim ) : void
ReadAnimations ( BinaryReader reader ) : void
ReadAttachmentPoint ( BinaryReader reader ) : void

Reads attachment point information from the file.

ReadBoundsInfo ( BinaryReader reader ) : void
ReadChunk ( BinaryReader reader ) : MeshChunkID
ReadDependencyInfo ( BinaryReader reader, DependencyInfo depends ) : void

Multiuverse Extension

ReadEdgeList ( BinaryReader reader ) : void
ReadGeometry ( BinaryReader reader, VertexData data ) : void
ReadGeometryVertexBuffer ( BinaryReader reader, VertexData data ) : void
ReadGeometryVertexDeclaration ( BinaryReader reader, VertexData data ) : void
ReadGeometryVertexElement ( BinaryReader reader, VertexData data ) : void
ReadMaterialDependency ( BinaryReader reader, DependencyInfo depends ) : void
ReadMesh ( BinaryReader reader ) : void
ReadMeshBoneAssignment ( BinaryReader reader ) : void
ReadMeshDependency ( BinaryReader reader, DependencyInfo depends ) : void
ReadMeshLodInfo ( BinaryReader reader ) : void
ReadMeshLodUsageGenerated ( BinaryReader reader, int lodNum, Axiom.Core.MeshLodUsage &usage ) : void
ReadMeshLodUsageManual ( BinaryReader reader, int lodNum, Axiom.Core.MeshLodUsage &usage ) : void
ReadMorphKeyframe ( BinaryReader reader, VertexAnimationTrack track ) : void
ReadPoseKeyframe ( BinaryReader reader, VertexAnimationTrack track ) : void
ReadPoses ( BinaryReader reader ) : void
ReadSkeletonDependency ( BinaryReader reader, DependencyInfo depends ) : void
ReadSkeletonLink ( BinaryReader reader ) : void
ReadSubMesh ( BinaryReader reader ) : void
ReadSubMeshBoneAssignment ( BinaryReader reader, SubMesh sub ) : void
ReadSubMeshNameTable ( BinaryReader reader ) : void
ReadSubMeshOperation ( BinaryReader reader, SubMesh sub ) : void
WriteAnimation ( BinaryWriter writer, Animation anim ) : void
WriteAnimationPoseRef ( BinaryWriter writer, PoseRef poseRef ) : void
WriteAnimationTrack ( BinaryWriter writer, VertexAnimationTrack track ) : void
WriteAnimations ( BinaryWriter writer ) : void
WriteAttachmentPoint ( BinaryWriter writer, AttachmentPoint ap ) : void
WriteGeometry ( BinaryWriter writer, VertexData vertexData ) : void
WriteGeometryVertexBuffer ( BinaryWriter writer, short bindIndex, HardwareVertexBuffer vertexBuffer ) : void
WriteGeometryVertexBufferData ( BinaryWriter writer, int count, IntPtr buf ) : void
WriteGeometryVertexDeclaration ( BinaryWriter writer, Axiom.Graphics.VertexDeclaration vertexDeclaration ) : void
WriteGeometryVertexElement ( BinaryWriter writer, VertexElement vertexElement ) : void
WriteMesh ( BinaryWriter writer ) : void
WriteMeshBoneAssignment ( BinaryWriter writer, VertexBoneAssignment vba ) : void
WriteMeshBounds ( BinaryWriter writer ) : void
WriteMeshLodGenerated ( BinaryWriter writer, SubMesh subMesh, int usageIndex ) : void
WriteMeshLodInfo ( BinaryWriter writer ) : void
WriteMeshLodManual ( BinaryWriter writer, Axiom.Core.MeshLodUsage usage ) : void
WriteMeshLodSummary ( BinaryWriter writer ) : void
WriteMeshLodUsage ( BinaryWriter writer, Axiom.Core.MeshLodUsage usage, int usageIndex ) : void
WriteMorphKeyframe ( BinaryWriter writer, VertexMorphKeyFrame keyFrame ) : void
WritePose ( BinaryWriter writer, Pose pose ) : void
WritePoseKeyframe ( BinaryWriter writer, VertexPoseKeyFrame keyFrame ) : void
WritePoseVertex ( BinaryWriter writer, int vertexId, Vector3 offset ) : void
WritePoses ( BinaryWriter writer ) : void
WriteSkeletonLink ( BinaryWriter writer ) : void
WriteSubMesh ( BinaryWriter writer, SubMesh subMesh ) : void
WriteSubMeshBoneAssignment ( BinaryWriter writer, VertexBoneAssignment vba ) : void
WriteSubMeshNameTable ( BinaryWriter writer ) : void
WriteSubMeshNameTableElement ( BinaryWriter writer, short i, string name ) : void
WriteSubMeshOperation ( BinaryWriter writer, SubMesh subMesh ) : void

Method Details

ExportMesh() public method

Exports a mesh to the file specified.
This method takes an externally created Mesh object, and exports both it to a .mesh file.
public ExportMesh ( Axiom.Core.Mesh mesh, string fileName ) : void
mesh Axiom.Core.Mesh Reference to the mesh to export.
fileName string The destination file name.
return void

GetDependencyInfo() public method

Multiverse Extension
public GetDependencyInfo ( Stream stream, Axiom.Core.Mesh mesh ) : DependencyInfo
stream Stream
mesh Axiom.Core.Mesh
return DependencyInfo

ImportMesh() public method

Imports mesh data from a .mesh file.
public ImportMesh ( Stream stream, Axiom.Core.Mesh mesh ) : void
stream Stream A stream containing the .mesh data.
mesh Axiom.Core.Mesh Mesh to populate with the data.
return void

MeshSerializerImpl() public method

Default constructor.
public MeshSerializerImpl ( ) : System
return System

ReadAnimation() protected method

protected ReadAnimation ( BinaryReader reader ) : void
reader System.IO.BinaryReader
return void

ReadAnimationTrack() protected method

protected ReadAnimationTrack ( BinaryReader reader, Animation anim ) : void
reader System.IO.BinaryReader
anim Axiom.Animating.Animation
return void

ReadAnimations() protected method

protected ReadAnimations ( BinaryReader reader ) : void
reader System.IO.BinaryReader
return void

ReadAttachmentPoint() protected method

Reads attachment point information from the file.
protected ReadAttachmentPoint ( BinaryReader reader ) : void
reader System.IO.BinaryReader
return void

ReadBoundsInfo() protected method

protected ReadBoundsInfo ( BinaryReader reader ) : void
reader System.IO.BinaryReader
return void

ReadChunk() protected method

protected ReadChunk ( BinaryReader reader ) : MeshChunkID
reader System.IO.BinaryReader
return MeshChunkID

ReadDependencyInfo() protected method

Multiuverse Extension
protected ReadDependencyInfo ( BinaryReader reader, DependencyInfo depends ) : void
reader System.IO.BinaryReader
depends DependencyInfo
return void

ReadEdgeList() protected method

protected ReadEdgeList ( BinaryReader reader ) : void
reader System.IO.BinaryReader
return void

ReadGeometry() protected method

protected ReadGeometry ( BinaryReader reader, VertexData data ) : void
reader System.IO.BinaryReader
data Axiom.Graphics.VertexData
return void

ReadGeometryVertexBuffer() protected method

protected ReadGeometryVertexBuffer ( BinaryReader reader, VertexData data ) : void
reader System.IO.BinaryReader
data Axiom.Graphics.VertexData
return void

ReadGeometryVertexDeclaration() protected method

protected ReadGeometryVertexDeclaration ( BinaryReader reader, VertexData data ) : void
reader System.IO.BinaryReader
data Axiom.Graphics.VertexData
return void

ReadGeometryVertexElement() protected method

protected ReadGeometryVertexElement ( BinaryReader reader, VertexData data ) : void
reader System.IO.BinaryReader
data Axiom.Graphics.VertexData
return void

ReadMaterialDependency() protected method

protected ReadMaterialDependency ( BinaryReader reader, DependencyInfo depends ) : void
reader System.IO.BinaryReader
depends DependencyInfo
return void

ReadMesh() protected method

protected ReadMesh ( BinaryReader reader ) : void
reader System.IO.BinaryReader
return void

ReadMeshBoneAssignment() protected method

protected ReadMeshBoneAssignment ( BinaryReader reader ) : void
reader System.IO.BinaryReader
return void

ReadMeshDependency() protected method

protected ReadMeshDependency ( BinaryReader reader, DependencyInfo depends ) : void
reader System.IO.BinaryReader
depends DependencyInfo
return void

ReadMeshLodInfo() protected method

protected ReadMeshLodInfo ( BinaryReader reader ) : void
reader System.IO.BinaryReader
return void

ReadMeshLodUsageGenerated() protected method

protected ReadMeshLodUsageGenerated ( BinaryReader reader, int lodNum, Axiom.Core.MeshLodUsage &usage ) : void
reader System.IO.BinaryReader
lodNum int
usage Axiom.Core.MeshLodUsage
return void

ReadMeshLodUsageManual() protected method

protected ReadMeshLodUsageManual ( BinaryReader reader, int lodNum, Axiom.Core.MeshLodUsage &usage ) : void
reader System.IO.BinaryReader
lodNum int
usage Axiom.Core.MeshLodUsage
return void

ReadMorphKeyframe() protected method

protected ReadMorphKeyframe ( BinaryReader reader, VertexAnimationTrack track ) : void
reader System.IO.BinaryReader
track Axiom.Animating.VertexAnimationTrack
return void

ReadPoseKeyframe() protected method

protected ReadPoseKeyframe ( BinaryReader reader, VertexAnimationTrack track ) : void
reader System.IO.BinaryReader
track Axiom.Animating.VertexAnimationTrack
return void

ReadPoses() protected method

protected ReadPoses ( BinaryReader reader ) : void
reader System.IO.BinaryReader
return void

ReadSkeletonDependency() protected method

protected ReadSkeletonDependency ( BinaryReader reader, DependencyInfo depends ) : void
reader System.IO.BinaryReader
depends DependencyInfo
return void

ReadSkeletonLink() protected method

protected ReadSkeletonLink ( BinaryReader reader ) : void
reader System.IO.BinaryReader
return void

ReadSubMesh() protected method

protected ReadSubMesh ( BinaryReader reader ) : void
reader System.IO.BinaryReader
return void

ReadSubMeshBoneAssignment() protected method

protected ReadSubMeshBoneAssignment ( BinaryReader reader, SubMesh sub ) : void
reader System.IO.BinaryReader
sub Axiom.Core.SubMesh
return void

ReadSubMeshNameTable() protected method

protected ReadSubMeshNameTable ( BinaryReader reader ) : void
reader System.IO.BinaryReader
return void

ReadSubMeshOperation() protected method

protected ReadSubMeshOperation ( BinaryReader reader, SubMesh sub ) : void
reader System.IO.BinaryReader
sub Axiom.Core.SubMesh
return void

WriteAnimation() protected method

protected WriteAnimation ( BinaryWriter writer, Animation anim ) : void
writer System.IO.BinaryWriter
anim Axiom.Animating.Animation
return void

WriteAnimationPoseRef() protected method

protected WriteAnimationPoseRef ( BinaryWriter writer, PoseRef poseRef ) : void
writer System.IO.BinaryWriter
poseRef Axiom.Animating.PoseRef
return void

WriteAnimationTrack() protected method

protected WriteAnimationTrack ( BinaryWriter writer, VertexAnimationTrack track ) : void
writer System.IO.BinaryWriter
track Axiom.Animating.VertexAnimationTrack
return void

WriteAnimations() protected method

protected WriteAnimations ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
return void

WriteAttachmentPoint() protected method

protected WriteAttachmentPoint ( BinaryWriter writer, AttachmentPoint ap ) : void
writer System.IO.BinaryWriter
ap Axiom.Animating.AttachmentPoint
return void

WriteGeometry() protected method

protected WriteGeometry ( BinaryWriter writer, VertexData vertexData ) : void
writer System.IO.BinaryWriter
vertexData Axiom.Graphics.VertexData
return void

WriteGeometryVertexBuffer() protected method

protected WriteGeometryVertexBuffer ( BinaryWriter writer, short bindIndex, HardwareVertexBuffer vertexBuffer ) : void
writer System.IO.BinaryWriter
bindIndex short
vertexBuffer Axiom.Graphics.HardwareVertexBuffer
return void

WriteGeometryVertexBufferData() protected method

protected WriteGeometryVertexBufferData ( BinaryWriter writer, int count, IntPtr buf ) : void
writer System.IO.BinaryWriter
count int
buf System.IntPtr
return void

WriteGeometryVertexDeclaration() protected method

protected WriteGeometryVertexDeclaration ( BinaryWriter writer, Axiom.Graphics.VertexDeclaration vertexDeclaration ) : void
writer System.IO.BinaryWriter
vertexDeclaration Axiom.Graphics.VertexDeclaration
return void

WriteGeometryVertexElement() protected method

protected WriteGeometryVertexElement ( BinaryWriter writer, VertexElement vertexElement ) : void
writer System.IO.BinaryWriter
vertexElement Axiom.Graphics.VertexElement
return void

WriteMesh() protected method

protected WriteMesh ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
return void

WriteMeshBoneAssignment() protected method

protected WriteMeshBoneAssignment ( BinaryWriter writer, VertexBoneAssignment vba ) : void
writer System.IO.BinaryWriter
vba VertexBoneAssignment
return void

WriteMeshBounds() protected method

protected WriteMeshBounds ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
return void

WriteMeshLodGenerated() protected method

protected WriteMeshLodGenerated ( BinaryWriter writer, SubMesh subMesh, int usageIndex ) : void
writer System.IO.BinaryWriter
subMesh Axiom.Core.SubMesh
usageIndex int
return void

WriteMeshLodInfo() protected method

protected WriteMeshLodInfo ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
return void

WriteMeshLodManual() protected method

protected WriteMeshLodManual ( BinaryWriter writer, Axiom.Core.MeshLodUsage usage ) : void
writer System.IO.BinaryWriter
usage Axiom.Core.MeshLodUsage
return void

WriteMeshLodSummary() protected method

protected WriteMeshLodSummary ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
return void

WriteMeshLodUsage() protected method

protected WriteMeshLodUsage ( BinaryWriter writer, Axiom.Core.MeshLodUsage usage, int usageIndex ) : void
writer System.IO.BinaryWriter
usage Axiom.Core.MeshLodUsage
usageIndex int
return void

WriteMorphKeyframe() protected method

protected WriteMorphKeyframe ( BinaryWriter writer, VertexMorphKeyFrame keyFrame ) : void
writer System.IO.BinaryWriter
keyFrame Axiom.Animating.VertexMorphKeyFrame
return void

WritePose() protected method

protected WritePose ( BinaryWriter writer, Pose pose ) : void
writer System.IO.BinaryWriter
pose Axiom.Animating.Pose
return void

WritePoseKeyframe() protected method

protected WritePoseKeyframe ( BinaryWriter writer, VertexPoseKeyFrame keyFrame ) : void
writer System.IO.BinaryWriter
keyFrame Axiom.Animating.VertexPoseKeyFrame
return void

WritePoseVertex() protected method

protected WritePoseVertex ( BinaryWriter writer, int vertexId, Vector3 offset ) : void
writer System.IO.BinaryWriter
vertexId int
offset Vector3
return void

WritePoses() protected method

protected WritePoses ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
return void

WriteSkeletonLink() protected method

protected WriteSkeletonLink ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
return void

WriteSubMesh() protected method

protected WriteSubMesh ( BinaryWriter writer, SubMesh subMesh ) : void
writer System.IO.BinaryWriter
subMesh Axiom.Core.SubMesh
return void

WriteSubMeshBoneAssignment() protected method

protected WriteSubMeshBoneAssignment ( BinaryWriter writer, VertexBoneAssignment vba ) : void
writer System.IO.BinaryWriter
vba VertexBoneAssignment
return void

WriteSubMeshNameTable() protected method

protected WriteSubMeshNameTable ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
return void

WriteSubMeshNameTableElement() protected method

protected WriteSubMeshNameTableElement ( BinaryWriter writer, short i, string name ) : void
writer System.IO.BinaryWriter
i short
name string
return void

WriteSubMeshOperation() protected method

protected WriteSubMeshOperation ( BinaryWriter writer, SubMesh subMesh ) : void
writer System.IO.BinaryWriter
subMesh Axiom.Core.SubMesh
return void

Property Details

isSkeletallyAnimated protected property

Is this mesh animated with a skeleton?
protected bool isSkeletallyAnimated
return bool

mesh protected property

Target mesh for importing/exporting.
protected Mesh,Axiom.Core mesh
return Axiom.Core.Mesh