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

Function xnStartGeneratingTreeImpl

Source/OpenNI/XnOpenNI.cpp:2685–2708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2683}
2684
2685static XnStatus xnStartGeneratingTreeImpl(XnNodeInfo* pNode)
2686{
2687 XnStatus nRetVal = XN_STATUS_OK;
2688
2689 // first start with dependencies
2690 for (XnNodeInfoListIterator it = xnNodeInfoListGetFirst(pNode->pNeededTrees);
2691 xnNodeInfoListIteratorIsValid(it);
2692 it = xnNodeInfoListGetNext(it))
2693 {
2694 XnNodeInfo* pNeeded = xnNodeInfoListGetCurrent(it);
2695 nRetVal = xnStartGeneratingTreeImpl(pNeeded);
2696 XN_IS_STATUS_OK(nRetVal);
2697 }
2698
2699 // now start root (if this is a generator)
2700 if (pNode->hNode->pModuleInstance->pLoaded->pInterface->HierarchyType.IsSet(XN_NODE_TYPE_GENERATOR) &&
2701 !xnIsGenerating(pNode->hNode))
2702 {
2703 nRetVal = xnStartGeneratingImpl(pNode->hNode);
2704 XN_IS_STATUS_OK(nRetVal);
2705 }
2706
2707 return (XN_STATUS_OK);
2708}
2709
2710XN_C_API XnStatus xnStartGeneratingAll(XnContext* pContext)
2711{

Callers 2

xnStartGeneratingAllFunction · 0.85
xnStartGeneratingFunction · 0.85

Calls 5

xnNodeInfoListGetCurrentFunction · 0.85
xnIsGeneratingFunction · 0.85
xnStartGeneratingImplFunction · 0.85
IsSetMethod · 0.80

Tested by

no test coverage detected