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

Function xnUpdateGraph

Source/OpenNI/XnOpenNI.cpp:2406–2433  ·  view source on GitHub ↗

Updates the entire graph (if pSubGraph is NULL), or just the sub graph starting from the pSubGraph node

Source from the content-addressed store, hash-verified

2404
2405// Updates the entire graph (if pSubGraph is NULL), or just the sub graph starting from the pSubGraph node
2406static XnStatus xnUpdateGraph(XnContext* pContext, const XnNodeInfo* pSubGraph)
2407{
2408 XnStatus nRetVal = XN_STATUS_OK;
2409
2410 // mark all current nodes' data as "old"
2411 xnResetNewDataFlag(pContext);
2412
2413 // mark all nodes as not-visited
2414 xnResetVisitState(pContext);
2415
2416 // now start the update (each updated node will be marked as visited)
2417 if (pSubGraph != NULL)
2418 {
2419 nRetVal = xnUpdateTreeImpl(pSubGraph);
2420 XN_IS_STATUS_OK(nRetVal);
2421 }
2422 else
2423 {
2424 for (XnNodesMap::Iterator it = pContext->nodesMap.Begin(); it != pContext->nodesMap.End(); ++it)
2425 {
2426 XnNodeInfo* pNodeInfo = it->Value()->pNodeInfo;
2427 nRetVal = xnUpdateTreeImpl(pNodeInfo);
2428 XN_IS_STATUS_OK(nRetVal);
2429 }
2430 }
2431
2432 return (XN_STATUS_OK);
2433}
2434
2435XnBool xnDidNodeAdvanced(XnNodeHandle hNode)
2436{

Callers 5

xnWaitAndUpdateAllFunction · 0.85
xnWaitOneUpdateAllFunction · 0.85
xnWaitNoneUpdateAllFunction · 0.85
xnWaitAnyUpdateAllFunction · 0.85
xnWaitAndUpdateDataFunction · 0.85

Calls 6

xnResetNewDataFlagFunction · 0.85
xnResetVisitStateFunction · 0.85
xnUpdateTreeImplFunction · 0.85
BeginMethod · 0.45
EndMethod · 0.45
ValueMethod · 0.45

Tested by

no test coverage detected