Esempio n. 1
0
// 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 );
		}
	}
}
Esempio n. 2
0
void BrainbowApp::onFrame( LeapSdk::Frame frame )
{
	mHands = frame.getHands();
}
Esempio n. 3
0
// Called when Leap frame data is ready
void ChargesApp::onFrame( LeapSdk::Frame frame )
{
	mHands = frame.getHands();
	mTimestamp = frame.getTimestamp();
}
Esempio n. 4
0
void LeapPalmDirectionApp::onFrame( LeapSdk::Frame frame )
{
	mHands = frame.getHands();
}
void _TBOX_PREFIX_App::onFrame( LeapSdk::Frame frame )
{
	mHands = frame.getHands();
}