FbxLayerElementSmoothing Class Reference

FbxLayerElementSmoothing Class Reference
+ This reference page is linked to from the following overview topics:

#include <fbxlayer.h>

Class Description

Layer element for indicating smoothness of components of a geometry.

Remarks
To be correctly saved in FBX file, this type of Layer element should have its reference mode set to eDirect.
+ Examples:

Definition at line 2016 of file fbxlayer.h.

+ Inheritance diagram for FbxLayerElementSmoothing:

Public Member Functions

 FBXSDK_FRIEND_NEW ()
 
void SetReferenceMode (FbxLayerElement::EReferenceMode pMode)
 Sets the Reference Mode. More...
 
- Public Member Functions inherited from FbxLayerElementTemplate< int >
FbxLayerElementArrayTemplate
< int > & 
GetDirectArray () const
 Returns the direct array of Layer Elements. More...
 
FbxLayerElementArrayTemplate
< int > & 
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...
 
FbxLayerElementTemplateoperator= (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...
 
- Public Member Functions inherited from FbxLayerElement
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...
 
FbxLayerElementoperator= (FbxLayerElement const &pOther)
 Assignment operator. More...
 
void Destroy ()
 Removes this layer element from its owner and delete it. More...
 

Static Public Member Functions

static FbxLayerElementSmoothingCreate (FbxLayerContainer *pOwner, const char *pName)
 Allocation method. More...
 

Additional Inherited Members

- Public Types inherited from FbxLayerElement
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 Public Attributes inherited from FbxLayerElement
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...
 

Member Function Documentation

FBXSDK_FRIEND_NEW ( )
static FbxLayerElementSmoothing* Create ( FbxLayerContainer pOwner,
const char *  pName 
)
static

Allocation method.

Parameters
pOwnerThe owner of this layer element.
pNameThe name of this layer element.
Returns
A pointer to the layer element or NULL if creation fails.
void SetReferenceMode ( FbxLayerElement::EReferenceMode  pMode)
inline

Sets the Reference Mode.

Parameters
pModeSpecifies the reference mode.
Remarks
Only support eDirect.

Definition at line 2032 of file fbxlayer.h.

2033  {
2034  if( pMode != FbxLayerElement::eDirect )
2035  {
2036  FBX_ASSERT_NOW( "Smoothing layer elements must be direct mapped" );
2037  return;
2038  }
2039  }

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