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

Method Create

Samples/NiSampleModule/ExportedSampleDepth.cpp:49–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49XnStatus ExportedSampleDepth::Create( xn::Context& /*context*/, const XnChar* /*strInstanceName*/, const XnChar* /*strCreationInfo*/, xn::NodeInfoList* /*pNeededTrees*/, const XnChar* /*strConfigurationDir*/, xn::ModuleProductionNode** ppInstance )
50{
51 XnStatus nRetVal = XN_STATUS_OK;
52
53 SampleDepth* pDepth = new SampleDepth();
54
55 nRetVal = pDepth->Init();
56 if (nRetVal != XN_STATUS_OK)
57 {
58 delete pDepth;
59 return (nRetVal);
60 }
61
62 *ppInstance = pDepth;
63
64 return (XN_STATUS_OK);
65}
66
67void ExportedSampleDepth::Destroy( xn::ModuleProductionNode* pInstance )
68{

Callers 10

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
InitMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
UserTrackerMethod · 0.45

Calls 1

InitMethod · 0.45

Tested by

no test coverage detected