Class PickingSupport

java.lang.Object
org.jzy3d.chart.controllers.mouse.picking.PickingSupport

public class PickingSupport extends Object
Author:
Martin Pernollet
  • Field Details

    • BRUSH_SIZE

      public static int BRUSH_SIZE
    • BUFFER_SIZE

      public static int BUFFER_SIZE
    • pickId

      protected static int pickId
    • pickables

      protected Map<Integer,Pickable> pickables
    • verticesListener

      protected List<IObjectPickedListener> verticesListener
    • pickableTargets

      protected Map<Pickable,Object> pickableTargets
    • brushSize

      protected int brushSize
    • bufferSize

      protected int bufferSize
    • perf

      protected TicToc perf
    • SIZEOF_INT

      public static final int SIZEOF_INT
      Picked 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

      public boolean addObjectPickedListener(IObjectPickedListener listener)
    • removeObjectPickedListener

      public boolean removeObjectPickedListener(IObjectPickedListener listener)
    • fireObjectPicked

      protected void fireObjectPicked(List<? extends Object> v)
    • registerDrawableObject

      public void registerDrawableObject(Drawable drawable, Object model)
    • registerPickableObject

      public void registerPickableObject(Pickable pickable, Object model)
    • getPickableObject

      public void getPickableObject(int id)
    • pickObjects

      public void pickObjects(IPainter painter, View view, Graph graph, IntegerCoord2d pickPoint)
    • newDirectIntBuffer

      public static IntBuffer newDirectIntBuffer(int numElements)
      Picked from JOGL Buffers class.
    • newDirectByteBuffer

      public static ByteBuffer newDirectByteBuffer(int numElements)
      Picked from JOGL Buffers class.
    • nativeOrder

      public static ByteBuffer nativeOrder(ByteBuffer buf)
      Picked from JOGL Buffers class.
    • getLastPickPerfMs

      public double getLastPickPerfMs()
    • setCurrentName

      protected void setCurrentName(IPainter painter, Pickable pickable)
    • releaseCurrentName

      protected void releaseCurrentName(IPainter painter)
    • processHits

      protected List<Pickable> processHits(int hits, int[] buffer)
      Provides the number of picked object by a click.
    • unRegisterAllPickableObjects

      public void unRegisterAllPickableObjects()