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

Method GetExitPoseTimeStamp

Samples/NiUserSelection/ExitPoseDetector.cpp:89–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89XnUInt64 ExitPoseDetector::GetExitPoseTimeStamp(XnUserID nUserId)
90{
91 if(nUserId==0)
92 {
93 XnUInt64 maxTime=0;
94 for(UserExitPoseTimes::Iterator iter=m_userExitPoseTimes.Begin(); iter!=m_userExitPoseTimes.End(); ++iter)
95 {
96 XnUInt64 userTime=iter->Value();
97 if(userTime>maxTime)
98 {
99 maxTime=userTime;
100 }
101 }
102 return maxTime;
103 }
104 // we have an actual user
105 XnUInt64 userTime;
106 if(m_userExitPoseTimes.Get(nUserId,userTime)!=XN_STATUS_OK)
107 {
108 return 0; // no user data
109 }
110 return userTime;
111}
112
113
114void XN_CALLBACK_TYPE ExitPoseDetector::PoseDetectedCallback(xn::PoseDetectionCapability& /*capability*/, const XnChar* strPose, XnUserID nUserId, void* pCookie)

Callers 1

GetExitPoseStateMethod · 0.80

Calls 4

BeginMethod · 0.45
EndMethod · 0.45
ValueMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected