| 2683 | } |
| 2684 | |
| 2685 | static 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 | |
| 2710 | XN_C_API XnStatus xnStartGeneratingAll(XnContext* pContext) |
| 2711 | { |
no test coverage detected