| 275 | } |
| 276 | |
| 277 | static 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 | |
| 303 | static XnBool xnIsNodeMatch(XnContext* pContext, const XnNodeQuery* pQuery, XnNodeInfo* pNodeInfo) |
| 304 | { |
no test coverage detected