| 103 | |
| 104 | |
| 105 | XnStatus DefaultTrackingInitializer::AbortTracking(XnUserID nUserId) |
| 106 | { |
| 107 | // note: the assumption is that this will not be called if not either calibrating or |
| 108 | // tracking (although it will just fail if neither). |
| 109 | if(m_pUserGenerator->GetSkeletonCap().IsTracking(nUserId)==TRUE) |
| 110 | { |
| 111 | // if we are tracking we just need to stop tracking |
| 112 | XnStatus res=m_pUserGenerator->GetSkeletonCap().StopTracking(nUserId); |
| 113 | return res; |
| 114 | } |
| 115 | // if we are not tracking we need to abort the calibration. |
| 116 | return m_pUserGenerator->GetSkeletonCap().AbortCalibration(nUserId); |
| 117 | } |
| 118 | |
| 119 | XnStatus DefaultTrackingInitializer::CalibrationStart(XnUserID /*nUserId*/) |
| 120 | { |
no test coverage detected