-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfbxarray.sip
More file actions
74 lines (64 loc) · 2.98 KB
/
fbxarray.sip
File metadata and controls
74 lines (64 loc) · 2.98 KB
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
template<Type>
class FbxArray
{
public:
FbxArray();
FbxArray(const FbxArray& pArrayTemplate);
~FbxArray();
int GetCount() const;
int InsertAt(int pIndex, Type pItem);
int Add(Type pItem);
int AddUnique(Type pItem);
void AddArray(FbxArray<Type> &pArray);
void AddArrayNoDuplicate(FbxArray<Type> &pArray);
void SetAt(int pIndex, Type pItem);
void SetLast(Type pItem);
Type GetAt(int pIndex) const;
Type GetFirst() const;
Type GetLast() const;
Type RemoveAt(int pIndex);
Type RemoveLast();
bool RemoveIt(Type pItem);
void RemoveArray(FbxArray<Type> &pArray);
int Find(Type pItem) const;
Type operator[](int pIndex) const;
%MethodCode
if (a0 < 0 || a0 >= sipCpp->GetCount())
{
PyErr_Format(PyExc_IndexError, "sequence index out of range");
sipIsErr = 1;
}
else
{
fbxArrayElementCopy(&sipRes, (Type*)NULL, sipCpp, a0);
}
%End
};
%ModuleHeaderCode
typedef FbxArray<bool> BoolArray;
typedef FbxArray<int> IntArray;
typedef FbxArray<double> DoubleArray;
typedef FbxArray<FbxStringPtr> FbxStringArray;
typedef FbxArray<FbxObjectPtr> FbxObjectArray;
typedef FbxArray<FbxPosePtr> FbxPoseArray;
typedef FbxArray<FbxNodePtr> FbxNodeArray;
typedef FbxArray<FbxTexturePtr> FbxTextureArray;
typedef FbxArray<FbxDocumentPtr> FbxDocumentArray;
typedef FbxArray<FbxSurfaceMaterialPtr> FbxSurfaceMaterialArray;
typedef FbxArray<FbxLayerElement::EType> FbxLayerElementTypeArray;
typedef FbxArray<FbxVector2> FbxVector2Array;
typedef FbxArray<FbxVector4> FbxVector4Array;
%End
typedef FbxArray<bool> BoolArray;
typedef FbxArray<int> IntArray;
typedef FbxArray<double> DoubleArray;
typedef FbxArray<FbxStringPtr> FbxStringArray;
typedef FbxArray<FbxObjectPtr> FbxObjectArray;
typedef FbxArray<FbxPosePtr> FbxPoseArray;
typedef FbxArray<FbxNodePtr> FbxNodeArray;
typedef FbxArray<FbxTexturePtr> FbxTextureArray;
typedef FbxArray<FbxDocumentPtr> FbxDocumentArray;
typedef FbxArray<FbxSurfaceMaterialPtr> FbxSurfaceMaterialArray;
typedef FbxArray<FbxLayerElement::EType> FbxLayerElementTypeArray;
typedef FbxArray<FbxVector2> FbxVector2Array;
typedef FbxArray<FbxVector4> FbxVector4Array;