FBX C++ API Reference
|
#include <fbxlayer.h>
Layer element for mapping custom user data to a geometry.
This layer element is different from the other types of layer elements in that it has multiple direct arrays. There is one array for each user data attribute. Each array is indexed by the index array.
Definition at line 1518 of file fbxlayer.h.
Public Member Functions | |
FbxLayerElementArrayTemplate< void * > * | GetDirectArrayVoid (int pIndex, bool *pStatus=((void *) 0)) |
Returns the direct array with the specified attribute index. More... | |
const FbxLayerElementArrayTemplate< void * > * | GetDirectArrayVoid (int pIndex, bool *pStatus=((void *) 0)) const |
Returns the direct array with the specified attribute index. More... | |
FbxLayerElementArrayTemplate< void * > * | GetDirectArrayVoid (const char *pName, bool *pStatus=((void *) 0)) |
Returns the direct array with the specified attribute name. More... | |
const FbxLayerElementArrayTemplate< void * > * | GetDirectArrayVoid (const char *pName, bool *pStatus=((void *) 0)) const |
Returns the direct array with the specified attribute name. More... | |
FbxDataType | GetDataType (int pIndex) const |
Returns the data type for the specified index. More... | |
FbxDataType | GetDataType (const char *pName) const |
Returns the specified attribute data type. More... | |
const char * | GetDataName (int pIndex) const |
Returns the attribute name at the specified index. More... | |
void | ResizeAllDirectArrays (int pSize) |
Resizes all direct arrays to the specified size. More... | |
void | RemoveFromAllDirectArrays (int pIndex) |
Removes a single element at pIndex from every direct array. More... | |
int | GetArrayCount (int pIndex) const |
Returns the direct array count for the attribute at pIndex. More... | |
int | GetId () const |
Queries the this layer element's ID. More... | |
int | GetDirectArrayCount () const |
Returns this layer element's direct array count. More... | |
FbxLayerElementUserData & | operator= (FbxLayerElementUserData const &pOther) |
Assignment operator which performs a deep copy. More... | |
bool | Clear () |
Removes all data from this layer element. More... | |
virtual int | MemorySize () const |
Queries the amount of memory used by this object as well as its content. More... | |
![]() | |
FbxLayerElementArrayTemplate< void * > & | GetDirectArray () const |
Returns the direct array of Layer Elements. More... | |
FbxLayerElementArrayTemplate< void * > & | GetDirectArray () |
Returns the direct array of Layer Elements. More... | |
FbxLayerElementArrayTemplate< int > & | GetIndexArray () const |
Returns the index array of Layer Elements. More... | |
FbxLayerElementArrayTemplate< int > & | GetIndexArray () |
Returns the index array of Layer Elements. More... | |
bool | Clear () |
Removes all elements from the direct and the index arrays. More... | |
bool | operator== (const FbxLayerElementTemplate &pOther) const |
Equivalence operator. More... | |
FbxLayerElementTemplate & | operator= (FbxLayerElementTemplate const &pOther) |
Assignment operator. More... | |
int | RemapIndexTo (FbxLayerElement::EMappingMode pNewMapping) |
Changes the Mapping mode to the new one and re-computes the index array. More... | |
![]() | |
void | SetMappingMode (EMappingMode pMappingMode) |
Sets the Mapping Mode. More... | |
void | SetReferenceMode (EReferenceMode pReferenceMode) |
Sets the Reference Mode. More... | |
EMappingMode | GetMappingMode () const |
Returns the Mapping Mode. More... | |
EReferenceMode | GetReferenceMode () const |
Returns the Reference Mode. More... | |
void | SetName (const char *pName) |
Sets the name of this object. More... | |
const char * | GetName () const |
Returns the name of this object. More... | |
bool | operator== (const FbxLayerElement &pOther) const |
Equivalence operator. More... | |
FbxLayerElement & | operator= (FbxLayerElement const &pOther) |
Assignment operator. More... | |
void | Destroy () |
Removes this layer element from its owner and delete it. More... | |
Static Public Member Functions | |
static FbxLayerElementUserData * | Create (FbxLayerContainer *pOwner, const char *pName, int pId, FbxArray< FbxDataType > &pDataTypes, FbxArray< const char *> &pDataNames) |
Allocation method. More... | |
static FbxLayerElementUserData * | Create (FbxLayerContainer *pOwner, FbxLayerElementUserData const &pOther) |
Allocation method. More... | |
Friends | |
template<typename T > | |
T * | fbxsdk ::FbxNew () |
template<typename T , typename T1 > | |
T * | fbxsdk ::FbxNew (T1 &p1) |
template<typename T , typename T1 > | |
T * | fbxsdk ::FbxNew (const T1 &p1) |
template<typename T , typename T1 , typename T2 > | |
T * | fbxsdk ::FbxNew (T1 &p1, T2 &p2) |
template<typename T , typename T1 , typename T2 > | |
T * | fbxsdk ::FbxNew (T1 &p1, const T2 &p2) |
template<typename T , typename T1 , typename T2 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, T2 &p2) |
template<typename T , typename T1 , typename T2 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2) |
template<typename T , typename T1 , typename T2 , typename T3 > | |
T * | fbxsdk ::FbxNew (T1 &p1, T2 &p2, T3 &p3) |
template<typename T , typename T1 , typename T2 , typename T3 > | |
T * | fbxsdk ::FbxNew (T1 &p1, T2 &p2, const T3 &p3) |
template<typename T , typename T1 , typename T2 , typename T3 > | |
T * | fbxsdk ::FbxNew (T1 &p1, const T2 &p2, T3 &p3) |
template<typename T , typename T1 , typename T2 , typename T3 > | |
T * | fbxsdk ::FbxNew (T1 &p1, const T2 &p2, const T3 &p3) |
template<typename T , typename T1 , typename T2 , typename T3 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, T2 &p2, T3 &p3) |
template<typename T , typename T1 , typename T2 , typename T3 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, T2 &p2, const T3 &p3) |
template<typename T , typename T1 , typename T2 , typename T3 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, T3 &p3) |
template<typename T , typename T1 , typename T2 , typename T3 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, const T3 &p3) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (T1 &p1, T2 &p2, T3 &p3, T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (T1 &p1, T2 &p2, T3 &p3, const T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (T1 &p1, T2 &p2, const T3 &p3, T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (T1 &p1, T2 &p2, const T3 &p3, const T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (T1 &p1, const T2 &p2, T3 &p3, T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (T1 &p1, const T2 &p2, T3 &p3, const T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (T1 &p1, const T2 &p2, const T3 &p3, T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, T2 &p2, T3 &p3, T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, T2 &p2, T3 &p3, const T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, T2 &p2, const T3 &p3, T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, T2 &p2, const T3 &p3, const T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, T3 &p3, T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, T3 &p3, const T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, const T3 &p3, T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
T * | fbxsdk ::FbxNew (T1 &p1, T2 &p2, T3 &p3, T4 &p4, T5 &p5) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, T2 &p2, T3 &p3, T4 &p4, T5 &p5) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, T3 &p3, T4 &p4, T5 &p5) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, T2 &p2, const T3 &p3, T4 &p4, T5 &p5) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, T2 &p2, T3 &p3, const T4 &p4, T5 &p5) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, T2 &p2, T3 &p3, T4 &p4, const T5 &p5) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, const T3 &p3, T4 &p4, T5 &p5) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, T3 &p3, const T4 &p4, T5 &p5) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, T3 &p3, T4 &p4, const T5 &p5) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, T5 &p5) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, const T3 &p3, T4 &p4, const T5 &p5) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6, const T7 &p7) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6, const T7 &p7, const T8 &p8) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6, const T7 &p7, const T8 &p8, const T9 &p9) |
template<typename T > | |
void | fbxsdk ::FbxDelete (T *p) |
template<typename T > | |
void | fbxsdk ::FbxDelete (const T *p) |
template<typename T > | |
T * | fbxsdk ::FbxNewArray (const int n) |
template<typename T > | |
void | fbxsdk ::FbxDeleteArray (T *p) |
Additional Inherited Members | |
![]() | |
enum | EType { eUnknown, eNormal, eBiNormal, eTangent, eMaterial, ePolygonGroup, eUV, eVertexColor, eSmoothing, eVertexCrease, eEdgeCrease, eHole, eUserData, eVisibility, eTextureDiffuse, eTextureDiffuseFactor, eTextureEmissive, eTextureEmissiveFactor, eTextureAmbient, eTextureAmbientFactor, eTextureSpecular, eTextureSpecularFactor, eTextureShininess, eTextureNormalMap, eTextureBump, eTextureTransparency, eTextureTransparencyFactor, eTextureReflection, eTextureReflectionFactor, eTextureDisplacement, eTextureDisplacementVector, eTypeCount } |
Layer Element type identifier. More... | |
enum | EMappingMode { eNone, eByControlPoint, eByPolygonVertex, eByPolygon, eByEdge, eAllSame } |
Determines how the element is mapped to a surface. More... | |
enum | EReferenceMode { eDirect, eIndex, eIndexToDirect } |
Determines how the mapping information is stored in the array of coordinates. More... | |
![]() | |
static const int | sTypeTextureStartIndex = int(eTextureDiffuse) |
The start index of texture type layer elements. More... | |
static const int | sTypeTextureEndIndex = int(eTypeCount) - 1 |
The end index of texture type layer elements. More... | |
static const int | sTypeTextureCount = sTypeTextureEndIndex - sTypeTextureStartIndex + 1 |
The count of texture type layer elements. More... | |
static const int | sTypeNonTextureStartIndex = int(eNormal) |
The start index of non-texture type layer elements. More... | |
static const int | sTypeNonTextureEndIndex = int(eVisibility) |
The end index of non-texture type layer elements. More... | |
static const int | sTypeNonTextureCount = sTypeNonTextureEndIndex - sTypeNonTextureStartIndex + 1 |
The count of non-texture type layer elements. More... | |
static const char *const | sTextureNames [] |
Array of names of texture type layer elements. More... | |
static const char *const | sTextureUVNames [] |
Array of names of UV layer elements. More... | |
static const char *const | sNonTextureNames [] |
Array of names of non-texture type layer elements. More... | |
static const FbxDataType | sTextureDataTypes [] |
Array of texture types. More... | |
static const char *const | sTextureChannelNames [] |
Array of texture channels. More... | |
|
static |
Allocation method.
pOwner | The owner of this layer element. |
pName | The layer element name. |
pId | The layer element ID. |
pDataTypes | Attribute data types of this layer element, one direct array is allocated for each Attribute data type. |
pDataNames | Attribute names of this layer element. |
NULL
if creation fails.
|
static |
Allocation method.
pOwner | The owner of this layer element. |
pOther | Other layer element from which to copy. |
NULL
if creation fails.
|
inline |
Returns the direct array with the specified attribute index.
pIndex | Specified attribute index. |
pStatus | A flag to indicate whether the direct array is returned successfully or not. |
Definition at line 1546 of file fbxlayer.h.
|
inline |
Returns the direct array with the specified attribute index.
pIndex | Specified attribute index. |
pStatus | A flag to indicate whether the direct array is returned successfully or not. |
Definition at line 1566 of file fbxlayer.h.
|
inline |
Returns the direct array with the specified attribute name.
pName | Specified attribute name. |
pStatus | A flag to indicate whether the direct array is returned successfully or not. |
Definition at line 1587 of file fbxlayer.h.
|
inline |
Returns the direct array with the specified attribute name.
pName | Specified attribute name. |
pStatus | A flag to indicate whether the direct array is returned successfully or not. |
Definition at line 1605 of file fbxlayer.h.
|
inline |
Returns the data type for the specified index.
pIndex | The index of the attribute being queried |
Definition at line 1622 of file fbxlayer.h.
|
inline |
Returns the specified attribute data type.
pName | The name of the attribute being queried |
Definition at line 1634 of file fbxlayer.h.
|
inline |
Returns the attribute name at the specified index.
pIndex | Attribute index |
NULL
if pIndex is out of range. Definition at line 1651 of file fbxlayer.h.
|
inline |
Resizes all direct arrays to the specified size.
pSize | The new size of the direct arrays. |
Definition at line 1662 of file fbxlayer.h.
|
inline |
Removes a single element at pIndex from every direct array.
pIndex | The index of the element to be removed. |
Definition at line 1684 of file fbxlayer.h.
|
inline |
Returns the direct array count for the attribute at pIndex.
pIndex | The attribute index |
Definition at line 1707 of file fbxlayer.h.
|
inline |
Queries the this layer element's ID.
Definition at line 1731 of file fbxlayer.h.
|
inline |
Returns this layer element's direct array count.
Definition at line 1737 of file fbxlayer.h.
|
inline |
Assignment operator which performs a deep copy.
pOther | Other FbxLayerElementUserData from which to perform a deep copy. |
Definition at line 1743 of file fbxlayer.h.
|
inlinevirtual |
Removes all data from this layer element.
True
always Reimplemented from FbxLayerElement.
Definition at line 1797 of file fbxlayer.h.
|
inlinevirtual |
Queries the amount of memory used by this object as well as its content.
It does not consider the content pointed.
Definition at line 1826 of file fbxlayer.h.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |