TUIOIDistance

superclass: [TUIOInteraction]

/*

Author: 

2004, 2005, 2006

Till Bovermann 

Neuroinformatics Group 

Faculty of Technology 

Bielefeld University

Germany

*/


computes the distance between the interactands and evaluates a class-wide user-definable function.


*distfunc_(function)

function might have 



TUIOIDistance.distFunc = {|distance, isValid, parts| postf("%<->% : %\n", parts[0].id, parts[1].id, distance)}


(

e = e ? ();


//e.t = TUIO_OSCServer("_ixya", nil, TUIObject, TUIOIDistance);

e.t = TUIOServer("_ixya", TUIObject, TUIOIDistance);

e.t.start;

e.t.gui

)

e.t.stop