|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.j3d.PickInfo
public class PickInfo
The PickInfo object contains the computed information about a pick hit. The detailed information about each intersection of the PickShape with the picked Node can be inquired. The PickInfo object is constructed with basic information and more detailed information can be generated by setting the appropriate mask to the flag argument in the pick methods of BranchGroup and Locale.
Locale
,
BranchGroup
Nested Class Summary | |
---|---|
class |
PickInfo.IntersectionInfo
The IntersectionInfo object holds extra information about an intersection of a PickShape with a Node as part of a PickInfo. |
Field Summary | |
---|---|
static int |
ALL_GEOM_INFO
Specifies that this PickInfo returns all the closest intersection geometry informations. |
static int |
CLOSEST_DISTANCE
Specifies that this PickInfo returns the closest intersection distance. |
static int |
CLOSEST_GEOM_INFO
Specifies that this PickInfo returns only the closest intersection geometry information. |
static int |
CLOSEST_INTERSECTION_POINT
Specifies that this PickInfo returns the closest intersection point. |
static int |
LOCAL_TO_VWORLD
Specifies that this PickInfo returns the computed local to vworld transform. |
static int |
NODE
Specifies that this PickInfo returns the computed intersected Node object. |
static int |
PICK_BOUNDS
Specifies a Pick using the bounds of the pickable nodes. |
static int |
PICK_GEOMETRY
Specifies a Pick using the geometry of the pickable nodes. |
static int |
SCENEGRAPHPATH
Specifies that this PickInfo returns the computed SceneGraphPath object. |
Method Summary | |
---|---|
double |
getClosestDistance()
Retrieves the distance between the start point of the pickShape and the closest intersection point. |
javax.vecmath.Point3d |
getClosestIntersectionPoint()
Retrieves the reference to the closest intersection point in this PickInfo object. |
PickInfo.IntersectionInfo[] |
getIntersectionInfos()
Retrieves the reference to the array of intersection results in this PickInfo object. |
Transform3D |
getLocalToVWorld()
Retrieves the reference to the LocalToVworld transform of the picked node in this PickInfo object. |
Node |
getNode()
Retrieves the reference to the picked node, either a Shape3D or a Morph, in this PickInfo object. |
SceneGraphPath |
getSceneGraphPath()
Retrieves the reference to the SceneGraphPath in this PickInfo object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PICK_BOUNDS
public static final int PICK_GEOMETRY
public static final int SCENEGRAPHPATH
public static final int NODE
public static final int LOCAL_TO_VWORLD
public static final int CLOSEST_INTERSECTION_POINT
public static final int CLOSEST_DISTANCE
public static final int CLOSEST_GEOM_INFO
public static final int ALL_GEOM_INFO
Method Detail |
---|
public SceneGraphPath getSceneGraphPath()
Locale
,
BranchGroup
public Node getNode()
Locale
,
BranchGroup
public Transform3D getLocalToVWorld()
Locale
,
BranchGroup
public javax.vecmath.Point3d getClosestIntersectionPoint()
Locale
,
BranchGroup
public double getClosestDistance()
Locale
,
BranchGroup
public PickInfo.IntersectionInfo[] getIntersectionInfos()
Locale
,
BranchGroup
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |