|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.picking.PickDispatcher
public class PickDispatcher
This class acts as a proxy for pick events and can dispatch the pick events to multiple listeners.
| Constructor Summary | |
|---|---|
PickDispatcher()
|
|
| Method Summary | |
|---|---|
void |
addPickListener(PickListener listener)
|
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. |
void |
onObjectsPicked(java.util.List<PickResult> pickResults,
java.lang.Object userObject,
long pickTime)
This event is fired when a picking was successful. |
void |
onPickingMissed(java.lang.Object userObject,
long pickTime)
this Event is fired when a pickray didn't hit any node |
void |
removePickListener(PickListener listener)
|
boolean |
testIntersectionsInWorldSpaceForPicking()
By default this method should return false. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PickDispatcher()
| Method Detail |
|---|
public void addPickListener(PickListener listener)
public void removePickListener(PickListener listener)
public boolean testIntersectionsInWorldSpaceForPicking()
false.true, ray triangle intersections are tested in world space instead of object space.
testIntersectionsInWorldSpaceForPicking in interface PickListenerBase
public void onObjectPicked(PickResult nearest,
java.lang.Object userObject,
long pickTime)
onObjectPicked in interface NearestPickListenernearest - the neares result.userObject - this userObject is passed to the Picker and back to this methodpickTime - the needed time to do this picking
public void onObjectsPicked(java.util.List<PickResult> pickResults,
java.lang.Object userObject,
long pickTime)
onObjectsPicked in interface AllPickListenerpickResults - all PickResults from this picking operationuserObject - this userObject is passed to the Picker and back to this methodpickTime - the needed time to do this picking
public void onPickingMissed(java.lang.Object userObject,
long pickTime)
onPickingMissed in interface PickListenerBaseuserObject - this userObject is passed to the Picker and back to this methodpickTime - the needed time to do this picking
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||