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

Method EnumerateProductionTrees

Samples/NiSampleModule/ExportedSampleDepth.cpp:35–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35XnStatus ExportedSampleDepth::EnumerateProductionTrees( xn::Context& /*context*/, xn::NodeInfoList& TreesList, xn::EnumerationErrors* /*pErrors*/ )
36{
37 XnStatus nRetVal = XN_STATUS_OK;
38
39 // return one option
40 XnProductionNodeDescription desc;
41 GetDescription(&desc);
42
43 nRetVal = TreesList.Add(desc, NULL, NULL);
44 XN_IS_STATUS_OK(nRetVal);
45
46 return (XN_STATUS_OK);
47}
48
49XnStatus ExportedSampleDepth::Create( xn::Context& /*context*/, const XnChar* /*strInstanceName*/, const XnChar* /*strCreationInfo*/, xn::NodeInfoList* /*pNeededTrees*/, const XnChar* /*strConfigurationDir*/, xn::ModuleProductionNode** ppInstance )
50{

Callers 2

captureOpenWriteDeviceFunction · 0.45

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected