C# Класс FlatRedBall.Graphics.Model.Animation.Content.AnimatedModelProcessor

Наследование: ModelProcessor
Показать файл Открыть проект

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

Метод Описание
Process ( Microsoft.Xna.Framework.Content.Pipeline.Graphics.NodeContent input, ContentProcessorContext context ) : Microsoft.Xna.Framework.Content.Pipeline.Processors.ModelContent

Processes a SkinnedModelImporter NodeContent root

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

Метод Описание
ProcessAnimation ( Microsoft.Xna.Framework.Content.Pipeline.Graphics.AnimationContent animation ) : Microsoft.Xna.Framework.Content.Pipeline.Graphics.AnimationContent
ProcessVertexChannel ( Microsoft.Xna.Framework.Content.Pipeline.Graphics.GeometryContent geometry, int vertexChannelIndex, ContentProcessorContext context ) : void

Go through the vertex channels in the geometry and replace the BoneWeightCollection objects with weight and index channels.

ReplaceBasicEffect ( SkinningType skinningType, Microsoft.Xna.Framework.Content.Pipeline.Processors.ModelMeshPartContent meshPart ) : void

Called when a basic effect is encountered and potentially replaced by BasicPaletteEffect (if not overridden). This is called afer effects have been processed.

SubdivideAnimations ( AnimationContentDictionary animDict, XmlDocument doc ) : void

Called when an XML document is read that specifies how animations should be split.

Приватные методы

Метод Описание
CalculateAbsoluteTransforms ( Microsoft.Xna.Framework.Content.Pipeline.Processors.ModelBoneContent bone, Matrix transforms ) : void
CreatePaletteIndices ( Microsoft.Xna.Framework.Content.Pipeline.Graphics.MeshContent mesh ) : void
FindAnimations ( Microsoft.Xna.Framework.Content.Pipeline.Graphics.NodeContent node ) : void

Searches through the NodeContent tree for all animations and puts them in one AnimationContentDictionary

FindMeshes ( Microsoft.Xna.Framework.Content.Pipeline.Graphics.NodeContent root ) : void
ProcessSkinInfo ( Microsoft.Xna.Framework.Content.Pipeline.Processors.ModelContent model ) : SkinInfoContentCollection[]
ReadAnimationXML ( Microsoft.Xna.Framework.Content.Pipeline.Graphics.NodeContent root ) : XmlDocument
ReplaceBasicEffects ( Microsoft.Xna.Framework.Content.Pipeline.Processors.ModelMeshContent input ) : void
ValidateMeshSkeleton ( Microsoft.Xna.Framework.Content.Pipeline.Graphics.MeshContent meshContent ) : bool

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

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

Processes a SkinnedModelImporter NodeContent root
public Process ( Microsoft.Xna.Framework.Content.Pipeline.Graphics.NodeContent input, ContentProcessorContext context ) : Microsoft.Xna.Framework.Content.Pipeline.Processors.ModelContent
input Microsoft.Xna.Framework.Content.Pipeline.Graphics.NodeContent The root of the X file tree
context ContentProcessorContext The context for this processor
Результат Microsoft.Xna.Framework.Content.Pipeline.Processors.ModelContent

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

protected ProcessAnimation ( Microsoft.Xna.Framework.Content.Pipeline.Graphics.AnimationContent animation ) : Microsoft.Xna.Framework.Content.Pipeline.Graphics.AnimationContent
animation Microsoft.Xna.Framework.Content.Pipeline.Graphics.AnimationContent
Результат Microsoft.Xna.Framework.Content.Pipeline.Graphics.AnimationContent

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

Go through the vertex channels in the geometry and replace the BoneWeightCollection objects with weight and index channels.
protected ProcessVertexChannel ( Microsoft.Xna.Framework.Content.Pipeline.Graphics.GeometryContent geometry, int vertexChannelIndex, ContentProcessorContext context ) : void
geometry Microsoft.Xna.Framework.Content.Pipeline.Graphics.GeometryContent The geometry to process.
vertexChannelIndex int The index of the vertex channel to process.
context ContentProcessorContext The processor context.
Результат void

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

Called when a basic effect is encountered and potentially replaced by BasicPaletteEffect (if not overridden). This is called afer effects have been processed.
protected ReplaceBasicEffect ( SkinningType skinningType, Microsoft.Xna.Framework.Content.Pipeline.Processors.ModelMeshPartContent meshPart ) : void
skinningType SkinningType The the skinning type of the meshpart.
meshPart Microsoft.Xna.Framework.Content.Pipeline.Processors.ModelMeshPartContent The MeshPart that contains the BasicMaterialContent.
Результат void

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

Called when an XML document is read that specifies how animations should be split.
protected SubdivideAnimations ( AnimationContentDictionary animDict, XmlDocument doc ) : void
animDict AnimationContentDictionary The dictionary of animation name/AnimationContent /// pairs.
doc System.Xml.XmlDocument The Xml document that contains info on how to split /// the animations.
Результат void