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

Function xnStopGeneratingAll

Source/OpenNI/XnOpenNI.cpp:2726–2744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2724}
2725
2726XN_C_API XnStatus xnStopGeneratingAll(XnContext* pContext)
2727{
2728 XnStatus nRetVal = XN_STATUS_OK;
2729
2730 XN_VALIDATE_INPUT_PTR(pContext);
2731
2732 for (XnNodesMap::Iterator it = pContext->nodesMap.Begin(); it != pContext->nodesMap.End(); ++it)
2733 {
2734 // if this is a generator, stop it
2735 if (it->Value()->pModuleInstance->pLoaded->pInterface->HierarchyType.IsSet(XN_NODE_TYPE_GENERATOR))
2736 {
2737 XnInternalNodeData* pData = it->Value();
2738 nRetVal = xnStopGenerating(pData);
2739 XN_IS_STATUS_OK(nRetVal);
2740 }
2741 }
2742
2743 return (XN_STATUS_OK);
2744}
2745
2746XN_C_API XnStatus xnSetGlobalMirror(XnContext* pContext, XnBool bMirror)
2747{

Calls 5

xnStopGeneratingFunction · 0.85
IsSetMethod · 0.80
BeginMethod · 0.45
EndMethod · 0.45
ValueMethod · 0.45

Tested by

no test coverage detected