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

Method AbortTracking

Samples/NiUserSelection/DefaultTrackingInitializer.cpp:105–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103
104
105XnStatus 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
119XnStatus DefaultTrackingInitializer::CalibrationStart(XnUserID /*nUserId*/)
120{

Callers 3

UpdateFrameMethod · 0.80
StartTrackingMethod · 0.80
DetectPoseMethod · 0.80

Calls 4

IsTrackingMethod · 0.80
GetSkeletonCapMethod · 0.80
AbortCalibrationMethod · 0.80
StopTrackingMethod · 0.45

Tested by

no test coverage detected