// Draw pointables calibrated to the screen void GestureApp::drawPointables() { gl::color( ColorAf::white() ); const HandMap& hands = mFrame.getHands(); for ( HandMap::const_iterator iter = hands.begin(); iter != hands.end(); ++iter ) { const Hand& hand = iter->second; const FingerMap& fingers = hand.getFingers(); for ( FingerMap::const_iterator fingerIter = fingers.begin(); fingerIter != fingers.end(); ++fingerIter ) { const Finger& finger = fingerIter->second; Vec2f pos( warpPointable( finger ) ); drawDottedCircle( pos, mPointableRadius, mDotRadius * 0.5f, mCircleResolution / 2 ); } } }
void BrainbowApp::onFrame( LeapSdk::Frame frame ) { mHands = frame.getHands(); }
// Called when Leap frame data is ready void ChargesApp::onFrame( LeapSdk::Frame frame ) { mHands = frame.getHands(); mTimestamp = frame.getTimestamp(); }
void LeapPalmDirectionApp::onFrame( LeapSdk::Frame frame ) { mHands = frame.getHands(); }
void _TBOX_PREFIX_App::onFrame( LeapSdk::Frame frame ) { mHands = frame.getHands(); }