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

Method StartTracking

Samples/NiUserSelection/DefaultTrackingInitializer.cpp:86–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84
85
86XnStatus 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
105XnStatus DefaultTrackingInitializer::AbortTracking(XnUserID nUserId)

Callers 1

CalibrationCompleteMethod · 0.45

Calls 4

IsTrackingMethod · 0.80
GetSkeletonCapMethod · 0.80
UpdateUserTrackingMethod · 0.80
RequestCalibrationMethod · 0.80

Tested by

no test coverage detected