示例#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
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());
	}
}