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

Method EnumerateNodes

Source/OpenNI/XnPlayerImpl.cpp:194–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194XnStatus PlayerImpl::EnumerateNodes(XnNodeInfoList** ppList)
195{
196 XnStatus nRetVal = XN_STATUS_OK;
197
198 nRetVal = xnNodeInfoListAllocate(ppList);
199 XN_IS_STATUS_OK(nRetVal);
200
201 for (PlayedNodesHash::Iterator it = m_playedNodes.Begin(); it != m_playedNodes.End(); ++it)
202 {
203 XnNodeInfo* pNodeInfo = xnGetNodeInfo(it->Value().hNode);
204
205 nRetVal = xnNodeInfoListAddNode(*ppList, pNodeInfo);
206 if (nRetVal != XN_STATUS_OK)
207 {
208 xnNodeInfoListFree(*ppList);
209 return (nRetVal);
210 }
211 }
212
213 return (XN_STATUS_OK);
214}
215
216XnStatus PlayerImpl::SetPlaybackSpeed(XnDouble dSpeed)
217{

Callers 2

xnEnumeratePlayerNodesFunction · 0.45
mainFunction · 0.45

Calls 7

xnNodeInfoListAllocateFunction · 0.85
xnGetNodeInfoFunction · 0.85
xnNodeInfoListAddNodeFunction · 0.85
xnNodeInfoListFreeFunction · 0.85
BeginMethod · 0.45
EndMethod · 0.45
ValueMethod · 0.45

Tested by

no test coverage detected