| 84 | |
| 85 | |
| 86 | XnStatus DefaultTrackingInitializer::StartTracking(XnUserID nUserId, XnBool bForce) |
| 87 | { |
| 88 | if(m_pUserGenerator->GetSkeletonCap().IsTracking(nUserId)==TRUE) |
| 89 | { |
| 90 | // we don't need to do anything (other than notifying the user selector) as we are |
| 91 | // already tracking |
| 92 | if(m_pUserSelector!=NULL) |
| 93 | { |
| 94 | return m_pUserSelector->UpdateUserTracking(nUserId,TRUE,0); // already tracking |
| 95 | } |
| 96 | else |
| 97 | return XN_STATUS_OK; |
| 98 | |
| 99 | } |
| 100 | // request calibration. |
| 101 | return m_pUserGenerator->GetSkeletonCap().RequestCalibration(nUserId,bForce); |
| 102 | } |
| 103 | |
| 104 | |
| 105 | XnStatus DefaultTrackingInitializer::AbortTracking(XnUserID nUserId) |
no test coverage detected