#include<kfbxlayercontainer.h>
List of all members.
Detailed Description
KFbxLayerContaineris the base class for managing Layers.
This class manages the creation and destruction of layers. A Layer contains Layer Element(s) of the following types:
- Normals
- Materials
- Polygon Groups
- UVs
- Vertex Color
- Textures SeeKFbxLayerElementfor more details.
Definition at line69of filekfbxlayercontainer.h.
Member Function Documentation
Create a new layer on top of existing layers.
- Returns:
- Index of created layer or -1 if an error occured.
int GetLayerCount | ( | | ) | const |
Get number of layers.
- Returns:
- Return the number of layers.
Get number of layers containing the specified layer element type.
- Parameters:
| pType | The requested Layer Element type. |
| pUVCount | Whentrue , request the number of UV layers connected to the specified Layer Element type. |
- Returns:
- The number of layers containing a layer of type pType.
Get the layer at given index.
- Parameters:
- Returns:
- Pointer to the layer, or
NULL
if pIndex is out of range.
Get the layer at given index.
- Parameters:
- Returns:
- Pointer to the layer, or
NULL
if pIndex is out of range.
Get the n'th layer containing the specified layer element type.
- Parameters:
| pIndex | Layer index. |
| pType | Layer element type. |
| pIsUV | Whentrue , request the UV LayerElement connected to the specified Layer Element type. |
- Returns:
- Pointer to the layer, or
NULL
if pIndex is out of range for the specified type (pType).
Get the n'th layer containing the specified layer element type.
- Parameters:
| pIndex | Layer index. |
| pType | Layer element type. |
| pIsUV | Whentrue request the UV LayerElement connected to the specified Layer Element type. |
- Returns:
- Pointer to the layer, or
NULL
if pIndex is out of range for the specified type (pType).
Get the index of n'th layer containing the specified layer element type.
- Parameters:
| pIndex | Layer index of the specified type. |
| pType | Layer type. |
| pIsUV | Whentrue request the index of the UV LayerElement connected to the specified Layer Element type. |
- Returns:
- Index of the specified layer type, or -1 if the layer is not found.
Convert the global index of the layer to a type-specific index.
- Parameters:
| pGlobalIndex | The index of the layer in the global array of layers. |
| pType | The type uppon which the typed index will be returned. |
| pIsUV | Whentrue request the index of the UV LayerElement connected to the specified Layer Element type. |
- Returns:
- Index of the requested layer element type, or -1 if the layer element type is not found.
bool ConvertDirectToIndexToDirect | ( | int | pLayer | ) | |
Convert Direct to Index to Direct Reference Mode.
- Parameters:
| pLayer | The Layer to convert. |
- Returns:
true
if conversion was successful, orfalse
otherwise.