FBX C++ API Reference
|
#include <fbxlayer.h>
Base class for elements of layers (FbxLayer).
A layer element type is identified by EType. A FbxLayerElement describes how the layer element is mapped to a geometry surface and how the mapping information is arranged in memory. A FbxLayerElement contains Normals, UVs or other kind of information.
Definition at line 38 of file fbxlayer.h.
Public Types | |
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... | |
Public Member Functions | |
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... | |
virtual bool | Clear () |
Clears all the data from this layer element. More... | |
Static Public Attributes | |
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... | |
enum EType |
Layer Element type identifier.
Definition at line 75 of file fbxlayer.h.
enum EMappingMode |
Determines how the element is mapped to a surface.
Enumerator | |
---|---|
eNone | |
eByControlPoint | |
eByPolygonVertex | |
eByPolygon | |
eByEdge | |
eAllSame |
Definition at line 140 of file fbxlayer.h.
enum EReferenceMode |
Determines how the mapping information is stored in the array of coordinates.
Enumerator | |
---|---|
eDirect | |
eIndex | |
eIndexToDirect |
Definition at line 163 of file fbxlayer.h.
|
inline |
Sets the Mapping Mode.
pMappingMode | Specifies the way that layer element is mapped to a surface. |
Definition at line 174 of file fbxlayer.h.
|
inline |
Sets the Reference Mode.
pReferenceMode | Specifies the reference mode. |
Definition at line 179 of file fbxlayer.h.
|
inline |
Returns the Mapping Mode.
Definition at line 184 of file fbxlayer.h.
|
inline |
Returns the Reference Mode.
Definition at line 189 of file fbxlayer.h.
|
inline |
Sets the name of this object.
pName | Specifies the name of this LayerElement object. |
Definition at line 194 of file fbxlayer.h.
|
inline |
Returns the name of this object.
Definition at line 199 of file fbxlayer.h.
|
inline |
Equivalence operator.
pOther | Layer element to be compared. |
True
if equal, false
otherwise. Definition at line 205 of file fbxlayer.h.
|
inline |
Assignment operator.
pOther | Layer element assigned to this one. |
Definition at line 216 of file fbxlayer.h.
void Destroy | ( | ) |
Removes this layer element from its owner and delete it.
|
inlinevirtual |
Clears all the data from this layer element.
Reimplemented in FbxLayerElementUserData, FbxLayerElementTemplate< Type >, FbxLayerElementTemplate< void *>, FbxLayerElementTemplate< FbxSurfaceMaterial *>, FbxLayerElementTemplate< FbxTexture *>, FbxLayerElementTemplate< double >, FbxLayerElementTemplate< int >, FbxLayerElementTemplate< FbxColor >, FbxLayerElementTemplate< bool >, FbxLayerElementTemplate< FbxVector4 >, and FbxLayerElementTemplate< FbxVector2 >.
Definition at line 229 of file fbxlayer.h.
|
static |
The start index of texture type layer elements.
Definition at line 118 of file fbxlayer.h.
|
static |
The end index of texture type layer elements.
Definition at line 119 of file fbxlayer.h.
|
static |
The count of texture type layer elements.
Definition at line 120 of file fbxlayer.h.
|
static |
The start index of non-texture type layer elements.
Definition at line 121 of file fbxlayer.h.
|
static |
The end index of non-texture type layer elements.
Definition at line 122 of file fbxlayer.h.
|
static |
The count of non-texture type layer elements.
Definition at line 123 of file fbxlayer.h.
|
static |
Array of names of texture type layer elements.
Definition at line 124 of file fbxlayer.h.
|
static |
Array of names of UV layer elements.
Definition at line 125 of file fbxlayer.h.
|
static |
Array of names of non-texture type layer elements.
Definition at line 126 of file fbxlayer.h.
|
static |
Array of texture types.
Definition at line 127 of file fbxlayer.h.
|
static |
Array of texture channels.
Definition at line 128 of file fbxlayer.h.