Class PickObject
java.lang.Object
com.sun.j3d.utils.behaviors.picking.PickObject
Deprecated.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Deprecated.A flag to indicate to the pickNode method to return aBranchGroup
node from a givenSceneGraphPath
.static final int
Deprecated.A flag to indicate to the pickNode method to return aGroup
node from a givenSceneGraphPath
.static final int
Deprecated.A flag to indicate to the pickNode method to return aLink
node from a givenSceneGraphPath
.static final int
Deprecated.A flag to indicate to the pickNode method to return aMorph
node from a givenSceneGraphPath
.static final int
Deprecated.A flag to indicate to the pickNode method to return aPrimitive
node from a givenSceneGraphPath
.static final int
Deprecated.A flag to indicate to the pickNode method to return aShape3D
node from a givenSceneGraphPath
.static final int
Deprecated.A flag to indicate to the pickNode method to return aSwitch
node from a givenSceneGraphPath
.static final int
Deprecated.A flag to indicate to the pickNode method to return aTransformGroup
node from a givenSceneGraphPath
.static final int
Deprecated.Set this flag if you want to pick by bounds.static final int
Deprecated.Set this flag if you want to pick by geometry. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongeneratePickRay
(int xpos, int ypos) Deprecated.Creates a PickRay that starts at the viewer position and points into the scene in the direction of (xpos, ypos) specified in window space.pickAll
(int xpos, int ypos) Deprecated.Returns an array referencing all the items that are pickable below theBranchGroup
(specified in the PickObject constructor) that intersect with a ray that starts at the viewer position and points into the scene in the direction of (xpos, ypos) specified in window space.pickAll
(int xpos, int ypos, int flag) Deprecated.Returns an array referencing all the items that are pickable below theBranchGroup
(specified in the PickObject constructor) that intersect with a ray that starts at the viewer position and points into the scene in the direction of (xpos, ypos) specified in window space.pickAllSorted
(int xpos, int ypos) Deprecated.Returns a sorted array of references to all the Pickable items below theBranchGroup
(specified in the PickObject constructor) that intersect with the ray that starts at the viewer position and points into the scene in the direction of (xpos, ypos) in the window space.pickAllSorted
(int xpos, int ypos, int flag) Deprecated.Returns a sorted array of references to all the Pickable items below theBranchGroup
(specified in the PickObject constructor) that intersect with the ray that starts at the viewer position and points into the scene in the direction of (xpos, ypos) in the window space.pickAny
(int xpos, int ypos) Deprecated.Returns a reference to any item that is Pickable below the specifiedBranchGroup
(specified in the PickObject constructor) which intersects with the ray that starts at the viewer position and points into the scene in the direction of (xpos, ypos) in window space.pickAny
(int xpos, int ypos, int flag) Deprecated.Returns a reference to any item that is Pickable below the specifiedBranchGroup
(specified in the PickObject constructor) which intersects with the ray that starts at the viewer position and points into the scene in the direction of (xpos, ypos) in window space.pickClosest
(int xpos, int ypos) Deprecated.Returns a reference to the item that is closest to the viewer and is Pickable below theBranchGroup
(specified in the PickObject constructor) which intersects with the ray that starts at the viewer position and points into the scene in the direction of (xpos, ypos) in the window space.pickClosest
(int xpos, int ypos, int flag) Deprecated.Returns a reference to the item that is closest to the viewer and is Pickable below theBranchGroup
(specified in the PickObject constructor) which intersects with the ray that starts at the viewer position and points into the scene in the direction of (xpos, ypos) in the window space.pickNode
(SceneGraphPath sgPath, int flags) Deprecated.Returns a reference to a Pickable Node that is of the specified type that is contained in the specified SceneGraphPath.pickNode
(SceneGraphPath sgPath, int flags, int occurrence) Deprecated.Returns a reference to a Pickable Node that is of the specified type that is contained in the specified SceneGraphPath.
-
Field Details
-
SHAPE3D
public static final int SHAPE3DDeprecated.A flag to indicate to the pickNode method to return aShape3D
node from a givenSceneGraphPath
.- See Also:
-
MORPH
public static final int MORPHDeprecated.A flag to indicate to the pickNode method to return aMorph
node from a givenSceneGraphPath
.- See Also:
-
PRIMITIVE
public static final int PRIMITIVEDeprecated.A flag to indicate to the pickNode method to return aPrimitive
node from a givenSceneGraphPath
.- See Also:
-
LINK
public static final int LINKDeprecated.A flag to indicate to the pickNode method to return aLink
node from a givenSceneGraphPath
.- See Also:
-
GROUP
public static final int GROUPDeprecated.A flag to indicate to the pickNode method to return aGroup
node from a givenSceneGraphPath
.- See Also:
-
TRANSFORM_GROUP
public static final int TRANSFORM_GROUPDeprecated.A flag to indicate to the pickNode method to return aTransformGroup
node from a givenSceneGraphPath
.- See Also:
-
BRANCH_GROUP
public static final int BRANCH_GROUPDeprecated.A flag to indicate to the pickNode method to return aBranchGroup
node from a givenSceneGraphPath
.- See Also:
-
SWITCH
public static final int SWITCHDeprecated.A flag to indicate to the pickNode method to return aSwitch
node from a givenSceneGraphPath
.- See Also:
-
USE_GEOMETRY
public static final int USE_GEOMETRYDeprecated.Set this flag if you want to pick by geometry.- See Also:
-
USE_BOUNDS
public static final int USE_BOUNDSDeprecated.Set this flag if you want to pick by bounds.- See Also:
-
-
Constructor Details
-
PickObject
Deprecated.Creates a PickObject.- Parameters:
c
- Current J3D canvas.root
- The portion of the scenegraph for which picking is to occur on. It has to be aBranchGroup
.- See Also:
-
-
Method Details
-
generatePickRay
Deprecated.Creates a PickRay that starts at the viewer position and points into the scene in the direction of (xpos, ypos) specified in window space.- Parameters:
xpos
- The value along the x-axis.ypos
- The value along the y-axis.- Returns:
- A PickShape object that is the constructed PickRay.
-
pickAll
Deprecated.Returns an array referencing all the items that are pickable below theBranchGroup
(specified in the PickObject constructor) that intersect with a ray that starts at the viewer position and points into the scene in the direction of (xpos, ypos) specified in window space. The resultant array is unordered.- Parameters:
xpos
- The value along the x-axis.ypos
- The value along the y-axis.- Returns:
- The array of SceneGraphPath objects that contain Objects that
were picked
If no pickable object is found
null
is returned.. - See Also:
-
pickAllSorted
Deprecated.Returns a sorted array of references to all the Pickable items below theBranchGroup
(specified in the PickObject constructor) that intersect with the ray that starts at the viewer position and points into the scene in the direction of (xpos, ypos) in the window space. Element [0] references the item closest to viewer.- Parameters:
xpos
- The value along the x-axis.ypos
- The value along the y-axis.- Returns:
- A sorted arrayof SceneGraphPath objects that contain Objects that
were picked. The array is sorted from closest to farthest from the
viewer
If no pickable object is found
null
is returned.. - See Also:
-
pickAny
Deprecated.Returns a reference to any item that is Pickable below the specifiedBranchGroup
(specified in the PickObject constructor) which intersects with the ray that starts at the viewer position and points into the scene in the direction of (xpos, ypos) in window space.- Parameters:
xpos
- The value along the x-axis.ypos
- The value along the y-axis.- Returns:
- A SceneGraphPath of an object that was picked. This is not
guarenteed to return the same result for multiple picks
If no pickable object is found
null
is returned.. - See Also:
-
pickClosest
Deprecated.Returns a reference to the item that is closest to the viewer and is Pickable below theBranchGroup
(specified in the PickObject constructor) which intersects with the ray that starts at the viewer position and points into the scene in the direction of (xpos, ypos) in the window space.- Parameters:
xpos
- The value along the x-axis.ypos
- The value along the y-axis.- Returns:
- A SceneGraphPath which contains the closest pickable object.
If no pickable object is found,
null
is returned. - See Also:
-
pickAll
Deprecated.Returns an array referencing all the items that are pickable below theBranchGroup
(specified in the PickObject constructor) that intersect with a ray that starts at the viewer position and points into the scene in the direction of (xpos, ypos) specified in window space. The resultant array is unordered.- Parameters:
xpos
- The value along the x-axis.ypos
- The value along the y-axis.flag
- Specifys picking by Geometry or Bounds.- Returns:
- The array of SceneGraphPath objects that contain Objects that
were picked
If no pickable object is found
null
is returned.. - See Also:
-
pickAllSorted
Deprecated.Returns a sorted array of references to all the Pickable items below theBranchGroup
(specified in the PickObject constructor) that intersect with the ray that starts at the viewer position and points into the scene in the direction of (xpos, ypos) in the window space. Element [0] references the item closest to viewer.- Parameters:
xpos
- The value along the x-axis.ypos
- The value along the y-axis.flag
- Specifys picking by Geometry or Bounds.- Returns:
- A sorted arrayof SceneGraphPath objects that contain Objects that
were picked. The array is sorted from closest to farthest from the
viewer
If no pickable object is found
null
is returned.. - See Also:
-
pickAny
Deprecated.Returns a reference to any item that is Pickable below the specifiedBranchGroup
(specified in the PickObject constructor) which intersects with the ray that starts at the viewer position and points into the scene in the direction of (xpos, ypos) in window space.- Parameters:
xpos
- The value along the x-axis.ypos
- The value along the y-axis.flag
- Specifys picking by Geometry or Bounds.- Returns:
- A SceneGraphPath of an object that was picked. This is not
guarenteed to return the same result for multiple picks
If no pickable object is found
null
is returned.. - See Also:
-
pickClosest
Deprecated.Returns a reference to the item that is closest to the viewer and is Pickable below theBranchGroup
(specified in the PickObject constructor) which intersects with the ray that starts at the viewer position and points into the scene in the direction of (xpos, ypos) in the window space.- Parameters:
xpos
- The value along the x-axis.ypos
- The value along the y-axis.flag
- Specifys picking by Geometry or Bounds.- Returns:
- A SceneGraphPath which contains the closest pickable object.
If no pickable object is found,
null
is returned. - See Also:
-
pickNode
Deprecated.Returns a reference to a Pickable Node that is of the specified type that is contained in the specified SceneGraphPath. If more than one node of the same type is encountered, the node closest to the terminal node of SceneGraphPath will be returned.- Parameters:
sgPath
- the SceneGraphPath to be traversed.flags
- the Node types interested in picking.- Returns:
- the first occurrence of the specified Node type
starting from the terminal node of SceneGraphPath.
If no pickable object is found of the specifed types,
null
is returned.
-
pickNode
Deprecated.Returns a reference to a Pickable Node that is of the specified type that is contained in the specified SceneGraphPath. The Node returned is the nthoccurrence
of a Node that is of the specified type.- Parameters:
sgPath
- the SceneGraphPath to be traversed.flags
- the Node types interested.occurrence
- the occurrence of a Node that matches the specified type to return. Anoccurrence
of 1 means to return the first occurrence of that object type (the object closest to the Locale).- Returns:
- the nth
occurrence
of a Node of typeflags
, starting from the Locale. If no pickable object is found,null
is returned.
-
com.sun.j3d.utils.picking.PickCanvas