com.jme.intersection
Class PickData

java.lang.Object
  extended bycom.jme.intersection.PickData

public class PickData
extends java.lang.Object

PickData contains information about a picking operation (or Ray/Volume intersection). This data contains the mesh the ray hit, the triangles it hit, and the ray itself.

Author:
Mark Powell

Constructor Summary
PickData(Ray ray, Geometry targetMesh)
           
PickData(Ray ray, Geometry targetMesh, java.util.ArrayList targetTris)
          instantiates a new PickData object.
 
Method Summary
 Ray getRay()
           
 Geometry getTargetMesh()
          getTargetMesh returns the geometry that was hit by the ray.
 java.util.ArrayList getTargetTris()
           
 void setRay(Ray ray)
           
 void setTargetMesh(Geometry mesh)
          setTargetMesh sets the geometry hit by the ray.
 void setTargetTris(java.util.ArrayList target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PickData

public PickData(Ray ray,
                Geometry targetMesh)

PickData

public PickData(Ray ray,
                Geometry targetMesh,
                java.util.ArrayList targetTris)
instantiates a new PickData object.

Method Detail

getTargetMesh

public Geometry getTargetMesh()
getTargetMesh returns the geometry that was hit by the ray.

Returns:
the geometry hit by the ray.

setTargetMesh

public void setTargetMesh(Geometry mesh)
setTargetMesh sets the geometry hit by the ray.

Parameters:
mesh - the geometry hit by the ray.

getTargetTris

public java.util.ArrayList getTargetTris()
Returns:
Returns the target.

setTargetTris

public void setTargetTris(java.util.ArrayList target)
Parameters:
target - The target to set.

getRay

public Ray getRay()
Returns:
Returns the ray.

setRay

public void setRay(Ray ray)
Parameters:
ray - The ray to set.