Class PickingSupport
java.lang.Object
org.jzy3d.chart.controllers.mouse.picking.PickingSupport
- Author:
- Martin Pernollet
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
protected int
static int
protected int
protected static int
protected TicToc
protected static int
static final int
Picked from JOGL Buffers class.protected List<IObjectPickedListener>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addObjectPickedListener
(IObjectPickedListener listener) protected void
fireObjectPicked
(List<? extends Object> v) double
void
getPickableObject
(int id) static ByteBuffer
nativeOrder
(ByteBuffer buf) Picked from JOGL Buffers class.static ByteBuffer
newDirectByteBuffer
(int numElements) Picked from JOGL Buffers class.static IntBuffer
newDirectIntBuffer
(int numElements) Picked from JOGL Buffers class.void
pickObjects
(IPainter painter, View view, Graph graph, IntegerCoord2d pickPoint) processHits
(int hits, int[] buffer) Provides the number of picked object by a click.void
registerDrawableObject
(Drawable drawable, Object model) void
registerPickableObject
(Pickable pickable, Object model) protected void
releaseCurrentName
(IPainter painter) boolean
protected void
setCurrentName
(IPainter painter, Pickable pickable) void
-
Field Details
-
BRUSH_SIZE
public static int BRUSH_SIZE -
BUFFER_SIZE
public static int BUFFER_SIZE -
pickId
protected static int pickId -
pickables
-
verticesListener
-
pickableTargets
-
brushSize
protected int brushSize -
bufferSize
protected int bufferSize -
perf
-
SIZEOF_INT
public static final int SIZEOF_INTPicked from JOGL Buffers class.- See Also:
-
method
protected static int method
-
-
Constructor Details
-
PickingSupport
public PickingSupport() -
PickingSupport
public PickingSupport(int brushSize) -
PickingSupport
public PickingSupport(int brushSize, int bufferSize)
-
-
Method Details
-
addObjectPickedListener
-
removeObjectPickedListener
-
fireObjectPicked
-
registerDrawableObject
-
registerPickableObject
-
getPickableObject
public void getPickableObject(int id) -
pickObjects
-
newDirectIntBuffer
Picked from JOGL Buffers class. -
newDirectByteBuffer
Picked from JOGL Buffers class. -
nativeOrder
Picked from JOGL Buffers class. -
getLastPickPerfMs
public double getLastPickPerfMs() -
setCurrentName
-
releaseCurrentName
-
processHits
Provides the number of picked object by a click. -
unRegisterAllPickableObjects
public void unRegisterAllPickableObjects()
-