Interface ElementsBuffer

All Superinterfaces:
DataBuffer
All Known Implementing Classes:
G2DElementsBuffer, JoGLElementsBuffer

public interface ElementsBuffer extends DataBuffer
Author:
Pierre Lando
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    Return the data.
    int
    Return the number of coordinate for one element.
    void
    setData(float[] data, int elementSize)
    Set the data.
    void
    setData(Float[] data, int elementSize)
    Set the data.
    void
    setData(FloatBuffer data, int elementsSize)
    Set the data.

    Methods inherited from interface org.scilab.forge.scirenderer.buffers.DataBuffer

    getSize
  • Method Details

    • setData

      void setData(float[] data, int elementSize)
      Set the data.
      Parameters:
      data - the new data.
      elementSize - the size of data elements.
    • setData

      void setData(Float[] data, int elementSize)
      Set the data.
      Parameters:
      data - the new data.
      elementSize - the size of data elements.
    • setData

      void setData(FloatBuffer data, int elementsSize)
      Set the data.
      Parameters:
      data - the new data.
      elementsSize - the size of data elements.
    • getData

      FloatBuffer getData()
      Description copied from interface: DataBuffer
      Return the data.
      Specified by:
      getData in interface DataBuffer
      Returns:
      the data.
    • getElementsSize

      int getElementsSize()
      Return the number of coordinate for one element.
      Returns:
      the number of coordinate for one element.
    • clear

      void clear()
      Specified by:
      clear in interface DataBuffer