x3d
Class PickInfo
java.lang.Object | +--x3d.PickInfo
- public class PickInfo
- extends java.lang.Object
The object with the pick information. The member variables that hold the information can be accessed directly without specific methods.
- Version:
- 1.0
- Author:
- Holger Grahn, Kristof Nast-Kolb, Bitmanagement Software
Field Summary | |
float[] | hitGlobal the closest point that was hit in global coordinates. |
float[] | hitLocal the closest point that was hit in local coordinates. |
int | info the info which information was retrieved |
float[][] | matrix the 4x4 matrix that transforms from local to parent space |
Node[] | nodePath the path from the hit node to the top of the hierarchy ordered front to back |
static int | PICK_MATRIX Info flag: return the 4x4matrix for the node |
static int | PICK_MOUSE Info flag: set from browser if a mouse position was used |
static int | PICK_NODE Info flag: return only the hit node(s) |
static int | PICK_PATH Info flag: return the complete path(s) |
static int | PICK_RAY Info flag: set from browser if a ray was used |
Constructor Summary | |
PickInfo() create a new PickInfo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
PICK_NODE
public static final int PICK_NODE
- Info flag: return only the hit node(s)
PICK_PATH
public static final int PICK_PATH
- Info flag: return the complete path(s)
PICK_MATRIX
public static final int PICK_MATRIX
- Info flag: return the 4x4matrix for the node
PICK_RAY
public static final int PICK_RAY
- Info flag: set from browser if a ray was used
PICK_MOUSE
public static final int PICK_MOUSE
- Info flag: set from browser if a mouse position was used
info
public int info
- the info which information was retrieved
hitLocal
public float[] hitLocal
- the closest point that was hit in local coordinates.
hitGlobal
public float[] hitGlobal
- the closest point that was hit in global coordinates.
matrix
public float[][] matrix
- the 4x4 matrix that transforms from local to parent space
nodePath
public Node[] nodePath
- the path from the hit node to the top of the hierarchy ordered front to back
Constructor Detail |
PickInfo
public PickInfo()
- create a new PickInfo