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

Method GetUserLabel

Samples/NiUserSelection/UserSelector.cpp:185–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185XnStatus UserSelector::GetUserLabel(XnUserID nUserId, char* strLabel, XnUInt32 maxStrLen)
186{
187 UserSelectionState* pState;
188 XnStatus nRetVal=m_hUsersState.Get(nUserId, pState);
189
190 if(nRetVal!=XN_STATUS_OK)
191 {
192 return nRetVal;
193 }
194 return TranslateStateToLabel(pState,strLabel,maxStrLen);
195}
196
197XnStatus UserSelector::TranslateStateToLabel(const UserSelectionState* pUserState, char *strLabel, XnUInt32 maxStrLen)
198{

Callers 1

GetUserStringPosMethod · 0.80

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected