synergynetframework.jme.pickingsystem
Class AccuratePickingUtility

java.lang.Object
  extended by synergynetframework.jme.pickingsystem.AccuratePickingUtility

public class AccuratePickingUtility
extends java.lang.Object

The Class AccuratePickingUtility.


Constructor Summary
AccuratePickingUtility()
           
 
Method Summary
static com.jme.math.Vector3f getPointOfIntersection(com.jme.scene.Node rootNode, com.jme.math.Vector2f mousePos, com.jme.scene.Spatial spatial)
          Gets the point of intersection.
static java.util.List<PickedSpatial> pickAll(com.jme.scene.Node rootNode, com.jme.math.Vector2f mousePos)
          Pick all.
static java.util.List<PickedSpatial> pickAllOrthogonal(com.jme.scene.Node rootNode, com.jme.math.Vector2f mousePos)
          Pick all orthogonal.
static void printPickResults(AccurateOrthogonalTrianglePickResults pickResults)
          Prints the pick results.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccuratePickingUtility

public AccuratePickingUtility()
Method Detail

getPointOfIntersection

public static com.jme.math.Vector3f getPointOfIntersection(com.jme.scene.Node rootNode,
                                                           com.jme.math.Vector2f mousePos,
                                                           com.jme.scene.Spatial spatial)
Gets the point of intersection.

Parameters:
rootNode - the root node
mousePos - the mouse pos
spatial - the spatial
Returns:
the point of intersection

pickAll

public static java.util.List<PickedSpatial> pickAll(com.jme.scene.Node rootNode,
                                                    com.jme.math.Vector2f mousePos)
Pick all.

Parameters:
rootNode - the root node
mousePos - the mouse pos
Returns:
the list

pickAllOrthogonal

public static java.util.List<PickedSpatial> pickAllOrthogonal(com.jme.scene.Node rootNode,
                                                              com.jme.math.Vector2f mousePos)
Pick all orthogonal.

Parameters:
rootNode - the root node
mousePos - the mouse pos
Returns:
the list

printPickResults

public static void printPickResults(AccurateOrthogonalTrianglePickResults pickResults)
Prints the pick results.

Parameters:
pickResults - the pick results