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

Method SetNodeIntProp

Source/OpenNI/XnPlayerImpl.cpp:552–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

550}
551
552XnStatus PlayerImpl::SetNodeIntProp(const XnChar* strNodeName, const XnChar* strPropName, XnUInt64 nValue)
553{
554 XnStatus nRetVal = XN_STATUS_OK;
555
556 PlayedNodeInfo playedNode;
557 nRetVal = m_playedNodes.Get(strNodeName, playedNode);
558 XN_IS_STATUS_OK(nRetVal);
559
560 nRetVal = xnLockedNodeStartChanges(playedNode.hNode, playedNode.hLock);
561 XN_IS_STATUS_OK(nRetVal);
562
563 nRetVal = xnSetIntProperty(playedNode.hNode, strPropName, nValue);
564 if (nRetVal != XN_STATUS_OK)
565 {
566 xnLockedNodeEndChanges(playedNode.hNode, playedNode.hLock);
567 return (nRetVal);
568 }
569
570 nRetVal = xnLockedNodeEndChanges(playedNode.hNode, playedNode.hLock);
571 XN_IS_STATUS_OK(nRetVal);
572
573 return XN_STATUS_OK;
574}
575
576XnStatus PlayerImpl::SetNodeRealProp(const XnChar* strNodeName, const XnChar* strPropName, XnDouble dValue)
577{

Callers 1

OnNodeIntPropChangedMethod · 0.80

Calls 4

xnLockedNodeStartChangesFunction · 0.85
xnSetIntPropertyFunction · 0.85
xnLockedNodeEndChangesFunction · 0.85
GetMethod · 0.45

Tested by

no test coverage detected