de.jreality.scene.pick
Interface PickResult

All Known Implementing Classes:
Hit

public interface PickResult

Author:
brinkman TODO document PickResult TODO add support for picking vertices, edges, faces, etc.

Field Summary
static int PICK_TYPE_FACE
           
static int PICK_TYPE_LINE
           
static int PICK_TYPE_OBJECT
           
static int PICK_TYPE_POINT
           
 
Method Summary
 int getIndex()
          returns the index of the picked face/edge/point
 double[] getObjectCoordinates()
           
 SceneGraphPath getPickPath()
           
 int getPickType()
          returns if the type of the pick: - PICK_TYPE_OBJECT - PICK_TYPE_FACE - PICK_TYPE_LINE - PICK_TYPE_POINT
 double[] getTextureCoordinates()
          returns texture coordinates if available.
 double[] getWorldCoordinates()
           
 

Field Detail

PICK_TYPE_POINT

static final int PICK_TYPE_POINT
See Also:
Constant Field Values

PICK_TYPE_LINE

static final int PICK_TYPE_LINE
See Also:
Constant Field Values

PICK_TYPE_FACE

static final int PICK_TYPE_FACE
See Also:
Constant Field Values

PICK_TYPE_OBJECT

static final int PICK_TYPE_OBJECT
See Also:
Constant Field Values
Method Detail

getPickPath

SceneGraphPath getPickPath()

getWorldCoordinates

double[] getWorldCoordinates()
Returns:
pick point in world coordinates

getObjectCoordinates

double[] getObjectCoordinates()
Returns:
pick point in object coordinates

getIndex

int getIndex()
returns the index of the picked face/edge/point

Returns:
the index or -1 if not available

getPickType

int getPickType()
returns if the type of the pick: - PICK_TYPE_OBJECT - PICK_TYPE_FACE - PICK_TYPE_LINE - PICK_TYPE_POINT

Returns:

getTextureCoordinates

double[] getTextureCoordinates()
returns texture coordinates if available.

Returns:
the coordinates of null.