j3d.org Aviatrix3D

org.j3d.aviatrix3d
Interface PickableObject

All Known Implementing Classes:
Geometry, Group, Shape3D, SharedNode

public interface PickableObject

A marker interface that indicates the object that implements is capable of supporting pick intersection tests.

Version:
$Revision: 1.3 $
Author:
Justin Couch

Method Summary
 boolean isPickable()
          Get the current pickable state of this object
 void pickBatch(PickRequest[] req, int numRequests)
          Check for all intersections against this geometry and it's children to see if there is an intersection with the given set of requests.
 void pickSingle(PickRequest req)
          Check for all intersections against this geometry and it's children to see if there is an intersection with the given set of requests.
 void setPickable(boolean state)
          Set the node as being pickable currently.
 

Method Detail

setPickable

public void setPickable(boolean state)
Set the node as being pickable currently.

Parameters:
state - true to make this node pickable

isPickable

public boolean isPickable()
Get the current pickable state of this object

Returns:
true if this node is currently pickable

pickBatch

public void pickBatch(PickRequest[] req,
                      int numRequests)
               throws NotPickableException,
                      InvalidPickTimingException
Check for all intersections against this geometry and it's children to see if there is an intersection with the given set of requests.

Parameters:
req - The list of picks to be made, starting at this object
numRequests - The number of valid pick requests to process
Throws:
NotPickableException - This object has been marked as non pickable, but you decided to try to call the method anyway
InvalidPickTimingException - An attempt was made to pick outside of the ApplicationUpdateObserver callback method

pickSingle

public void pickSingle(PickRequest req)
                throws NotPickableException,
                       InvalidPickTimingException
Check for all intersections against this geometry and it's children to see if there is an intersection with the given set of requests.

Parameters:
req - The details of the pick to be made
Throws:
NotPickableException - This object has been marked as non pickable, but you decided to try to call the method anyway
InvalidPickTimingException - An attempt was made to pick outside of the ApplicationUpdateObserver callback method

j3d.org Aviatrix3D

Latest Info from http://aviatrix3d.j3d.org/
Copyright © 2003 - j3d.org