Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool Tracker<T>::CONFIRMING
- {
- if (skipTracking)
- {
- _current = supplied;
- return true;
- }
- else
- {
- _findTrackedObj();
- }
- // if no object tracked, continue previous, and decrement the counter
- if (_equalityFunctor(_current, _empty))
- {
- // @TODO: debug
- _current = _prev;
- --_objectTrackCount;
- _checkObjCountBounds();
- return false;
- }
- else
- {
- ++_objectTrackCount; // no bound check required
- _previous = _current;
- }
- return true;
- }
- template <class T>
- bool Tracker<T>::TRACKING
- {
- _findTrackedObj(isWindowDynamic);
- if (_equalityFunctor(_current, _empty))
- {
- _current = _prev;
- --_objectTrackCount; // no bound check required
- return false;
- }
- else
- {
- _previous = _current;
- ++_objectTrackCount;
- _checkObjCountBounds();
- if (_history.size() >= bufferLength)
- {
- _history.pop();
- }
- _history.push(_current.getPoint());
- }
- return true;
- }
Add Comment
Please, Sign In to add comment