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

Method GetUserStringPos

Samples/NiUserSelection/UserTracker.cpp:302–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300
301
302XnStatus UserTracker::GetUserStringPos(XnUserID nUserId, XnPoint3D &com, char *strLabel, XnUInt32 maxStrLen)
303{
304 XnStatus res;
305 res=m_UserGenerator.GetCoM(nUserId, com);
306 if(res!=XN_STATUS_OK)
307 return res;
308 res=m_DepthGenerator.ConvertRealWorldToProjective(1, &com, &com);
309 if(res!=XN_STATUS_OK)
310 return res;
311
312 m_pUserSelector->GetUserLabel(nUserId,strLabel,maxStrLen);
313 return XN_STATUS_OK;
314}
315
316XnStatus UserTracker::GetLimbs(XnUserID nUserID, XnPoint3D *pLimbs,XnFloat *pConfidence, XnUInt16 &numLimbs)
317{

Callers 1

DrawLabelsMethod · 0.80

Calls 3

GetUserLabelMethod · 0.80
GetCoMMethod · 0.45

Tested by

no test coverage detected