|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PickableObject
A marker interface that indicates the object that implements is capable of supporting pick intersection requests.
The end user can call these objects requesting a pick be made using the given request object. From that request, processing will be performed and the found objects are returned as part of the picking request.
Pick intersection tests allows the classification of various picking types
through the use of bit masks. The masks are bitwise-OR'd together to form
the set of pickable capabilities. A number of pre-defined pick masks are
provided in the PickRequest
class. Since the OR operation is used,
there are a total of 32 different "types" of pickable objects that could be
defined by the system.
Field Summary | |
---|---|
static int |
COLLIDABLE_OBJECT
Define the picking as being collidable. |
static int |
GENERAL_OBJECT
Find any general pickable node type. |
static int |
PROXIMITY_OBJECT
Define the picking as being an object that is near something. |
static int |
VISIBLE_OBJECT
Define the picking as being an object that is visible. |
Method Summary | |
---|---|
int |
getPickMask()
Get the current pickable state mask 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 |
setPickMask(int state)
Set the node as being pickable currently using the given bit mask. |
Field Detail |
---|
static final int GENERAL_OBJECT
static final int COLLIDABLE_OBJECT
static final int VISIBLE_OBJECT
static final int PROXIMITY_OBJECT
Method Detail |
---|
void setPickMask(int state)
state
- A bit mask of available options to pick forint getPickMask()
void pickBatch(PickRequest[] req, int numRequests) throws NotPickableException, InvalidPickTimingException
req
- The list of picks to be made, starting at this objectnumRequests
- The number of valid pick requests to process
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 methodvoid pickSingle(PickRequest req) throws NotPickableException, InvalidPickTimingException
req
- The details of the pick to be made
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
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |