/** * for updating an existing hand. New gestures will be retrived from the hand and sent over using * appropriate protocols such as TUIO */ void Message::updateHand(Hand hand) { if(setting->send_tuio) { tuioServer->updateTuioObject(handList[hand.getHandSide()], hand.getX(), hand.getY(), hand.getAngle()); //tuioServer->updateTuioObject(handList[hand.getHandSide()], .1f, .1f, .2f); } }
void Message::newHand(Hand hand) { if(setting->send_tuio) { //handList[hand.getHandNumber()] = TuioObject(tuioTime, 0, hand.handMessageID(), hand.getX(), hand.getY(), hand.getAngle()); handList[hand.getHandSide()] = tuioServer->addTuioObject(hand.handMessageID(), hand.getX(), hand.getY(), hand.getAngle()); } }