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

Function xnIsNodeInstanceMatch

Source/OpenNI/XnQueries.cpp:277–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277static XnBool xnIsNodeInstanceMatch(const XnNodeQuery* pQuery, XnNodeHandle hNode)
278{
279 for (XnUInt i = 0; i < pQuery->nSupportedCapabilities; ++i)
280 {
281 if (!xnIsCapabilitySupported(hNode, pQuery->astrSupportedCapabilities[i]))
282 {
283 return (FALSE);
284 }
285 }
286
287 for (XnUInt i = 0; i < pQuery->nSupportedMapOutputModes; ++i)
288 {
289 if (!xnIsMapOutputModeSupported(hNode, &pQuery->aSupportedMapOutputModes[i]))
290 {
291 return (FALSE);
292 }
293 }
294
295 if (pQuery->nMinUserPositions > 0 && xnGetSupportedUserPositionsCount(hNode) < pQuery->nMinUserPositions)
296 {
297 return (FALSE);
298 }
299
300 return (TRUE);
301}
302
303static XnBool xnIsNodeMatch(XnContext* pContext, const XnNodeQuery* pQuery, XnNodeInfo* pNodeInfo)
304{

Callers 1

xnIsNodeMatchFunction · 0.85

Calls 3

xnIsCapabilitySupportedFunction · 0.85

Tested by

no test coverage detected