13 #ifndef _FBXSDK_SCENE_SHADING_IMPLEMENTATION_UTILS_H_ 14 #define _FBXSDK_SCENE_SHADING_IMPLEMENTATION_UTILS_H_ 41 const char* pEntryName,
46 if ((
NULL != pImplementation) && (
NULL != pBindingTable) && (
NULL != pBoundObject) && (
NULL != pEntryName))
54 const char* lPropName = lEntry->
GetSource();
58 pValue = lProp.
Get<T>();
64 const char* lOperatorName = lEntry->
GetSource();
68 return lOp->
Evaluate(pBoundObject, &pValue);
FBX SDK environment definition.
FbxProperty FindPropertyHierarchical(const char *pName, bool pCaseSensitive=true) const
Searches a property by full name.
const FbxBindingOperator * GetOperatorByTargetName(const char *pTargetName) const
Returns the binding operator that has the given name.
A binding table entry stores a binding between a source and a destination.
bool Evaluate(const FbxObject *pObject, FBXTYPE *pResult) const
Run the operator on the given object.
bool GetBoundPropertyValue(const FbxBindingTable *pBindingTable, const char *pEntryName, const FbxImplementation *pImplementation, const FbxObject *pBoundObject, T &pValue)
Get bound property value from FbxBindingTable.
This object represents the shading node implementation.
const FbxBindingTableEntry * GetEntryForDestination(const char *pDestName) const
Retrieve the table entry for the given destination value.
The base class of most FBX objects.
const char * GetEntryType(bool pAsSource) const
Get the source type or destination type.
static const char * sEntryType
Name of the entry type used in the binding entry.
const FbxImplementation * GetImplementation(const FbxObject *pObject, const char *pImplementationTarget)
Get FbxImplementation from FbxObject.
T Get() const
Gets the value of the property.
Class to hold user properties.
A binding table represents a collection of bindings from source types such as FbxObject, or FbxLayerElements to corresponding destinations, usually a third party shader parameters.
This object represents a binding operation on a FbxObject or FbxProperty.
bool IsValid() const
Judges the property's validity.
static const char * sEntryType
Name of the entry type used in the binding entry.
const char * GetSource() const
Retrieve the source.