forked from izrik/FbxSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFbxAnimStack.cs
63 lines (50 loc) · 1.86 KB
/
FbxAnimStack.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
using System;
namespace FbxSharp
{
public class FbxAnimStack : FbxCollection
{
public FbxAnimStack(String name="")
: base(name)
{
Properties.Add(Description);
Properties.Add(LocalStart);
Properties.Add(LocalStop);
Properties.Add(ReferenceStart);
Properties.Add(ReferenceStop);
}
#region Public Attributes
public readonly FbxPropertyT<string> Description = new FbxPropertyT<string>( "Description");
public readonly FbxPropertyT<FbxTime> LocalStart = new FbxPropertyT<FbxTime>("LocalStart");
public readonly FbxPropertyT<FbxTime> LocalStop = new FbxPropertyT<FbxTime>("LocalStop");
public readonly FbxPropertyT<FbxTime> ReferenceStart = new FbxPropertyT<FbxTime>("ReferenceStart");
public readonly FbxPropertyT<FbxTime> ReferenceStop = new FbxPropertyT<FbxTime>("ReferenceStop");
#endregion
#region Utility functions.
public FbxTimeSpan GetLocalTimeSpan()
{
return new FbxTimeSpan(LocalStart.Get(), LocalStop.Get());
}
public void SetLocalTimeSpan(FbxTimeSpan pTimeSpan)
{
LocalStart.Set(pTimeSpan.GetStart());
LocalStop.Set(pTimeSpan.GetStop());
}
public FbxTimeSpan GetReferenceTimeSpan()
{
throw new NotImplementedException();
}
public void SetReferenceTimeSpan(FbxTimeSpan pTimeSpan)
{
throw new NotImplementedException();
}
public bool BakeLayers(FbxAnimEvaluator pEvaluator, FbxTime pStart, FbxTime pStop, FbxTime pPeriod)
{
throw new NotImplementedException();
}
#endregion
public override string GetNameSpacePrefix()
{
return "AnimStack::";
}
}
}