1 | 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. |
2 | |
3 | public class ExampleEventCollector implements EventOutObserver { |
4 | public void start() { |
5 | translation_changed = (EventOutSFVec3f)transform.getEventOut("translation"); |
6 | translation_changed.advise(this,null); |
7 | } |
8 | public void callback(EventOut event, double time, Object userData) { } |
9 | } |