InterOp:Connect/Callback Mechanism

From DocR18

Jump to: navigation, search

3D InterOp Connect interface provides a callback mechanism on translated entities. A global function, SPAIConverterSetCallback, is provided to set the callback function. The syntax for this global function is:

SPAIConverterSetCallback((SPAIConverterCallback) myConverterCallbackFunction);

This function is available in the SPAIConverterCBFunction.h header file. The parameter, myConverterCallbackFunction, is a pointer to the function of type SPAIConverterCallback that takes four parameters.

void myConverterCallbackFunction (SPAIEntity pInputEntity, SPAIEntity pOutputEntity, const char* pInputEntityType, const char* pOutputEntityType)

This function takes four parameters. The four parameters are:

  • pInputEntity is the input entity.
  • pOutputEntity is the output entity.
  • pInputEntityType is the type of input entity.
  • pOutputEntityType is the type of output entity.
Personal tools
new releases