
Aviatrix3D 2.1.0 

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 
public interface LeafPickTarget
A picking target that represents real geometry that must be picked directly against using one of a couple of specific intersection tests.
This class is called for picking resolution when there is a specific requirement for picking against the real geometry rather than just the bounds of the containing shape. Bounds picks are simple and relatively fast, taken care of by the checkPickBounds() method. If that has passed then the methods in this interface will be directly called if the pick request asks for them.
Examples of this would be any form of polygonal geometry.
When the methods are called on this interface you can assume that the bounds have already been checked, so go straight into the polygonal processing.
Field Summary 

Fields inherited from interface org.j3d.aviatrix3d.picking.PickTarget 

CUSTOM_PICK_TYPE, GROUP_PICK_TYPE, LEAF_PICK_TYPE, SINGLE_PICK_TYPE 
Method Summary  

boolean 
pickLineRay(float[] origin,
float[] direction,
boolean findAny,
float[] dataOut,
int dataOutFlags)
Check for all intersections against this geometry using a line ray and return the exact distance away of the closest picking point. 
boolean 
pickLineSegment(float[] start,
float[] end,
boolean findAny,
float[] dataOut,
int dataOutFlags)
Check for all intersections against this geometry using a line segment and return the exact distance away of the closest picking point. 
Methods inherited from interface org.j3d.aviatrix3d.picking.PickTarget 

checkPickMask, getPickableBounds, getPickTargetType 
Method Detail 

boolean pickLineSegment(float[] start, float[] end, boolean findAny, float[] dataOut, int dataOutFlags) throws NotPickableException
start
 The start point of the segmentend
 The end point of the segmentfindAny
 True if it only has to find a single intersection and can
exit as soon as it finds the first intersection. False if it must find
the closest polygondataOut
 An array to put the data in for the intersection. Exact
format is described by the flagsdataOutFlags
 A set of derivedclass specific flags describing what
data should be included in the output array
NotPickableException
 This object has been marked as non pickable,
but you decided to try to call the method anywayboolean pickLineRay(float[] origin, float[] direction, boolean findAny, float[] dataOut, int dataOutFlags) throws NotPickableException
origin
 The start point of the raydirection
 The direction vector of the rayfindAny
 True if it only has to find a single intersection and can
exit as soon as it finds the first intersection. False if it must find
the closest polygondataOut
 An array to put the data in for the intersection. Exact
format is described by the flagsdataOutFlags
 A set of derivedclass specific flags describing what
data should be included in the output array
NotPickableException
 This object has been marked as non pickable,
but you decided to try to call the method anyway

Aviatrix3D 2.1.0 

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 