synergynetframework.jme.pickingsystem
Class JMEMultiTouchPickSystem

java.lang.Object
  extended by synergynetframework.jme.pickingsystem.JMEMultiTouchPickSystem
All Implemented Interfaces:
IJMEMultiTouchPicker

public class JMEMultiTouchPickSystem
extends java.lang.Object
implements IJMEMultiTouchPicker

Default implementation of IJMEMultiTouchPickSystem. Pick requests are screen locations. Pick results are names of Spatials that are picked at that screen location.

Author:
dcs0ah1

Method Summary
 java.util.List<PickResultData> doPick(PickRequest pickRequest)
          Do pick.
 java.util.List<PickResultData> doPick(PickRequest pickRequest, boolean worldNodeOnly)
          Do pick.
static JMEMultiTouchPickSystem getInstance()
          Gets the single instance of JMEMultiTouchPickSystem.
static void printPickResults(java.util.List<PickResultData> pr2)
          Prints the pick results.
static void printPickResults(com.jme.intersection.PickResults pr2)
          Prints the pick results.
 void setOrthogonalPickingRoot(com.jme.scene.Node twod)
          Sets the orthogonal picking root.
 void setPickingRootNode(com.jme.scene.Node rootNode)
          Sets the picking root node.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static JMEMultiTouchPickSystem getInstance()
Gets the single instance of JMEMultiTouchPickSystem.

Returns:
single instance of JMEMultiTouchPickSystem

printPickResults

public static void printPickResults(java.util.List<PickResultData> pr2)
Prints the pick results.

Parameters:
pr2 - the pr2

printPickResults

public static void printPickResults(com.jme.intersection.PickResults pr2)
Prints the pick results.

Parameters:
pr2 - the pr2

doPick

public java.util.List<PickResultData> doPick(PickRequest pickRequest)
                                      throws PickSystemException
Description copied from interface: IJMEMultiTouchPicker
Do pick.

Specified by:
doPick in interface IJMEMultiTouchPicker
Parameters:
pickRequest - the pick request
Returns:
the list
Throws:
PickSystemException - the pick system exception

doPick

public java.util.List<PickResultData> doPick(PickRequest pickRequest,
                                             boolean worldNodeOnly)
                                      throws PickSystemException
Description copied from interface: IJMEMultiTouchPicker
Do pick.

Specified by:
doPick in interface IJMEMultiTouchPicker
Parameters:
pickRequest - the pick request
worldNodeOnly - the world node only
Returns:
the list
Throws:
PickSystemException - the pick system exception

setOrthogonalPickingRoot

public void setOrthogonalPickingRoot(com.jme.scene.Node twod)
                              throws PickSystemException
Description copied from interface: IJMEMultiTouchPicker
Sets the orthogonal picking root.

Specified by:
setOrthogonalPickingRoot in interface IJMEMultiTouchPicker
Parameters:
twod - the new orthogonal picking root
Throws:
PickSystemException - the pick system exception

setPickingRootNode

public void setPickingRootNode(com.jme.scene.Node rootNode)
                        throws PickSystemException
Description copied from interface: IJMEMultiTouchPicker
Sets the picking root node.

Specified by:
setPickingRootNode in interface IJMEMultiTouchPicker
Parameters:
rootNode - the new picking root node
Throws:
PickSystemException - the pick system exception