C# Class Axiom.Serialization.MeshSerializerImpl

Summary description for MeshSerializerImpl.
Inheritance: Serializer
Afficher le fichier Open project: WolfgangSt/axiom

Protected Properties

Свойство Type Description
isSkeletallyAnimated bool
mesh Axiom.Core.Mesh

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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.
Résultat void

GetDependencyInfo() public méthode

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

ImportMesh() public méthode

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.
Résultat void

MeshSerializerImpl() public méthode

Default constructor.
public MeshSerializerImpl ( ) : System
Résultat System

ReadAnimation() protected méthode

protected ReadAnimation ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Résultat void

ReadAnimationTrack() protected méthode

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

ReadAnimations() protected méthode

protected ReadAnimations ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Résultat void

ReadAttachmentPoint() protected méthode

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

ReadBoundsInfo() protected méthode

protected ReadBoundsInfo ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Résultat void

ReadChunk() protected méthode

protected ReadChunk ( BinaryReader reader ) : MeshChunkID
reader System.IO.BinaryReader
Résultat MeshChunkID

ReadDependencyInfo() protected méthode

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

ReadEdgeList() protected méthode

protected ReadEdgeList ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Résultat void

ReadGeometry() protected méthode

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

ReadGeometryVertexBuffer() protected méthode

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

ReadGeometryVertexDeclaration() protected méthode

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

ReadGeometryVertexElement() protected méthode

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

ReadMaterialDependency() protected méthode

protected ReadMaterialDependency ( BinaryReader reader, DependencyInfo depends ) : void
reader System.IO.BinaryReader
depends DependencyInfo
Résultat void

ReadMesh() protected méthode

protected ReadMesh ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Résultat void

ReadMeshBoneAssignment() protected méthode

protected ReadMeshBoneAssignment ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Résultat void

ReadMeshDependency() protected méthode

protected ReadMeshDependency ( BinaryReader reader, DependencyInfo depends ) : void
reader System.IO.BinaryReader
depends DependencyInfo
Résultat void

ReadMeshLodInfo() protected méthode

protected ReadMeshLodInfo ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Résultat void

ReadMeshLodUsageGenerated() protected méthode

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

ReadMeshLodUsageManual() protected méthode

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

ReadMorphKeyframe() protected méthode

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

ReadPoseKeyframe() protected méthode

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

ReadPoses() protected méthode

protected ReadPoses ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Résultat void

ReadSkeletonDependency() protected méthode

protected ReadSkeletonDependency ( BinaryReader reader, DependencyInfo depends ) : void
reader System.IO.BinaryReader
depends DependencyInfo
Résultat void

ReadSkeletonLink() protected méthode

protected ReadSkeletonLink ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Résultat void

ReadSubMesh() protected méthode

protected ReadSubMesh ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Résultat void

ReadSubMeshBoneAssignment() protected méthode

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

ReadSubMeshNameTable() protected méthode

protected ReadSubMeshNameTable ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Résultat void

ReadSubMeshOperation() protected méthode

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

WriteAnimation() protected méthode

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

WriteAnimationPoseRef() protected méthode

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

WriteAnimationTrack() protected méthode

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

WriteAnimations() protected méthode

protected WriteAnimations ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
Résultat void

WriteAttachmentPoint() protected méthode

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

WriteGeometry() protected méthode

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

WriteGeometryVertexBuffer() protected méthode

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

WriteGeometryVertexBufferData() protected méthode

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

WriteGeometryVertexDeclaration() protected méthode

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

WriteGeometryVertexElement() protected méthode

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

WriteMesh() protected méthode

protected WriteMesh ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
Résultat void

WriteMeshBoneAssignment() protected méthode

protected WriteMeshBoneAssignment ( BinaryWriter writer, VertexBoneAssignment vba ) : void
writer System.IO.BinaryWriter
vba VertexBoneAssignment
Résultat void

WriteMeshBounds() protected méthode

protected WriteMeshBounds ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
Résultat void

WriteMeshLodGenerated() protected méthode

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

WriteMeshLodInfo() protected méthode

protected WriteMeshLodInfo ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
Résultat void

WriteMeshLodManual() protected méthode

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

WriteMeshLodSummary() protected méthode

protected WriteMeshLodSummary ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
Résultat void

WriteMeshLodUsage() protected méthode

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

WriteMorphKeyframe() protected méthode

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

WritePose() protected méthode

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

WritePoseKeyframe() protected méthode

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

WritePoseVertex() protected méthode

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

WritePoses() protected méthode

protected WritePoses ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
Résultat void

WriteSkeletonLink() protected méthode

protected WriteSkeletonLink ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
Résultat void

WriteSubMesh() protected méthode

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

WriteSubMeshBoneAssignment() protected méthode

protected WriteSubMeshBoneAssignment ( BinaryWriter writer, VertexBoneAssignment vba ) : void
writer System.IO.BinaryWriter
vba VertexBoneAssignment
Résultat void

WriteSubMeshNameTable() protected méthode

protected WriteSubMeshNameTable ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
Résultat void

WriteSubMeshNameTableElement() protected méthode

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

WriteSubMeshOperation() protected méthode

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

Property Details

isSkeletallyAnimated protected_oe property

Is this mesh animated with a skeleton?
protected bool isSkeletallyAnimated
Résultat bool

mesh protected_oe property

Target mesh for importing/exporting.
protected Mesh,Axiom.Core mesh
Résultat Axiom.Core.Mesh