MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / xnSetUserPosition

Function xnSetUserPosition

Source/OpenNI/XnOpenNI.cpp:4816–4824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4814}
4815
4816XN_C_API XnStatus xnSetUserPosition(XnNodeHandle hInstance, XnUInt32 nIndex, const XnBoundingBox3D* pPosition)
4817{
4818 XN_VALIDATE_INTERFACE_TYPE(hInstance, XN_NODE_TYPE_DEPTH);
4819 XN_VALIDATE_CHANGES_ALLOWED(hInstance);
4820 XnDepthGeneratorInterfaceContainer* pInterface = (XnDepthGeneratorInterfaceContainer*)hInstance->pModuleInstance->pLoaded->pInterface;
4821 XnModuleNodeHandle hModuleNode = hInstance->pModuleInstance->hNode;
4822 XN_VALIDATE_FUNC_PTR(pInterface->UserPosition.SetUserPosition);
4823 return pInterface->UserPosition.SetUserPosition(hModuleNode, nIndex, pPosition);
4824}
4825
4826XN_C_API XnStatus xnGetUserPosition(XnNodeHandle hInstance, XnUInt32 nIndex, XnBoundingBox3D* pPosition)
4827{

Calls 1

SetUserPositionMethod · 0.80

Tested by

no test coverage detected