KFbxLayerElementTemplate
#include<kfbxlayer.h>

Inheritance diagram for KFbxLayerElementTemplate:

Inheritance graph
[legend]

List of all members.

Detailed Description

template<class Type>
class KFbxLayerElementTemplate<Type>

This class complements theKFbxLayerElementclass.

Definition at line654of filekfbxlayer.h.


Public Member Functions

KFbxLayerElementArrayTemplate
<Type>& 
GetDirectArray() const
 Access the array of Layer Elements.
KFbxLayerElementArrayTemplate
<int>& 
GetIndexArray() const
 Access the array of index.
bool Clear()
 Remove all elements from the direct and the index arrays.
int RemapIndexTo(KFbxLayerElement::EMappingModepNewMapping)
 Change the Mapping mode to the new one and re-compute the index array accordingly.

Member Function Documentation

KFbxLayerElementArrayTemplate<Type>&GetDirectArray( ) const[inline]

Access the array of Layer Elements.

Returns:
A reference to the Layer Elements array.
Remarks:
You cannot put elements in the direct array when the mapping mode is set to eINDEX.

Reimplemented inKFbxLayerElementMaterial.

Definition at line661of filekfbxlayer.h.

Referenced byKFbxLayerElementUserData::Clear(),KFbxLayerElementUserData::GetArrayCount(),KFbxLayerElementUserData::GetDirectArrayCount(),KFbxLayerElementUserData::GetDirectArrayVoid(),KFbxLayerElementUserData::operator=(),KFbxLayerElementUserData::RemoveFromAllDirectArrays(), andKFbxLayerElementUserData::ResizeAllDirectArrays().

KFbxLayerElementArrayTemplate<int>&GetIndexArray( ) const[inline]

Access the array of index.

Returns:
A reference to the index array.
Remarks:
You cannot put elements in the index array when the mapping mode is set to eDIRECT.

Definition at line676of filekfbxlayer.h.

Referenced byKFbxLayerElementUserData::operator=().

bool Clear( ) [inline]

Remove all elements from the direct and the index arrays.

Remarks:
This function will fail if there is a lock on the arrays.
Returns:
True if successfull or False if a lock is present

Reimplemented inKFbxLayerElementUserData.

Definition at line691of filekfbxlayer.h.

Referenced byKFbxLayerElementUserData::Clear(),KFbxLayerElementUserData::operator=(), andKFbxLayerElementUserData::~KFbxLayerElementUserData().

int RemapIndexTo(KFbxLayerElement::EMappingMode pNewMapping ) [inline]

Change the Mapping mode to the new one and re-compute the index array accordingly.

Parameters:
pNewMapping New mapping mode.
Returns:
If the remapping is successfull, return 1 else if an error occurred return 0. In case the function cannot remap to the desired mode due to incompatible modes or not supported mode, returns -1.

Definition at line774of filekfbxlayer.h.