FBX C++ API Reference
FbxLayer Class Reference

#include <fbxlayer.h>

Class Description

FbxLayer class provides a base for the layering mechanism.

A layer can contain one or more of the following layer elements:

  • Normals
  • Binormals
  • Tangents
  • Materials
  • Polygon Groups
  • UVs
  • Vertex Colors
  • Smoothing informations
  • Vertex Creases
  • Edge Creases
  • Custom User Data
  • Visibilities
  • Textures (diffuse, ambient, specular, etc.) (deprecated)

A typical layer for a Mesh contains Normals, UVs and Materials. A typical layer for NURBS contains only Materials. In the case of the NURBS, the NURBS' parameterization is used for the UVs; no UVs should be specified.

In most cases, you only need a single layer to describe a geometry. Many applications only support what is defined on the first layer. Take this into account when you fill the layer. For example, it is legal to define the Layer 0 with the UVs and then define the model's Normals on layer 1. However if you construct a file this way, it may not be imported correctly in other applications. Store the Normals in Layer 0 to avoid problems.

Since FBX SDK 2011, Textures are connected to the properties of FbxSurfaceMaterial derived classes. FbxLayerElementTexture is no longer used. See the code example in FbxLayerElementTexture for how to connect a texture.

Since FBX SDK 2011, texture layering is achieved by FbxLayeredTexture. See the code example in FbxLayeredTexture for how to blend textures.

Normally, you can access layer from FbxLayerContainer like FbxGeometry. For example,

FbxMesh* mesh;
FbxLayer* layer0 = mesh->GetLayer(0);
FbxLayerElementNormal* normals = layer0->GetNormals();
See also
FbxLayerElement
FbxLayerElementNormal
FbxLayerElementBinormal
FbxLayerElementTangent
FbxLayerElementMaterial
FbxLayerElementPolygonGroup
FbxLayerElementUV
FbxLayerElementVertexColor
FbxLayerElementSmoothing
FbxLayerElementCrease
FbxLayerElementUserData
FbxLayerElementHole
FbxLayerElementVisibility
Examples:
ExportScene03/main.cxx, and Instances/main.cxx.

Definition at line 2369 of file fbxlayer.h.

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)
 

Layer Element Management

FbxLayerElementNormalGetNormals ()
 Returns this layer's Normals description . More...
 
const FbxLayerElementNormalGetNormals () const
 Returns this layer's Normals description . More...
 
FbxLayerElementTangentGetTangents ()
 Returns this layer's Tangents description. More...
 
const FbxLayerElementTangentGetTangents () const
 Returns this layer's Tangents description. More...
 
FbxLayerElementBinormalGetBinormals ()
 Returns this layer's Binormals description. More...
 
const FbxLayerElementBinormalGetBinormals () const
 Returns this layer's Binormals description. More...
 
FbxLayerElementMaterialGetMaterials ()
 Returns this layer's Materials description. More...
 
const FbxLayerElementMaterialGetMaterials () const
 Returns this layer's Materials description. More...
 
FbxLayerElementPolygonGroupGetPolygonGroups ()
 Returns this layer's Polygon Groups description. More...
 
const FbxLayerElementPolygonGroupGetPolygonGroups () const
 Returns this layer's Polygon Groups description. More...
 
FbxLayerElementUVGetUVs (FbxLayerElement::EType pTypeIdentifier=FbxLayerElement::eTextureDiffuse)
 Returns this layer's UV description. More...
 
const FbxLayerElementUVGetUVs (FbxLayerElement::EType pTypeIdentifier=FbxLayerElement::eTextureDiffuse) const
 Returns this layer's UV description. More...
 
int GetUVSetCount () const
 Returns the number of different UV sets in this layer. More...
 
FbxArray< FbxLayerElement::ETypeGetUVSetChannels () const
 Returns an array that describes which UV sets are in this layer. More...
 
FbxArray< const FbxLayerElementUV * > GetUVSets () const
 Returns an array of UV sets in this layer. More...
 
FbxLayerElementVertexColorGetVertexColors ()
 Returns this layer's Vertex Colors description. More...
 
const FbxLayerElementVertexColorGetVertexColors () const
 Returns this layer's Vertex Colors description. More...
 
FbxLayerElementSmoothingGetSmoothing ()
 Returns this layer's Smoothing description. More...
 
const FbxLayerElementSmoothingGetSmoothing () const
 Returns this layer's Smoothing description. More...
 
FbxLayerElementCreaseGetVertexCrease ()
 Returns this layer's vertex crease description. More...
 
const FbxLayerElementCreaseGetVertexCrease () const
 Returns this layer's vertex crease description. More...
 
FbxLayerElementCreaseGetEdgeCrease ()
 Returns this layer's edge crease description. More...
 
const FbxLayerElementCreaseGetEdgeCrease () const
 Returns this layer's edge crease description. More...
 
FbxLayerElementHoleGetHole ()
 Returns this layer's Hole description. More...
 
const FbxLayerElementHoleGetHole () const
 Returns this layer's Hole description. More...
 
FbxLayerElementUserDataGetUserData ()
 Returns this layer's User Data. More...
 
const FbxLayerElementUserDataGetUserData () const
 Returns this layer's User Data. More...
 
FbxLayerElementVisibilityGetVisibility ()
 Returns this layer's visibility. More...
 
const FbxLayerElementVisibilityGetVisibility () const
 Returns this layer's visibility. More...
 
FbxLayerElementTextureGetTextures (FbxLayerElement::EType pType)
 Returns this layer's Textures description. More...
 
const FbxLayerElementTextureGetTextures (FbxLayerElement::EType pType) const
 Returns this layer's Textures description. More...
 
void SetTextures (FbxLayerElement::EType pType, FbxLayerElementTexture *pTextures)
 Sets this layer's Textures description. More...
 
FbxLayerElementGetLayerElementOfType (FbxLayerElement::EType pType, bool pIsUV=false)
 Returns the specified type of layer element description for this layer. More...
 
const FbxLayerElementGetLayerElementOfType (FbxLayerElement::EType pType, bool pIsUV=false) const
 Returns the specified type of layer element description for this layer. More...
 
void SetNormals (FbxLayerElementNormal *pNormals)
 Sets this layer's Normals description. More...
 
void SetBinormals (FbxLayerElementBinormal *pBinormals)
 Sets this layer's Binormals description. More...
 
void SetTangents (FbxLayerElementTangent *pTangents)
 Sets this layer's Tangents description. More...
 
void SetMaterials (FbxLayerElementMaterial *pMaterials)
 Sets this layer's Materials description. More...
 
void SetPolygonGroups (FbxLayerElementPolygonGroup *pPolygonGroups)
 Sets this layer's Polygon Groups description. More...
 
void SetUVs (FbxLayerElementUV *pUVs, FbxLayerElement::EType pTypeIdentifier=FbxLayerElement::eTextureDiffuse)
 Sets this layer's UVs description. More...
 
void SetVertexColors (FbxLayerElementVertexColor *pVertexColors)
 Sets this layer's Vertex Colors description. More...
 
void SetSmoothing (FbxLayerElementSmoothing *pSmoothing)
 Sets this layer's Smoothing description. More...
 
void SetVertexCrease (FbxLayerElementCrease *pCrease)
 Sets this layer's Vertex Crease description. More...
 
void SetEdgeCrease (FbxLayerElementCrease *pCrease)
 Sets this layer's Edge Crease description. More...
 
void SetHole (FbxLayerElementHole *pHole)
 Sets this layer's Hole description. More...
 
void SetUserData (FbxLayerElementUserData *pUserData)
 Sets this layer's User Data. More...
 
void SetVisibility (FbxLayerElementVisibility *pVisibility)
 Sets this layer's the visibility. More...
 
void SetLayerElementOfType (FbxLayerElement *pLayerElement, FbxLayerElement::EType pType, bool pIsUV=false)
 Sets the specified type of layer element description for this layer. More...
 
FbxLayerElementCreateLayerElementOfType (FbxLayerElement::EType pType, bool pIsUV=false)
 Creates the specified type of layer element description for this layer. More...
 
void Clone (FbxLayer const &pSrcLayer)
 Clone function. More...
 

Member Function Documentation

◆ GetNormals() [1/2]

FbxLayerElementNormal* GetNormals ( )

Returns this layer's Normals description .

Returns
A pointer to the Normals layer element, or NULL if no Normals layer element is defined in this layer.
Remarks
FbxNurbs or FbxPatch geometry should not have Normals defined.

◆ GetNormals() [2/2]

const FbxLayerElementNormal* GetNormals ( ) const

Returns this layer's Normals description .

Returns
A pointer to the Normals layer element, or NULL if no Normals layer element is defined in this layer.
Remarks
FbxNurbs or FbxPatch geometry should not have Normals defined.

◆ GetTangents() [1/2]

FbxLayerElementTangent* GetTangents ( )

Returns this layer's Tangents description.

Returns
A pointer to the Tangents layer element, or NULL if no Tangents layer element is defined in this layer.
Remarks
FbxNurbs or FbxPatch geometry should not have Tangents defined.

◆ GetTangents() [2/2]

const FbxLayerElementTangent* GetTangents ( ) const

Returns this layer's Tangents description.

Returns
A pointer to the Tangents layer element, or NULL if no Tangents layer element is defined in this layer.
Remarks
FbxNurbs or FbxPatch geometry should not have Tangents defined.

◆ GetBinormals() [1/2]

FbxLayerElementBinormal* GetBinormals ( )

Returns this layer's Binormals description.

Returns
A pointer to the Binormals layer element, or NULL if no Binormals layer element is defined in this layer.
Remarks
FbxNurbs or FbxPatch geometry should not have Binormals defined.

◆ GetBinormals() [2/2]

const FbxLayerElementBinormal* GetBinormals ( ) const

Returns this layer's Binormals description.

Returns
A pointer to the Binormals layer element, or NULL if no Binormals layer element is defined in this layer.
Remarks
FbxNurbs or FbxPatch geometry should not have Binormals defined.

◆ GetMaterials() [1/2]

FbxLayerElementMaterial* GetMaterials ( )

Returns this layer's Materials description.

Returns
A pointer to the Materials layer element, or NULL if no Materials layer element is defined in this layer.

◆ GetMaterials() [2/2]

const FbxLayerElementMaterial* GetMaterials ( ) const

Returns this layer's Materials description.

Returns
A pointer to the Materials layer element, or NULL if no Materials layer element is defined in this layer.

◆ GetPolygonGroups() [1/2]

FbxLayerElementPolygonGroup* GetPolygonGroups ( )

Returns this layer's Polygon Groups description.

Returns
A pointer to the Polygon Groups layer element, or NULL if no Polygon Groups layer element is defined in this layer.

◆ GetPolygonGroups() [2/2]

const FbxLayerElementPolygonGroup* GetPolygonGroups ( ) const

Returns this layer's Polygon Groups description.

Returns
A pointer to the Polygon Groups layer element, or NULL if no Polygon Groups layer element is defined in this layer.

◆ GetUVs() [1/2]

Returns this layer's UV description.

Parameters
pTypeIdentifierLayer element type identifier, should be a texture type identifier.
Returns
A pointer to the UVs layer element, or NULL if no UV is defined in this layer.
Remarks
FbxNurbs or FbxPatch geometry should not have UVs defined. The NURBS/Patch parameterization is used as UV parameters to map a texture.

◆ GetUVs() [2/2]

Returns this layer's UV description.

Parameters
pTypeIdentifierLayer element type identifier, should be a texture type identifier.
Returns
A pointer to the UVs layer element, or NULL if no UV is defined in this layer.
Remarks
FbxNurbs or FbxPatch geometry should not have UVs defined. The NURBS/Patch parameterization is used as UV parameters to map a texture.

◆ GetUVSetCount()

int GetUVSetCount ( ) const

Returns the number of different UV sets in this layer.

◆ GetUVSetChannels()

FbxArray<FbxLayerElement::EType> GetUVSetChannels ( ) const

Returns an array that describes which UV sets are in this layer.

◆ GetUVSets()

FbxArray<const FbxLayerElementUV*> GetUVSets ( ) const

Returns an array of UV sets in this layer.

◆ GetVertexColors() [1/2]

FbxLayerElementVertexColor* GetVertexColors ( )

Returns this layer's Vertex Colors description.

Returns
A pointer to the Vertex Colors layer element, or NULL if no Vertex Color layer element is defined in this layer.
Remarks
FbxNurbs or FbxPatch geometry should not have Vertex Colors defined, since no vertex exists.

◆ GetVertexColors() [2/2]

const FbxLayerElementVertexColor* GetVertexColors ( ) const

Returns this layer's Vertex Colors description.

Returns
A pointer to the Vertex Colors layer element, or NULL if no Vertex Color layer element is defined in this layer.
Remarks
FbxNurbs or FbxPatch geometry should not have Vertex Colors defined, since no vertex exists.

◆ GetSmoothing() [1/2]

FbxLayerElementSmoothing* GetSmoothing ( )

Returns this layer's Smoothing description.

Returns
A pointer to the Smoothing layer element, or NULL if no Smoothing layer element is defined in this layer.
Remarks
FbxNurbs or FbxPatch geometry should not have Smoothing defined.

◆ GetSmoothing() [2/2]

const FbxLayerElementSmoothing* GetSmoothing ( ) const

Returns this layer's Smoothing description.

Returns
A pointer to the Smoothing layer element, or NULL if no Smoothing layer element is defined in this layer.
Remarks
FbxNurbs or FbxPatch geometry should not have Smoothing defined.

◆ GetVertexCrease() [1/2]

FbxLayerElementCrease* GetVertexCrease ( )

Returns this layer's vertex crease description.

Returns
A pointer to the Crease layer element, or NULL if no Crease layer element is defined in this layer.
Remarks
Crease info should only be defined when the geometry is FbxSubDiv.

◆ GetVertexCrease() [2/2]

const FbxLayerElementCrease* GetVertexCrease ( ) const

Returns this layer's vertex crease description.

Returns
A pointer to the Crease layer element, or NULL if no Crease layer element is defined in this layer.
Remarks
Crease info should only be defined when the geometry is FbxSubDiv.

◆ GetEdgeCrease() [1/2]

FbxLayerElementCrease* GetEdgeCrease ( )

Returns this layer's edge crease description.

Returns
A pointer to the Crease layer element, or NULL if no Crease layer element is defined in this layer.
Remarks
Crease info should only be defined when the geometry is FbxSubDiv.

◆ GetEdgeCrease() [2/2]

const FbxLayerElementCrease* GetEdgeCrease ( ) const

Returns this layer's edge crease description.

Returns
A pointer to the Crease layer element, or NULL if no Crease layer element is defined in this layer.
Remarks
Crease info should only be defined when the geometry is FbxSubDiv.

◆ GetHole() [1/2]

FbxLayerElementHole* GetHole ( )

Returns this layer's Hole description.

Returns
A pointer to the Hole layer element, or NULL if no Hole layer element is defined in this layer.
Remarks
Hole info should only be defined when the geometry is FbxMesh.

◆ GetHole() [2/2]

const FbxLayerElementHole* GetHole ( ) const

Returns this layer's Hole description.

Returns
A pointer to the Hole layer element, or NULL if no Hole layer element is defined in this layer.
Remarks
Hole info should only be defined when the geometry is FbxMesh.

◆ GetUserData() [1/2]

FbxLayerElementUserData* GetUserData ( )

Returns this layer's User Data.

Returns
A pointer to the User Data layer element, or NULL if no User Data layer element is defined in this layer.

◆ GetUserData() [2/2]

const FbxLayerElementUserData* GetUserData ( ) const

Returns this layer's User Data.

Returns
A pointer to the User Data layer element, or NULL if no User Data layer element is defined in this layer.

◆ GetVisibility() [1/2]

FbxLayerElementVisibility* GetVisibility ( )

Returns this layer's visibility.

Returns
A pointer to the visibility layer element, or NULL if no visibility layer element is defined in this layer.

◆ GetVisibility() [2/2]

const FbxLayerElementVisibility* GetVisibility ( ) const

Returns this layer's visibility.

Returns
A pointer to the visibility layer element, or NULL if no visibility layer element is defined in this layer.

◆ GetTextures() [1/2]

Returns this layer's Textures description.

Parameters
pTypeLayer element type, should be a texture type identifier.
Returns
A pointer to the Textures layer element, or NULL if no Textures layer element is defined in this layer.

◆ GetTextures() [2/2]

const FbxLayerElementTexture* GetTextures ( FbxLayerElement::EType  pType) const

Returns this layer's Textures description.

Parameters
pTypeLayer element type, should be a texture type identifier.
Returns
A pointer to the Textures layer element, or NULL if no Textures layer element is defined in this layer.

◆ SetTextures()

void SetTextures ( FbxLayerElement::EType  pType,
FbxLayerElementTexture pTextures 
)

Sets this layer's Textures description.

Parameters
pTypeTexture type identifier.
pTexturesA pointer to the Textures layer element, or NULL to remove the Textures definition.

◆ GetLayerElementOfType() [1/2]

FbxLayerElement* GetLayerElementOfType ( FbxLayerElement::EType  pType,
bool  pIsUV = false 
)

Returns the specified type of layer element description for this layer.

Parameters
pTypeThe required Layer element type.
pIsUVIf true, requests the UV layer element that corresponds with the specified texture type.
Returns
A pointer to the requested layer element, or NULL if the layer element is not defined in this layer.

◆ GetLayerElementOfType() [2/2]

const FbxLayerElement* GetLayerElementOfType ( FbxLayerElement::EType  pType,
bool  pIsUV = false 
) const

Returns the specified type of layer element description for this layer.

Parameters
pTypeThe required Layer element type.
pIsUVIf true, requests the UV layer element that corresponds with the specified texture type.
Returns
A pointer to the requested layer element, or NULL if the layer element is not defined in this layer.

◆ SetNormals()

void SetNormals ( FbxLayerElementNormal pNormals)

Sets this layer's Normals description.

Parameters
pNormalsA pointer to the Normals layer element, or NULL to remove the Normals definition.
Remarks
FbxNurbs or FbxPatch geometry should not have Normals defined.
Examples:
Instances/main.cxx.

◆ SetBinormals()

void SetBinormals ( FbxLayerElementBinormal pBinormals)

Sets this layer's Binormals description.

Parameters
pBinormalsA pointer to the Binormals layer element, or NULL to remove the Binormals definition.
Remarks
FbxNurbs or FbxPatch geometry should not have Binormals defined.

◆ SetTangents()

void SetTangents ( FbxLayerElementTangent pTangents)

Sets this layer's Tangents description.

Parameters
pTangentsA pointer to the Tangents layer element, or NULL to remove the Tangents definition.
Remarks
FbxNurbs or FbxPatch geometry should not have Tangents defined.

◆ SetMaterials()

void SetMaterials ( FbxLayerElementMaterial pMaterials)

Sets this layer's Materials description.

Parameters
pMaterialsA pointer to the Materials layer element, or NULL to remove the Material definition.
Examples:
ExportScene03/main.cxx, and Instances/main.cxx.

◆ SetPolygonGroups()

void SetPolygonGroups ( FbxLayerElementPolygonGroup pPolygonGroups)

Sets this layer's Polygon Groups description.

Parameters
pPolygonGroupsA pointer to the Polygon Groups layer element, or NULL to remove the Polygon Group definition.

◆ SetUVs()

void SetUVs ( FbxLayerElementUV pUVs,
FbxLayerElement::EType  pTypeIdentifier = FbxLayerElement::eTextureDiffuse 
)

Sets this layer's UVs description.

Parameters
pUVsA pointer to the UVs layer element, or NULL to remove the UV definition.
pTypeIdentifierLayer element type, should be texture type.
Remarks
FbxNurbs or FbxPatch geometry should not have UVs defined. The NURBS/Patch parameterization is used as UV parameters to map a texture.
Examples:
Instances/main.cxx.

◆ SetVertexColors()

void SetVertexColors ( FbxLayerElementVertexColor pVertexColors)

Sets this layer's Vertex Colors description.

Parameters
pVertexColorsA pointer to the Vertex Colors layer element, or NULL to remove the Vertex Color definition.
Remarks
FbxNurbs or FbxPatch geometry should not have Vertex Colors defined, since no vertex exists.

◆ SetSmoothing()

void SetSmoothing ( FbxLayerElementSmoothing pSmoothing)

Sets this layer's Smoothing description.

Parameters
pSmoothingA pointer to the Smoothing layer element, or NULL to remove the Smoothing definition.
Remarks
FbxNurbs or FbxPatch geometry should not have Smoothing defined.

◆ SetVertexCrease()

void SetVertexCrease ( FbxLayerElementCrease pCrease)

Sets this layer's Vertex Crease description.

Parameters
pCreaseA pointer to the Vertex Crease layer element, or NULL to remove the Crease definition.
Remarks
Crease should only be defined when the geometry is FbxSubDiv.

◆ SetEdgeCrease()

void SetEdgeCrease ( FbxLayerElementCrease pCrease)

Sets this layer's Edge Crease description.

Parameters
pCreaseA pointer to the Edge Crease layer element, or NULL to remove the Crease definition.
Remarks
Crease should only be defined when the geometry is FbxSubDiv.

◆ SetHole()

void SetHole ( FbxLayerElementHole pHole)

Sets this layer's Hole description.

Parameters
pHoleA pointer to the Hole layer element, or NULL to remove the Hole definition.
Remarks
Hole should only be defined when the geometry is FbxMesh.

◆ SetUserData()

void SetUserData ( FbxLayerElementUserData pUserData)

Sets this layer's User Data.

Parameters
pUserDataA pointer to the User Data layer element, or NULL to remove the User Data.

◆ SetVisibility()

void SetVisibility ( FbxLayerElementVisibility pVisibility)

Sets this layer's the visibility.

Parameters
pVisibilityA pointer to the visibility layer element, or NULL to remove the visibility.

◆ SetLayerElementOfType()

void SetLayerElementOfType ( FbxLayerElement pLayerElement,
FbxLayerElement::EType  pType,
bool  pIsUV = false 
)

Sets the specified type of layer element description for this layer.

Parameters
pLayerElementA pointer to the layer element, or NULL to remove the layer element.
pTypeThe required Layer element type.
pIsUVIf true, requests the UV layer element that corresponds with the specified texture type.

◆ CreateLayerElementOfType()

FbxLayerElement* CreateLayerElementOfType ( FbxLayerElement::EType  pType,
bool  pIsUV = false 
)

Creates the specified type of layer element description for this layer.

Parameters
pTypeThe required Layer element type.
pIsUVWhen true, requests the UV LayerElement that corresponds with the specified Layer Element type (only applies to TEXTURE type layer elements).
Returns
A pointer to the newly created layer element, or NULL if the layer element has not been created for this layer.

◆ Clone()

void Clone ( FbxLayer const &  pSrcLayer)

Clone function.

Parameters
pSrcLayerThe source layer to be cloned.

Friends And Related Function Documentation

◆ fbxsdk ::FbxNew [1/47]

T* fbxsdk ::FbxNew ( )
friend

◆ fbxsdk ::FbxNew [2/47]

T* fbxsdk ::FbxNew ( T1 &  p1)
friend

◆ fbxsdk ::FbxNew [3/47]

T* fbxsdk ::FbxNew ( const T1 &  p1)
friend

◆ fbxsdk ::FbxNew [4/47]

T* fbxsdk ::FbxNew ( T1 &  p1,
T2 &  p2 
)
friend

◆ fbxsdk ::FbxNew [5/47]

T* fbxsdk ::FbxNew ( T1 &  p1,
const T2 &  p2 
)
friend

◆ fbxsdk ::FbxNew [6/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
T2 &  p2 
)
friend

◆ fbxsdk ::FbxNew [7/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
const T2 &  p2 
)
friend

◆ fbxsdk ::FbxNew [8/47]

T* fbxsdk ::FbxNew ( T1 &  p1,
T2 &  p2,
T3 &  p3 
)
friend

◆ fbxsdk ::FbxNew [9/47]

T* fbxsdk ::FbxNew ( T1 &  p1,
T2 &  p2,
const T3 &  p3 
)
friend

◆ fbxsdk ::FbxNew [10/47]

T* fbxsdk ::FbxNew ( T1 &  p1,
const T2 &  p2,
T3 &  p3 
)
friend

◆ fbxsdk ::FbxNew [11/47]

T* fbxsdk ::FbxNew ( T1 &  p1,
const T2 &  p2,
const T3 &  p3 
)
friend

◆ fbxsdk ::FbxNew [12/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
T2 &  p2,
T3 &  p3 
)
friend

◆ fbxsdk ::FbxNew [13/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
T2 &  p2,
const T3 &  p3 
)
friend

◆ fbxsdk ::FbxNew [14/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
const T2 &  p2,
T3 &  p3 
)
friend

◆ fbxsdk ::FbxNew [15/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
const T2 &  p2,
const T3 &  p3 
)
friend

◆ fbxsdk ::FbxNew [16/47]

T* fbxsdk ::FbxNew ( T1 &  p1,
T2 &  p2,
T3 &  p3,
T4 &  p4 
)
friend

◆ fbxsdk ::FbxNew [17/47]

T* fbxsdk ::FbxNew ( T1 &  p1,
T2 &  p2,
T3 &  p3,
const T4 &  p4 
)
friend

◆ fbxsdk ::FbxNew [18/47]

T* fbxsdk ::FbxNew ( T1 &  p1,
T2 &  p2,
const T3 &  p3,
T4 &  p4 
)
friend

◆ fbxsdk ::FbxNew [19/47]

T* fbxsdk ::FbxNew ( T1 &  p1,
T2 &  p2,
const T3 &  p3,
const T4 &  p4 
)
friend

◆ fbxsdk ::FbxNew [20/47]

T* fbxsdk ::FbxNew ( T1 &  p1,
const T2 &  p2,
T3 &  p3,
T4 &  p4 
)
friend

◆ fbxsdk ::FbxNew [21/47]

T* fbxsdk ::FbxNew ( T1 &  p1,
const T2 &  p2,
T3 &  p3,
const T4 &  p4 
)
friend

◆ fbxsdk ::FbxNew [22/47]

T* fbxsdk ::FbxNew ( T1 &  p1,
const T2 &  p2,
const T3 &  p3,
T4 &  p4 
)
friend

◆ fbxsdk ::FbxNew [23/47]

T* fbxsdk ::FbxNew ( T1 &  p1,
const T2 &  p2,
const T3 &  p3,
const T4 &  p4 
)
friend

◆ fbxsdk ::FbxNew [24/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
T2 &  p2,
T3 &  p3,
T4 &  p4 
)
friend

◆ fbxsdk ::FbxNew [25/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
T2 &  p2,
T3 &  p3,
const T4 &  p4 
)
friend

◆ fbxsdk ::FbxNew [26/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
T2 &  p2,
const T3 &  p3,
T4 &  p4 
)
friend

◆ fbxsdk ::FbxNew [27/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
T2 &  p2,
const T3 &  p3,
const T4 &  p4 
)
friend

◆ fbxsdk ::FbxNew [28/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
const T2 &  p2,
T3 &  p3,
T4 &  p4 
)
friend

◆ fbxsdk ::FbxNew [29/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
const T2 &  p2,
T3 &  p3,
const T4 &  p4 
)
friend

◆ fbxsdk ::FbxNew [30/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
const T2 &  p2,
const T3 &  p3,
T4 &  p4 
)
friend

◆ fbxsdk ::FbxNew [31/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
const T2 &  p2,
const T3 &  p3,
const T4 &  p4 
)
friend

◆ fbxsdk ::FbxNew [32/47]

T* fbxsdk ::FbxNew ( T1 &  p1,
T2 &  p2,
T3 &  p3,
T4 &  p4,
T5 &  p5 
)
friend

◆ fbxsdk ::FbxNew [33/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
T2 &  p2,
T3 &  p3,
T4 &  p4,
T5 &  p5 
)
friend

◆ fbxsdk ::FbxNew [34/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
const T2 &  p2,
T3 &  p3,
T4 &  p4,
T5 &  p5 
)
friend

◆ fbxsdk ::FbxNew [35/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
T2 &  p2,
const T3 &  p3,
T4 &  p4,
T5 &  p5 
)
friend

◆ fbxsdk ::FbxNew [36/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
T2 &  p2,
T3 &  p3,
const T4 &  p4,
T5 &  p5 
)
friend

◆ fbxsdk ::FbxNew [37/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
T2 &  p2,
T3 &  p3,
T4 &  p4,
const T5 &  p5 
)
friend

◆ fbxsdk ::FbxNew [38/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
const T2 &  p2,
const T3 &  p3,
T4 &  p4,
T5 &  p5 
)
friend

◆ fbxsdk ::FbxNew [39/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
const T2 &  p2,
T3 &  p3,
const T4 &  p4,
T5 &  p5 
)
friend

◆ fbxsdk ::FbxNew [40/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
const T2 &  p2,
T3 &  p3,
T4 &  p4,
const T5 &  p5 
)
friend

◆ fbxsdk ::FbxNew [41/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
const T2 &  p2,
const T3 &  p3,
const T4 &  p4,
T5 &  p5 
)
friend

◆ fbxsdk ::FbxNew [42/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
const T2 &  p2,
const T3 &  p3,
T4 &  p4,
const T5 &  p5 
)
friend

◆ fbxsdk ::FbxNew [43/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
const T2 &  p2,
const T3 &  p3,
const T4 &  p4,
const T5 &  p5 
)
friend

◆ fbxsdk ::FbxNew [44/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
const T2 &  p2,
const T3 &  p3,
const T4 &  p4,
const T5 &  p5,
const T6 &  p6 
)
friend

◆ fbxsdk ::FbxNew [45/47]

T* fbxsdk ::FbxNew ( const T1 &  p1,
const T2 &  p2,
const T3 &  p3,
const T4 &  p4,
const T5 &  p5,
const T6 &  p6,
const T7 &  p7 
)
friend

◆ fbxsdk ::FbxNew [46/47]

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 
)
friend

◆ fbxsdk ::FbxNew [47/47]

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 
)
friend

◆ fbxsdk ::FbxDelete [1/2]

void fbxsdk ::FbxDelete ( T *  p)
friend

◆ fbxsdk ::FbxDelete [2/2]

void fbxsdk ::FbxDelete ( const T *  p)
friend

◆ fbxsdk ::FbxNewArray

T* fbxsdk ::FbxNewArray ( const int  n)
friend

◆ fbxsdk ::FbxDeleteArray

void fbxsdk ::FbxDeleteArray ( T *  p)
friend

The documentation for this class was generated from the following file: