By creating an implementation of EventOutObserver( callback()) interface and passing the reference (advise()) of the appropriate object to the eventOut object, you can collect the incoming events. |
public class ExampleEventCollector implements EventOutObserver { |
public void start() { |
translation_changed = (EventOutSFVec3f)transform.getEventOut("translation"); |
translation_changed.advise(this,null); |
} |
public void callback(EventOut event, double time, Object userData) { } |
} |