2012-08-09 09:45:04 +00:00
|
|
|
#region Using Statements
|
2011-11-07 21:19:15 +00:00
|
|
|
using System;
|
|
|
|
|
|
|
|
#endregion // Using Statements
|
|
|
|
|
2012-08-09 09:45:04 +00:00
|
|
|
// This file is part of the ANX.Framework created by the
|
|
|
|
// "ANX.Framework developer group" and released under the Ms-PL license.
|
|
|
|
// For details see: http://anxframework.codeplex.com/license
|
2011-11-07 21:19:15 +00:00
|
|
|
|
|
|
|
namespace ANX.Framework.Graphics
|
|
|
|
{
|
|
|
|
public sealed class ModelBone
|
|
|
|
{
|
2011-11-12 00:17:25 +00:00
|
|
|
private ModelBoneCollection children;
|
2011-11-07 21:19:15 +00:00
|
|
|
public ModelBoneCollection Children
|
|
|
|
{
|
2011-11-12 00:17:25 +00:00
|
|
|
get { return children; }
|
|
|
|
internal set { children = value; }
|
2011-11-07 21:19:15 +00:00
|
|
|
}
|
|
|
|
|
2011-11-12 00:17:25 +00:00
|
|
|
private int index;
|
2011-11-07 21:19:15 +00:00
|
|
|
public int Index
|
2011-11-12 00:17:25 +00:00
|
|
|
{
|
|
|
|
get { return index; }
|
2011-11-07 21:19:15 +00:00
|
|
|
}
|
|
|
|
|
2011-11-12 00:17:25 +00:00
|
|
|
private string name;
|
2011-11-07 21:19:15 +00:00
|
|
|
public string Name
|
2011-11-12 00:17:25 +00:00
|
|
|
{
|
|
|
|
get { return name; }
|
2011-11-07 21:19:15 +00:00
|
|
|
}
|
|
|
|
|
2011-11-12 00:17:25 +00:00
|
|
|
private ModelBone parent;
|
2011-11-07 21:19:15 +00:00
|
|
|
public ModelBone Parent
|
|
|
|
{
|
2011-11-12 00:17:25 +00:00
|
|
|
get { return parent; }
|
|
|
|
internal set { parent = value; }
|
2011-11-07 21:19:15 +00:00
|
|
|
}
|
|
|
|
|
2011-11-12 00:17:25 +00:00
|
|
|
private Matrix transform;
|
2011-11-07 21:19:15 +00:00
|
|
|
public Matrix Transform
|
|
|
|
{
|
2011-11-12 00:17:25 +00:00
|
|
|
get { return transform; }
|
|
|
|
set { transform = value; }
|
2011-11-07 21:19:15 +00:00
|
|
|
}
|
|
|
|
|
2011-11-12 00:17:25 +00:00
|
|
|
public ModelBone(string name, Matrix transform, int index)
|
|
|
|
{
|
|
|
|
this.name = name;
|
|
|
|
this.transform = transform;
|
|
|
|
this.index = index;
|
|
|
|
}
|
2011-11-07 21:19:15 +00:00
|
|
|
}
|
|
|
|
}
|