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

Function xnGetUserPosition

Source/OpenNI/XnOpenNI.cpp:4826–4833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4824}
4825
4826XN_C_API XnStatus xnGetUserPosition(XnNodeHandle hInstance, XnUInt32 nIndex, XnBoundingBox3D* pPosition)
4827{
4828 XN_VALIDATE_INTERFACE_TYPE(hInstance, XN_NODE_TYPE_DEPTH);
4829 XnDepthGeneratorInterfaceContainer* pInterface = (XnDepthGeneratorInterfaceContainer*)hInstance->pModuleInstance->pLoaded->pInterface;
4830 XnModuleNodeHandle hModuleNode = hInstance->pModuleInstance->hNode;
4831 XN_VALIDATE_FUNC_PTR(pInterface->UserPosition.GetUserPosition);
4832 return pInterface->UserPosition.GetUserPosition(hModuleNode, nIndex, pPosition);
4833}
4834
4835XN_C_API XnStatus xnRegisterToUserPositionChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void* pCookie, XnCallbackHandle* phCallback)
4836{

Calls 1

GetUserPositionMethod · 0.80

Tested by

no test coverage detected