FBX C++ API Reference
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FbxSwitchBOF Class Reference

#include <fbxbindingoperator.h>

Class Description

A switch operator that outputs one out of n properties, based on the value of a predicate property.

Definition at line 454 of file fbxbindingoperator.h.

+ Inheritance diagram for FbxSwitchBOF:

Public Member Functions

virtual bool Evaluate (const FbxBindingOperator *pOperator, const FbxObject *pObject, EFbxType *pResultType, void **pResult) const
 Evaluates the object property specified by "predicate". More...
 
virtual bool ReverseEvaluate (const FbxBindingOperator *pOperator, const FbxObject *pTarget, const void *pIn, void **pOut, EFbxType *pOutType, bool setObj, int index) const
 Run the inverse operator on the given object, assigning the result directly to the object. More...
 
- Public Member Functions inherited from FbxBindingOperator::Function
virtual ~Function ()
 Destructor. More...
 

Static Public Attributes

static const char * FunctionName
 Name of the operation function. More...
 

Member Function Documentation

◆ Evaluate()

virtual bool Evaluate ( const FbxBindingOperator pOperator,
const FbxObject pObject,
EFbxType pResultType,
void **  pResult 
) const
virtual

Evaluates the object property specified by "predicate".

Returns the value of the property specified by "case_n", where n is the value of "predicate". If there is no case_n entry, returns the value of the property specified by "default".

Currently the data types supported for the predicate property are limited to "integer" and "boolean".

Parameters
pOperatorOperator running on the object.
pObjectThe object that will be evaluated.
pResultTypeThe type of the result to be returned.
pResultA pointer to a buffer that can hold the result.
Returns
true on success, false otherwise.

Implements FbxBindingOperator::Function.

◆ ReverseEvaluate()

virtual bool ReverseEvaluate ( const FbxBindingOperator pOperator,
const FbxObject pTarget,
const void *  pIn,
void **  pOut,
EFbxType pOutType,
bool  setObj,
int  index 
) const
virtual

Run the inverse operator on the given object, assigning the result directly to the object.

Parameters
pOperatorThe operator that will be applied.
pTargetThe object that will be evaluated.
pIn
pOut
pOutTypeType of value being reversed.
setObjControl to set the property (only to query by the default ).
indexUsed only in FbxMultiplyDistBOF.
Returns
true on success, false otherwise.

Implements FbxBindingOperator::Function.

Member Data Documentation

◆ FunctionName

const char* FunctionName
static

Name of the operation function.

Definition at line 458 of file fbxbindingoperator.h.


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