com.jme.intersection
Class TrianglePickResults

java.lang.Object
  extended by com.jme.intersection.PickResults
      extended by com.jme.intersection.TrianglePickResults

public class TrianglePickResults
extends PickResults

TrianglePickResults creates a PickResults object that calculates picking to the triangle accuracy. PickData objects are added to the pick list as they happen, these data objects refer to the two meshes, as well as their triangle lists. While TrianglePickResults defines a processPick method, it is empty and should be further defined by the user if so desired. NOTE: Only TriMesh objects may obtain triangle accuracy, all others will result in Bounding accuracy.

Version:
$Id: TrianglePickResults.java,v 1.2 2004/10/14 01:23:12 mojomonkey Exp $
Author:
Mark Powell

Constructor Summary
TrianglePickResults()
           
 
Method Summary
 void addPick(Ray ray, Geometry g)
          addPick adds a Geometry object to the pick list.
 void processPick()
          processPick will handle processing of the pick list.
 
Methods inherited from class com.jme.intersection.PickResults
addPickData, clear, getNumber, getPickData, setCheckDistance, willCheckDistance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrianglePickResults

public TrianglePickResults()
Method Detail

addPick

public void addPick(Ray ray,
                    Geometry g)
addPick adds a Geometry object to the pick list. If the Geometry object is not a TriMesh, the process stops here. However, if the Geometry is a TriMesh, further processing occurs to obtain the triangle lists that the ray passes through.

Specified by:
addPick in class PickResults
Parameters:
ray - the ray that is doing the picking.
g - the Geometry to add to the pick list.
See Also:
PickResults.addPick(Ray, Geometry)

processPick

public void processPick()
processPick will handle processing of the pick list. This is very application specific and therefore left as an empty method. Applications wanting an automated picking system should extend TrianglePickResults and override this method.

Specified by:
processPick in class PickResults
See Also:
PickResults.processPick()