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

Function xnConfigureAlternativeViewPoint

Source/OpenNI/XnXmlScriptNode.cpp:303–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303XnStatus xnConfigureAlternativeViewPoint(XnNodeHandle hNode, const TiXmlElement* pOpcode)
304{
305 XnStatus nRetVal = XN_STATUS_OK;
306
307 if (!xnIsCapabilitySupported(hNode, XN_CAPABILITY_ALTERNATIVE_VIEW_POINT))
308 {
309 return XN_STATUS_INVALID_OPERATION;
310 }
311
312 XnContext* pContext = hNode->pContext;
313 XnNodeHandle hOther = NULL;
314
315 nRetVal = xnGetRefNodeHandleByName(pContext, pOpcode->GetText(), &hOther);
316 XN_IS_STATUS_OK(nRetVal);
317
318 nRetVal = xnSetViewPoint(hNode, hOther);
319 xnProductionNodeRelease(hOther);
320 XN_IS_STATUS_OK(nRetVal);
321
322 return (XN_STATUS_OK);
323}
324
325XnStatus xnConfigureRecorderDestination(XnNodeHandle hNode, const TiXmlElement* pOpcode)
326{

Callers 1

xnConfigureSetOpcodeFunction · 0.85

Calls 5

xnIsCapabilitySupportedFunction · 0.85
xnGetRefNodeHandleByNameFunction · 0.85
xnSetViewPointFunction · 0.85
xnProductionNodeReleaseFunction · 0.85
GetTextMethod · 0.80

Tested by

no test coverage detected