forked from izrik/FbxSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFbxNodeAttribute.cs
75 lines (61 loc) · 1.55 KB
/
FbxNodeAttribute.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
68
69
70
71
72
73
74
using System;
namespace FbxSharp
{
public abstract class FbxNodeAttribute : FbxObject
{
protected FbxNodeAttribute(string name="")
: base(name)
{
this.Properties.Add(Color);
nodes = DstObjects.CreateCollectionView<FbxNode>();
}
public enum EAttributeType
{
Unknown,
Null,
Marker,
Skeleton,
Mesh,
Nurbs,
Patch,
Camera,
CameraStereo,
CameraSwitcher,
Light,
OpticalReference,
OpticalMarker,
NurbsCurve,
TrimNurbsSurface,
Boundary,
NurbsSurface,
Shape,
LODGroup,
SubDiv,
CachedEffect,
Line,
}
public abstract EAttributeType AttributeType { get; }
#region Public Member Functions
public EAttributeType GetAttributeType()
{
return AttributeType;
}
readonly CollectionView<FbxNode> nodes;
public int GetNodeCount()
{
return nodes.Count;
}
public FbxNode GetNode(int pIndex=0)
{
return nodes[pIndex];
}
#endregion
#region Public Attributes
public readonly FbxPropertyT<FbxVector3> Color = new FbxPropertyT<FbxVector3>("Color");
#endregion
public override string GetNameSpacePrefix()
{
return "NodeAttribute::";
}
}
}