|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.rico.engine.geometry.collision.picking.OGLMeshPicker
public class OGLMeshPicker
This class can be used for picking meshes in the scene. It implements the singleton design pattern.
Method Summary | |
---|---|
static OGLMeshPicker |
getInstance()
Returns the singleton instance of the OGLMeshPicker |
AbstractMesh |
getMesh(java.util.List<AbstractMesh> meshes,
int screenX,
int screenY)
Returns the mesh that was clicked on, if it is set to be pickable. |
AbstractMesh |
getMeshAtBack(java.util.List<AbstractMesh> meshes,
int screenX,
int screenY)
Returns the mesh that lies at back to the viewer at most. |
AbstractMesh |
getMeshInFront(java.util.List<AbstractMesh> meshes,
int screenX,
int screenY)
Returns the mesh that lies in front to the viewer at most. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static OGLMeshPicker getInstance()
public AbstractMesh getMesh(java.util.List<AbstractMesh> meshes, int screenX, int screenY)
MeshPickerIface
null
.
getMesh
in interface MeshPickerIface
meshes
- meshes to take into consideration for pickingscreenX
- x-position on screenscreenY
- y-position on screen
public AbstractMesh getMeshInFront(java.util.List<AbstractMesh> meshes, int screenX, int screenY)
null
.
meshes
- meshes to take into consideration for pickingscreenX
- x-position on screenscreenY
- y-position on screen
public AbstractMesh getMeshAtBack(java.util.List<AbstractMesh> meshes, int screenX, int screenY)
null
.
meshes
- meshes to take into consideration for pickingscreenX
- x-position on screenscreenY
- y-position on screen
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |