|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.loop.opscheduler.impl.ScheduledOperationImpl
org.xith3d.picking.ScheduledPicker
public class ScheduledPicker
Since picking is done by the render thread (RenderLoop) an instance of this class is put into the RenderLoop's scheduler. When picking is done, the PickListener is notified.
PickListener| Constructor Summary | |
|---|---|
ScheduledPicker()
Generates a new ScheduledPicker instance. |
|
ScheduledPicker(GroupNode group,
Canvas3D canvas,
org.jagatoo.input.devices.components.MouseButton button,
int mouseX,
int mouseY,
AllPickListener pl)
Generates a new ScheduledPicker instance. |
|
ScheduledPicker(GroupNode group,
Canvas3D canvas,
org.jagatoo.input.devices.components.MouseButton button,
int mouseX,
int mouseY,
AllPickListener pl,
java.lang.Object userObject)
Generates a new ScheduledPicker instance. |
|
ScheduledPicker(GroupNode group,
Canvas3D canvas,
org.jagatoo.input.devices.components.MouseButton button,
int mouseX,
int mouseY,
NearestPickListener pl)
Generates a new ScheduledPicker instance. |
|
ScheduledPicker(GroupNode group,
Canvas3D canvas,
org.jagatoo.input.devices.components.MouseButton button,
int mouseX,
int mouseY,
NearestPickListener pl,
java.lang.Object userObject)
Generates a new ScheduledPicker instance. |
|
ScheduledPicker(java.util.List<? extends GroupNode> groups,
Canvas3D canvas,
org.jagatoo.input.devices.components.MouseButton button,
int mouseX,
int mouseY,
AllPickListener pl)
Generates a new ScheduledPicker instance. |
|
ScheduledPicker(java.util.List<? extends GroupNode> groups,
Canvas3D canvas,
org.jagatoo.input.devices.components.MouseButton button,
int mouseX,
int mouseY,
AllPickListener pl,
java.lang.Object userObject)
Generates a new ScheduledPicker instance. |
|
ScheduledPicker(java.util.List<? extends GroupNode> groups,
Canvas3D canvas,
org.jagatoo.input.devices.components.MouseButton button,
int mouseX,
int mouseY,
NearestPickListener pl)
Generates a new ScheduledPicker instance. |
|
ScheduledPicker(java.util.List<? extends GroupNode> groups,
Canvas3D canvas,
org.jagatoo.input.devices.components.MouseButton button,
int mouseX,
int mouseY,
NearestPickListener pl,
java.lang.Object userObject)
Generates a new ScheduledPicker instance. |
|
| Method Summary | |
|---|---|
AllPickListener |
getAllPickListener()
|
Canvas3D |
getCanvas()
|
int |
getMouseX()
|
int |
getMouseY()
|
NearestPickListener |
getNearestPickListener()
|
java.lang.Object |
getUserObject()
|
void |
init(java.util.List<? extends GroupNode> groups,
Canvas3D canvas,
org.jagatoo.input.devices.components.MouseButton button,
int mouseX,
int mouseY,
AllPickListener pl,
java.lang.Object userObject)
Generates a new ScheduledPicker instance. |
void |
init(java.util.List<? extends GroupNode> groups,
Canvas3D canvas,
org.jagatoo.input.devices.components.MouseButton button,
int mouseX,
int mouseY,
NearestPickListener pl,
java.lang.Object userObject)
Generates a new ScheduledPicker instance. |
void |
setUserObject(java.lang.Object userObject)
Assotiotes a new user object with this instance. |
void |
update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
Updates this Updatable object. |
| Methods inherited from class org.xith3d.loop.opscheduler.impl.ScheduledOperationImpl |
|---|
isAlive, isPersistent, setAlive |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScheduledPicker()
public ScheduledPicker(java.util.List<? extends GroupNode> groups,
Canvas3D canvas,
org.jagatoo.input.devices.components.MouseButton button,
int mouseX,
int mouseY,
AllPickListener pl,
java.lang.Object userObject)
groups - the Groups to do the picking oncanvas - the canvas to do the picking onbutton - the mouse button, that was clickedmouseX - the x-position of the mouse on the canvasmouseY - the y-position of the mouse on the canvaspl - the picklistener to use for callback when picking is doneuserObject - this user object is passed back to the onNodePicked() method
public ScheduledPicker(GroupNode group,
Canvas3D canvas,
org.jagatoo.input.devices.components.MouseButton button,
int mouseX,
int mouseY,
AllPickListener pl,
java.lang.Object userObject)
group - the Groups to do the picking oncanvas - the canvas to do the picking onbutton - the mouse button, that was clickedmouseX - the x-position of the mouse on the canvasmouseY - the y-position of the mouse on the canvaspl - the picklistener to use for callback when picking is doneuserObject - this user object is passed back to the onObjectPicked() method of the PickListener
public ScheduledPicker(java.util.List<? extends GroupNode> groups,
Canvas3D canvas,
org.jagatoo.input.devices.components.MouseButton button,
int mouseX,
int mouseY,
AllPickListener pl)
groups - the Groups to do the picking oncanvas - the canvas to do the picking onbutton - the mouse button, that was clickedmouseX - the x-position of the mouse on the canvasmouseY - the y-position of the mouse on the canvaspl - the picklistener to use for callback when picking is done
public ScheduledPicker(GroupNode group,
Canvas3D canvas,
org.jagatoo.input.devices.components.MouseButton button,
int mouseX,
int mouseY,
AllPickListener pl)
group - the Groups to do the picking oncanvas - the canvas to do the picking onbutton - the mouse button, that was clickedmouseX - the x-position of the mouse on the canvasmouseY - the y-position of the mouse on the canvaspl - the picklistener to use for callback when picking is done
public ScheduledPicker(java.util.List<? extends GroupNode> groups,
Canvas3D canvas,
org.jagatoo.input.devices.components.MouseButton button,
int mouseX,
int mouseY,
NearestPickListener pl,
java.lang.Object userObject)
groups - the Groups to do the picking oncanvas - the canvas to do the picking onbutton - the mouse button, that was clickedmouseX - the x-position of the mouse on the canvasmouseY - the y-position of the mouse on the canvaspl - the picklistener to use for callback when picking is doneuserObject - this user object is passed back to the onNodePicked() method
public ScheduledPicker(GroupNode group,
Canvas3D canvas,
org.jagatoo.input.devices.components.MouseButton button,
int mouseX,
int mouseY,
NearestPickListener pl,
java.lang.Object userObject)
group - the Groups to do the picking oncanvas - the canvas to do the picking onbutton - the mouse button, that was clickedmouseX - the x-position of the mouse on the canvasmouseY - the y-position of the mouse on the canvaspl - the picklistener to use for callback when picking is doneuserObject - this user object is passed back to the onObjectPicked() method of the PickListener
public ScheduledPicker(java.util.List<? extends GroupNode> groups,
Canvas3D canvas,
org.jagatoo.input.devices.components.MouseButton button,
int mouseX,
int mouseY,
NearestPickListener pl)
groups - the Groups to do the picking oncanvas - the canvas to do the picking onbutton - the mouse button, that was clickedmouseX - the x-position of the mouse on the canvasmouseY - the y-position of the mouse on the canvaspl - the picklistener to use for callback when picking is done
public ScheduledPicker(GroupNode group,
Canvas3D canvas,
org.jagatoo.input.devices.components.MouseButton button,
int mouseX,
int mouseY,
NearestPickListener pl)
group - the Groups to do the picking oncanvas - the canvas to do the picking onbutton - the mouse button, that was clickedmouseX - the x-position of the mouse on the canvasmouseY - the y-position of the mouse on the canvaspl - the picklistener to use for callback when picking is done| Method Detail |
|---|
public java.lang.Object getUserObject()
public void setUserObject(java.lang.Object userObject)
public AllPickListener getAllPickListener()
public NearestPickListener getNearestPickListener()
public Canvas3D getCanvas()
public int getMouseX()
public int getMouseY()
public void update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
gameTime - the gameTime in MillisecondsframeTime - the frameTime in Milliseconds (needed time for the last frame)timingMode - the TimingMode to use for frameTime.
public void init(java.util.List<? extends GroupNode> groups,
Canvas3D canvas,
org.jagatoo.input.devices.components.MouseButton button,
int mouseX,
int mouseY,
AllPickListener pl,
java.lang.Object userObject)
groups - the List of GroupNodes to do the picking oncanvas - the canvas to do the picking onbutton - the mouse button, that was clickedmouseX - the x-position of the mouse on the canvasmouseY - the y-position of the mouse on the canvaspl - the picklistener to use for callback when picking is doneuserObject - this user object is passed back to the onNodePicked() method
public void init(java.util.List<? extends GroupNode> groups,
Canvas3D canvas,
org.jagatoo.input.devices.components.MouseButton button,
int mouseX,
int mouseY,
NearestPickListener pl,
java.lang.Object userObject)
groups - the List of GroupNodes to do the picking oncanvas - the canvas to do the picking onbutton - the mouse button, that was clickedmouseX - the x-position of the mouse on the canvasmouseY - the y-position of the mouse on the canvaspl - the picklistener to use for callback when picking is doneuserObject - this user object is passed back to the onNodePicked() method
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||