public class PickingSupport extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
brushSize |
protected int |
bufferSize |
protected static int |
method |
protected TicToc |
perf |
protected Map<Integer,Pickable> |
pickables |
protected Map<Pickable,Object> |
pickableTargets |
protected static int |
pickId |
protected List<IObjectPickedListener> |
verticesListener |
Constructor and Description |
---|
PickingSupport() |
PickingSupport(int brushSize) |
PickingSupport(int brushSize,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
boolean |
addObjectPickedListener(IObjectPickedListener listener) |
protected void |
fireObjectPicked(List<? extends Object> v) |
double |
getLastPickPerfMs() |
void |
getPickableObject(int id) |
void |
pickObjects(com.jogamp.opengl.GL gl,
com.jogamp.opengl.glu.GLU glu,
View view,
Graph graph,
IntegerCoord2d pickPoint) |
protected List<Pickable> |
processHits(int hits,
int[] buffer)
Provides the number of picked object by a click.
|
void |
registerDrawableObject(AbstractDrawable drawable,
Object model) |
void |
registerPickableObject(Pickable pickable,
Object model) |
protected void |
releaseCurrentName(com.jogamp.opengl.GL gl) |
boolean |
removeObjectPickedListener(IObjectPickedListener listener) |
protected void |
setCurrentName(com.jogamp.opengl.GL gl,
Pickable pickable) |
void |
unRegisterAllPickableObjects() |
protected TicToc perf
protected static int method
protected static int pickId
protected List<IObjectPickedListener> verticesListener
protected int brushSize
protected int bufferSize
public PickingSupport()
public PickingSupport(int brushSize)
public PickingSupport(int brushSize, int bufferSize)
public boolean addObjectPickedListener(IObjectPickedListener listener)
public boolean removeObjectPickedListener(IObjectPickedListener listener)
public void registerDrawableObject(AbstractDrawable drawable, Object model)
public void getPickableObject(int id)
public void pickObjects(com.jogamp.opengl.GL gl, com.jogamp.opengl.glu.GLU glu, View view, Graph graph, IntegerCoord2d pickPoint)
public double getLastPickPerfMs()
protected void setCurrentName(com.jogamp.opengl.GL gl, Pickable pickable)
protected void releaseCurrentName(com.jogamp.opengl.GL gl)
protected List<Pickable> processHits(int hits, int[] buffer)
public void unRegisterAllPickableObjects()
Copyright © 2016. All rights reserved.