예제 #1
0
파일: Message.cpp 프로젝트: arasbm/Gibbon
/**
 * 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);
	}
}
예제 #2
0
파일: Message.cpp 프로젝트: arasbm/Gibbon
/**
 * send the message that this hand is not present
 */
void Message::removeHand(Hand hand) {
	if(setting->send_tuio) {
		tuioServer->removeTuioObject(handList[hand.getHandSide()]);
	}
}
예제 #3
0
파일: Message.cpp 프로젝트: arasbm/Gibbon
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());
	}
}