C# Класс Axiom.Serialization.MeshSerializerImpl

Summary description for MeshSerializerImpl.
Наследование: Serializer
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
isSkeletallyAnimated bool
mesh Axiom.Core.Mesh

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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

Описание методов

ExportMesh() публичный Метод

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.
Результат void

GetDependencyInfo() публичный Метод

Multiverse Extension
public GetDependencyInfo ( Stream stream, Axiom.Core.Mesh mesh ) : DependencyInfo
stream Stream
mesh Axiom.Core.Mesh
Результат DependencyInfo

ImportMesh() публичный Метод

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.
Результат void

MeshSerializerImpl() публичный Метод

Default constructor.
public MeshSerializerImpl ( ) : System
Результат System

ReadAnimation() защищенный Метод

protected ReadAnimation ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Результат void

ReadAnimationTrack() защищенный Метод

protected ReadAnimationTrack ( BinaryReader reader, Animation anim ) : void
reader System.IO.BinaryReader
anim Axiom.Animating.Animation
Результат void

ReadAnimations() защищенный Метод

protected ReadAnimations ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Результат void

ReadAttachmentPoint() защищенный Метод

Reads attachment point information from the file.
protected ReadAttachmentPoint ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Результат void

ReadBoundsInfo() защищенный Метод

protected ReadBoundsInfo ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Результат void

ReadChunk() защищенный Метод

protected ReadChunk ( BinaryReader reader ) : MeshChunkID
reader System.IO.BinaryReader
Результат MeshChunkID

ReadDependencyInfo() защищенный Метод

Multiuverse Extension
protected ReadDependencyInfo ( BinaryReader reader, DependencyInfo depends ) : void
reader System.IO.BinaryReader
depends DependencyInfo
Результат void

ReadEdgeList() защищенный Метод

protected ReadEdgeList ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Результат void

ReadGeometry() защищенный Метод

protected ReadGeometry ( BinaryReader reader, VertexData data ) : void
reader System.IO.BinaryReader
data Axiom.Graphics.VertexData
Результат void

ReadGeometryVertexBuffer() защищенный Метод

protected ReadGeometryVertexBuffer ( BinaryReader reader, VertexData data ) : void
reader System.IO.BinaryReader
data Axiom.Graphics.VertexData
Результат void

ReadGeometryVertexDeclaration() защищенный Метод

protected ReadGeometryVertexDeclaration ( BinaryReader reader, VertexData data ) : void
reader System.IO.BinaryReader
data Axiom.Graphics.VertexData
Результат void

ReadGeometryVertexElement() защищенный Метод

protected ReadGeometryVertexElement ( BinaryReader reader, VertexData data ) : void
reader System.IO.BinaryReader
data Axiom.Graphics.VertexData
Результат void

ReadMaterialDependency() защищенный Метод

protected ReadMaterialDependency ( BinaryReader reader, DependencyInfo depends ) : void
reader System.IO.BinaryReader
depends DependencyInfo
Результат void

ReadMesh() защищенный Метод

protected ReadMesh ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Результат void

ReadMeshBoneAssignment() защищенный Метод

protected ReadMeshBoneAssignment ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Результат void

ReadMeshDependency() защищенный Метод

protected ReadMeshDependency ( BinaryReader reader, DependencyInfo depends ) : void
reader System.IO.BinaryReader
depends DependencyInfo
Результат void

ReadMeshLodInfo() защищенный Метод

protected ReadMeshLodInfo ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Результат void

ReadMeshLodUsageGenerated() защищенный Метод

protected ReadMeshLodUsageGenerated ( BinaryReader reader, int lodNum, Axiom.Core.MeshLodUsage &usage ) : void
reader System.IO.BinaryReader
lodNum int
usage Axiom.Core.MeshLodUsage
Результат void

ReadMeshLodUsageManual() защищенный Метод

protected ReadMeshLodUsageManual ( BinaryReader reader, int lodNum, Axiom.Core.MeshLodUsage &usage ) : void
reader System.IO.BinaryReader
lodNum int
usage Axiom.Core.MeshLodUsage
Результат void

ReadMorphKeyframe() защищенный Метод

protected ReadMorphKeyframe ( BinaryReader reader, VertexAnimationTrack track ) : void
reader System.IO.BinaryReader
track Axiom.Animating.VertexAnimationTrack
Результат void

ReadPoseKeyframe() защищенный Метод

protected ReadPoseKeyframe ( BinaryReader reader, VertexAnimationTrack track ) : void
reader System.IO.BinaryReader
track Axiom.Animating.VertexAnimationTrack
Результат void

ReadPoses() защищенный Метод

protected ReadPoses ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Результат void

ReadSkeletonDependency() защищенный Метод

protected ReadSkeletonDependency ( BinaryReader reader, DependencyInfo depends ) : void
reader System.IO.BinaryReader
depends DependencyInfo
Результат void

ReadSkeletonLink() защищенный Метод

protected ReadSkeletonLink ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Результат void

ReadSubMesh() защищенный Метод

protected ReadSubMesh ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Результат void

ReadSubMeshBoneAssignment() защищенный Метод

protected ReadSubMeshBoneAssignment ( BinaryReader reader, SubMesh sub ) : void
reader System.IO.BinaryReader
sub Axiom.Core.SubMesh
Результат void

ReadSubMeshNameTable() защищенный Метод

protected ReadSubMeshNameTable ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Результат void

ReadSubMeshOperation() защищенный Метод

protected ReadSubMeshOperation ( BinaryReader reader, SubMesh sub ) : void
reader System.IO.BinaryReader
sub Axiom.Core.SubMesh
Результат void

WriteAnimation() защищенный Метод

protected WriteAnimation ( BinaryWriter writer, Animation anim ) : void
writer System.IO.BinaryWriter
anim Axiom.Animating.Animation
Результат void

WriteAnimationPoseRef() защищенный Метод

protected WriteAnimationPoseRef ( BinaryWriter writer, PoseRef poseRef ) : void
writer System.IO.BinaryWriter
poseRef Axiom.Animating.PoseRef
Результат void

WriteAnimationTrack() защищенный Метод

protected WriteAnimationTrack ( BinaryWriter writer, VertexAnimationTrack track ) : void
writer System.IO.BinaryWriter
track Axiom.Animating.VertexAnimationTrack
Результат void

WriteAnimations() защищенный Метод

protected WriteAnimations ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
Результат void

WriteAttachmentPoint() защищенный Метод

protected WriteAttachmentPoint ( BinaryWriter writer, AttachmentPoint ap ) : void
writer System.IO.BinaryWriter
ap Axiom.Animating.AttachmentPoint
Результат void

WriteGeometry() защищенный Метод

protected WriteGeometry ( BinaryWriter writer, VertexData vertexData ) : void
writer System.IO.BinaryWriter
vertexData Axiom.Graphics.VertexData
Результат void

WriteGeometryVertexBuffer() защищенный Метод

protected WriteGeometryVertexBuffer ( BinaryWriter writer, short bindIndex, HardwareVertexBuffer vertexBuffer ) : void
writer System.IO.BinaryWriter
bindIndex short
vertexBuffer Axiom.Graphics.HardwareVertexBuffer
Результат void

WriteGeometryVertexBufferData() защищенный Метод

protected WriteGeometryVertexBufferData ( BinaryWriter writer, int count, IntPtr buf ) : void
writer System.IO.BinaryWriter
count int
buf System.IntPtr
Результат void

WriteGeometryVertexDeclaration() защищенный Метод

protected WriteGeometryVertexDeclaration ( BinaryWriter writer, Axiom.Graphics.VertexDeclaration vertexDeclaration ) : void
writer System.IO.BinaryWriter
vertexDeclaration Axiom.Graphics.VertexDeclaration
Результат void

WriteGeometryVertexElement() защищенный Метод

protected WriteGeometryVertexElement ( BinaryWriter writer, VertexElement vertexElement ) : void
writer System.IO.BinaryWriter
vertexElement Axiom.Graphics.VertexElement
Результат void

WriteMesh() защищенный Метод

protected WriteMesh ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
Результат void

WriteMeshBoneAssignment() защищенный Метод

protected WriteMeshBoneAssignment ( BinaryWriter writer, VertexBoneAssignment vba ) : void
writer System.IO.BinaryWriter
vba VertexBoneAssignment
Результат void

WriteMeshBounds() защищенный Метод

protected WriteMeshBounds ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
Результат void

WriteMeshLodGenerated() защищенный Метод

protected WriteMeshLodGenerated ( BinaryWriter writer, SubMesh subMesh, int usageIndex ) : void
writer System.IO.BinaryWriter
subMesh Axiom.Core.SubMesh
usageIndex int
Результат void

WriteMeshLodInfo() защищенный Метод

protected WriteMeshLodInfo ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
Результат void

WriteMeshLodManual() защищенный Метод

protected WriteMeshLodManual ( BinaryWriter writer, Axiom.Core.MeshLodUsage usage ) : void
writer System.IO.BinaryWriter
usage Axiom.Core.MeshLodUsage
Результат void

WriteMeshLodSummary() защищенный Метод

protected WriteMeshLodSummary ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
Результат void

WriteMeshLodUsage() защищенный Метод

protected WriteMeshLodUsage ( BinaryWriter writer, Axiom.Core.MeshLodUsage usage, int usageIndex ) : void
writer System.IO.BinaryWriter
usage Axiom.Core.MeshLodUsage
usageIndex int
Результат void

WriteMorphKeyframe() защищенный Метод

protected WriteMorphKeyframe ( BinaryWriter writer, VertexMorphKeyFrame keyFrame ) : void
writer System.IO.BinaryWriter
keyFrame Axiom.Animating.VertexMorphKeyFrame
Результат void

WritePose() защищенный Метод

protected WritePose ( BinaryWriter writer, Pose pose ) : void
writer System.IO.BinaryWriter
pose Axiom.Animating.Pose
Результат void

WritePoseKeyframe() защищенный Метод

protected WritePoseKeyframe ( BinaryWriter writer, VertexPoseKeyFrame keyFrame ) : void
writer System.IO.BinaryWriter
keyFrame Axiom.Animating.VertexPoseKeyFrame
Результат void

WritePoseVertex() защищенный Метод

protected WritePoseVertex ( BinaryWriter writer, int vertexId, Vector3 offset ) : void
writer System.IO.BinaryWriter
vertexId int
offset Vector3
Результат void

WritePoses() защищенный Метод

protected WritePoses ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
Результат void

WriteSkeletonLink() защищенный Метод

protected WriteSkeletonLink ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
Результат void

WriteSubMesh() защищенный Метод

protected WriteSubMesh ( BinaryWriter writer, SubMesh subMesh ) : void
writer System.IO.BinaryWriter
subMesh Axiom.Core.SubMesh
Результат void

WriteSubMeshBoneAssignment() защищенный Метод

protected WriteSubMeshBoneAssignment ( BinaryWriter writer, VertexBoneAssignment vba ) : void
writer System.IO.BinaryWriter
vba VertexBoneAssignment
Результат void

WriteSubMeshNameTable() защищенный Метод

protected WriteSubMeshNameTable ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
Результат void

WriteSubMeshNameTableElement() защищенный Метод

protected WriteSubMeshNameTableElement ( BinaryWriter writer, short i, string name ) : void
writer System.IO.BinaryWriter
i short
name string
Результат void

WriteSubMeshOperation() защищенный Метод

protected WriteSubMeshOperation ( BinaryWriter writer, SubMesh subMesh ) : void
writer System.IO.BinaryWriter
subMesh Axiom.Core.SubMesh
Результат void

Описание свойств

isSkeletallyAnimated защищенное свойство

Is this mesh animated with a skeleton?
protected bool isSkeletallyAnimated
Результат bool

mesh защищенное свойство

Target mesh for importing/exporting.
protected Mesh,Axiom.Core mesh
Результат Axiom.Core.Mesh