com.jme.intersection
Class PickResults

java.lang.Object
  extended bycom.jme.intersection.PickResults
Direct Known Subclasses:
BoundingPickResults, TrianglePickResults

public abstract class PickResults
extends java.lang.Object

PickResults contains information resulting from a pick test. The results will contain a list of every node that was "struck" during a pick test.

Version:
$Id: PickResults.java,v 1.6 2004/10/05 23:38:16 mojomonkey Exp $
Author:
Mark Powell

Constructor Summary
PickResults()
          Constructor instantiates a new PickResults object.
 
Method Summary
abstract  void addPick(Ray ray, Geometry s)
           
 void addPickData(PickData data)
          addGeometry places a new Geometry spatial into the results list.
 void clear()
          clear clears the list of all Geometry objects.
 int getNumber()
          getNumber retrieves the number of geometries that have been placed in the results.
 PickData getPickData(int i)
          getGeometry retrieves a Geometry from a specific index.
abstract  void processPick()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PickResults

public PickResults()
Constructor instantiates a new PickResults object.

Method Detail

addPickData

public void addPickData(PickData data)
addGeometry places a new Geometry spatial into the results list.


getNumber

public int getNumber()
getNumber retrieves the number of geometries that have been placed in the results.

Returns:
the number of Geometry objects in the list.

getPickData

public PickData getPickData(int i)
getGeometry retrieves a Geometry from a specific index.

Parameters:
i - the index requested.
Returns:
the Geometry at the specified index.

clear

public void clear()
clear clears the list of all Geometry objects.


addPick

public abstract void addPick(Ray ray,
                             Geometry s)

processPick

public abstract void processPick()