behaviorPick
Attribute
|
Name |
Type |
Description |
|
tool |
int |
|
|
debug |
boolean |
|
|
SHAPE3D |
int |
|
|
MORPH |
int |
|
|
PRIMITIVE |
int |
|
|
LINK |
int |
|
|
GROUP |
int |
|
|
TRANSFORM_GROUP |
int |
|
|
BRANCH_GROUP |
int |
|
|
SWITCH |
int |
|
|
distance[] |
double |
|
|
position[] |
int |
|
1.2 Operations
|
Name |
Description |
|
behaviorPick |
|
|
updateScene |
|
|
setTool |
|
|
initialize |
|
|
processStimulus |
|
|
pickClosest |
Returns a reference
to the item that is closest to the viewer and is Pickable below the BranchGroup
(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.
@param xpos The value along the x-axis. @param ypos The value along the y-axis. @return A SceneGraphPath which contains the closest pickable object. If no pickable object is found, null is returned. @see SceneGraphPath |
|
sort |
|
|
quicksort |
|
|
pickGeomAllSorted |
|
|
pickNode |
|
|
generatePickRay |
Creates a PickRay
that starts at the viewer position and points into the scene in the direction
of (xpos, ypos) specified in window space. PickRay is a class that contains
Point3d origin and Vector3d direction
@param xpos The value along the x-axis. @param ypos The value along the y-axis. @return A PickShape object that is the constructed PickRay. |



