org.xith3d.picking
Interface NearestPickListener

All Superinterfaces:
PickListenerBase
All Known Subinterfaces:
PickListener
All Known Implementing Classes:
PickAdapter, PickDispatcher

public interface NearestPickListener
extends PickListenerBase

This listener is notified, when the picking is actually done.

See Also:
ScheduledPicker

Method Summary
 void onObjectPicked(PickResult nearest, java.lang.Object userObject, long pickTime)
          This event is fired when a picking was successful
It is very important to be aware of the fact, that the PickResult is not guaranteed to be valid after this method has been left.
 
Methods inherited from interface org.xith3d.picking.PickListenerBase
onPickingMissed, testIntersectionsInWorldSpaceForPicking
 

Method Detail

onObjectPicked

void onObjectPicked(PickResult nearest,
                    java.lang.Object userObject,
                    long pickTime)
This event is fired when a picking was successful
It is very important to be aware of the fact, that the PickResult is not guaranteed to be valid after this method has been left.

Parameters:
nearest - the neares result.
userObject - this userObject is passed to the Picker and back to this method
pickTime - the needed time to do this picking