forked from izrik/FbxSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFbxSkeleton.cs
68 lines (50 loc) · 1.98 KB
/
FbxSkeleton.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
using System;
namespace FbxSharp
{
public class FbxSkeleton : FbxNodeAttribute
{
public override EAttributeType AttributeType { get { return EAttributeType.Skeleton; } }
public void Reset()
{
throw new NotImplementedException();
}
public enum EType
{
Root,
Limb,
LimbNode,
Effector //= Root,
}
#region Skeleton Properties
EType? _skeletonType;
public EType SkeletonType
{
get { return _skeletonType.HasValue ? _skeletonType.Value : SkeletonTypeDefaultValue; }
set { _skeletonType = value; }
}
public bool IsSkeletonTypeSet { get { return _skeletonType.HasValue; } }
public EType SkeletonTypeDefaultValue { get { return EType.Root; } }
public double LimbLengthDefaultValue { get { return sDefaultLimbLength; } }
public double LimbNodeSizeDefaultValue { get { return sDefaultSize; } }
FbxColor? _limbNodeColor;
public FbxColor LimbNodeColor
{
get { return _limbNodeColor.HasValue ? _limbNodeColor.Value : LimbNodeColorDefaultValue; }
set { _limbNodeColor = value; }
}
public bool IsLimbNodeColorSet { get { return _limbNodeColor.HasValue; } }
public FbxColor LimbNodeColorDefaultValue { get { return new FbxColor(new FbxVector3(0.8f,0.8f,0.8f)); } }
public bool IsSkeletonRoot { get; protected set; }
#endregion
#region Property Names
public const string sSize = "";
public const string sLimbLength = "";
#endregion
#region Property Default Values
public const double sDefaultSize = 100;
public const double sDefaultLimbLength = 1;
public readonly FbxPropertyT<double> Size = new FbxPropertyT<double>("Size");
public readonly FbxPropertyT<double> LimbLength = new FbxPropertyT<double>("LimbLength");
#endregion
}
}