This reference page is linked to from the following overview topics: Meshes, List of Python FBX classes.
KFbxLayerElementArrayTemplate provides data array manipulation of the data buffer for KFbxLayerElement.
It is the subclass of KFbxLayerElementArray.
Definition at line 888 of file kfbxlayer.h.
#include <kfbxlayer.h>
Public Member Functions |
|
KFbxLayerElementArrayTemplate (EFbxType pDataType) | |
Constructor. |
|
int | Add (T const &pItem) |
Appends a new item to the end of the data
buffer. |
|
int | InsertAt (int pIndex, T const &pItem) |
Inserts a new item at the specified position
of the data buffer. |
|
void | SetAt (int pIndex, T const &pItem) |
Sets the value of the specified item.
|
|
void | SetLast (T const &pItem) |
Sets the value of the last item. |
|
T | RemoveAt (int pIndex) |
Removes the specified item from the data
buffer. |
|
T | RemoveLast () |
Removes the last item from the data buffer.
|
|
bool | RemoveIt (T const &pItem) |
Removes one item from the data buffer.
|
|
T | GetAt (int pIndex) const |
Returns the specified item's value. |
|
T | GetFirst () const |
Returns the first item's value. |
|
T | GetLast () const |
Returns the last item's value. |
|
int | Find (T const &pItem) |
Searches for an item in the data buffer.
|
|
int | FindAfter (int pAfterIndex, T const &pItem) |
Searches for an item after the specified
index in the data buffer. |
|
int | FindBefore (int pBeforeIndex, T const &pItem) |
Searches for one item before the specified
index in the data buffer. |
|
T | operator[] (int pIndex) const |
Returns the specified item's value. |
|
KFbxLayerElementArray & | operator= (const KArrayTemplate< T > &pArrayTemplate) |
Assignment operator. |
|
KFbxLayerElementArrayTemplate < T > & |
operator= (const KFbxLayerElementArrayTemplate< T > &pArrayTemplate) |
Assignment operator. |
|
Friends |
|
class | KFbxLayerElementUserData |
KFbxLayerElementArrayTemplate | ( | EFbxType | pDataType | ) | [inline] |
Constructor.
pDataType | The data type of the array items. |
Definition at line 895 of file kfbxlayer.h.
: KFbxLayerElementArray(pDataType) { }
int Add | ( | T const & | pItem | ) | [inline] |
Appends a new item to the end of the data buffer.
pItem | The new item to be added |
Reimplemented from KFbxLayerElementArray.
Definition at line 904 of file kfbxlayer.h.
{ return KFbxLayerElementArray::Add(pItem); }
int InsertAt | ( | int | pIndex, |
T const & | pItem | ||
) | [inline] |
Inserts a new item at the specified position of the data buffer.
pIndex | The specified position |
pItem | The new item to be inserted |
Reimplemented from KFbxLayerElementArray.
Definition at line 911 of file kfbxlayer.h.
{ return KFbxLayerElementArray::InsertAt(pIndex, pItem); }
void SetAt | ( | int | pIndex, |
T const & | pItem | ||
) | [inline] |
Sets the value of the specified item.
pIndex | The index of the item to be updated. |
pItem | The item whose value is copied to pIndex'th item |
Reimplemented from KFbxLayerElementArray.
Definition at line 917 of file kfbxlayer.h.
{ KFbxLayerElementArray::SetAt(pIndex, pItem); }
void SetLast | ( | T const & | pItem | ) | [inline] |
Sets the value of the last item.
pItem | The item whose value is copied to the last item |
Reimplemented from KFbxLayerElementArray.
Definition at line 922 of file kfbxlayer.h.
{ KFbxLayerElementArray::SetLast(pItem); }
T RemoveAt | ( | int | pIndex | ) | [inline] |
Removes the specified item from the data buffer.
pIndex | The index of the item to be removed |
Definition at line 928 of file kfbxlayer.h.
{ T lValue; KFbxLayerElementArray::RemoveAt(pIndex, &lValue); return lValue; }
T RemoveLast | ( | ) | [inline] |
Removes the last item from the data buffer.
Definition at line 933 of file kfbxlayer.h.
{ T lValue; KFbxLayerElementArray::RemoveLast(&lValue); return lValue; }
bool RemoveIt | ( | T const & | pItem | ) | [inline] |
Removes one item from the data buffer.
pItem | The first item who equals pItem is to be removed |
True
if the item is removed successfully,
false
otherwiseDefinition at line 939 of file kfbxlayer.h.
{ return KFbxLayerElementArray::RemoveIt(&pItem); }
T GetAt | ( | int | pIndex | ) | const [inline] |
Returns the specified item's value.
pIndex | Index of the item |
Definition at line 946 of file kfbxlayer.h.
{ T lValue; KFbxLayerElementArray::GetAt(pIndex, &lValue); return lValue; }
T GetFirst | ( | ) | const [inline] |
Returns the first item's value.
Definition at line 951 of file kfbxlayer.h.
{ T lValue; KFbxLayerElementArray::GetFirst(&lValue); return lValue; }
T GetLast | ( | ) | const [inline] |
Returns the last item's value.
Definition at line 956 of file kfbxlayer.h.
{ T lValue; KFbxLayerElementArray::GetLast(&lValue); return lValue; }
int Find | ( | T const & | pItem | ) | [inline] |
Searches for an item in the data buffer.
pItem | The value of the item for which to search |
Definition at line 963 of file kfbxlayer.h.
{ return KFbxLayerElementArray::Find(pItem); }
int FindAfter | ( | int | pAfterIndex, |
T const & | pItem | ||
) | [inline] |
Searches for an item after the specified index in the data buffer.
pAfterIndex | The specified index after which the searching begins |
pItem | The value of the item for which to search, the searching begins after pAfterIndex. |
Definition at line 971 of file kfbxlayer.h.
{ return KFbxLayerElementArray::FindAfter(pAfterIndex, pItem); }
int FindBefore | ( | int | pBeforeIndex, |
T const & | pItem | ||
) | [inline] |
Searches for one item before the specified index in the data buffer.
pBeforeIndex | The specified index before which the searching begins |
pItem | The value of the item for which to search, the searching begins before pBeforeIndex. |
Definition at line 979 of file kfbxlayer.h.
{ return KFbxLayerElementArray::FindBefore(pBeforeIndex, pItem); }
T operator[] | ( | int | pIndex | ) | const [inline] |
Returns the specified item's value.
pIndex | Index of the item |
Definition at line 986 of file kfbxlayer.h.
{ T lValue; KFbxLayerElementArray::GetAt(pIndex, &lValue); return lValue; }
KFbxLayerElementArray& operator= | ( | const KArrayTemplate< T > & | pArrayTemplate | ) | [inline] |
Assignment operator.
pArrayTemplate | The source array whose items are copied to this array. |
Definition at line 991 of file kfbxlayer.h.
{ SetStatus(LockAccessStatus::eNoWriteLock); if (WriteLock()) { SetCount(pArrayTemplate.GetCount()); for (int i = 0; i < pArrayTemplate.GetCount(); i++) SetAt(i, pArrayTemplate.GetAt(i)); WriteUnlock(); SetStatus(LockAccessStatus::eSuccess); } return *this; }
KFbxLayerElementArrayTemplate<T>& operator= | ( | const KFbxLayerElementArrayTemplate< T > & | pArrayTemplate | ) | [inline] |
Assignment operator.
pArrayTemplate | The source array whose items are copied to this array. |
Definition at line 1008 of file kfbxlayer.h.
{ if ( this != &pArrayTemplate ) { SetStatus(LockAccessStatus::eNoWriteLock); if (WriteLock()) { SetCount(pArrayTemplate.GetCount()); for (int i = 0; i < pArrayTemplate.GetCount(); i++) SetAt(i, pArrayTemplate.GetAt(i)); WriteUnlock(); SetStatus(LockAccessStatus::eSuccess); } } return *this; }
friend class KFbxLayerElementUserData
[friend] |
Definition at line 1029 of file kfbxlayer.h.