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

Function createStream

Samples/NiViewer/Device.cpp:369–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369void createStream(Generator& generator, XnProductionNodeType type)
370{
371 EnumerationErrors errors;
372 XnStatus nRetVal = g_Context.CreateAnyProductionTree(type, NULL, generator, &errors);
373 if (nRetVal == XN_STATUS_NO_NODE_PRESENT)
374 {
375 XnChar strError[1024];
376 errors.ToString(strError, 1024);
377 displayMessage("%s", strError);
378 return;
379 }
380 else if (nRetVal != XN_STATUS_OK)
381 {
382 displayMessage("Open failed: %s", xnGetStatusString(nRetVal));
383 return;
384 }
385}
386
387void toggleStream(Generator& generator, XnProductionNodeType type, bool* bIsOn)
388{

Callers 1

toggleStreamFunction · 0.85

Calls 4

displayMessageFunction · 0.85
xnGetStatusStringFunction · 0.85
ToStringMethod · 0.45

Tested by

no test coverage detected