C# Class Mckineap.Utilities.Converters.SkeletonLiveConverter

Datei anzeigen Open project: loic-lavergne/mckineap Class Usage Examples

Public Methods

Method Description
Build ( int frame ) : bool

Build the created skeleton with a frame

Create ( int frame ) : void

Create a skeleton with preset or Assimp data

SkeletonLiveConverter ( ) : Assimp

Initializes a new instance of the Mckineap.Models.Model3D.SkeletonManager class.

Update ( int frame ) : bool

Updates the Skeleton Content

Private Methods

Method Description
BuildBone ( Mckineap myBone ) : System.Windows.Media.Media3D.GeometryModel3D

Buila bone for drawing

BuildJoint ( Joint joint, int frame ) : System.Windows.Media.Media3D.GeometryModel3D

Build a joint for drawing

FindNodeAnim ( string name ) : Assimp.NodeAnimationChannel

Recherche noeud assimp

GetActualMatrix ( Matrix4x4 &finMat, Assimp.NodeAnimationChannel pNodeAnim, Matrix4x4 parentMatrix, int frame ) : Matrix3D

Convert Assimp animation Data in Matrix3D Data

GetCurrentModelData ( ) : void

Get the data from Session

ReadNodeHierarchy ( Assimp.Node parentNode, Matrix4x4 parentMatrix, int frame ) : void

Cherche les noeuds dans l'animation

SetBone ( string firstName, string secondName ) : void

Create the bones from two joints

SetJoint ( string nodeName, Matrix3D destMatrix ) : void

Update a 3D Joint in the joint Collection

Method Details

Build() public method

Build the created skeleton with a frame
public Build ( int frame ) : bool
frame int
return bool

Create() public method

Create a skeleton with preset or Assimp data
public Create ( int frame ) : void
frame int
return void

SkeletonLiveConverter() public method

Initializes a new instance of the Mckineap.Models.Model3D.SkeletonManager class.
public SkeletonLiveConverter ( ) : Assimp
return Assimp

Update() public method

Updates the Skeleton Content
public Update ( int frame ) : bool
frame int
return bool