Class ToFloatNoScaling


public final class ToFloatNoScaling extends VoxelsConverter<FloatBuffer>
Converts voxel buffers to a FloatBuffer without scaling any values.
Author:
Owen Feehan
  • Constructor Details

    • ToFloatNoScaling

      public ToFloatNoScaling()
  • Method Details

    • convertUnsignedByte

      protected void convertUnsignedByte(UnsignedByteBuffer in, FloatBuffer out)
      Description copied from class: VoxelsConverter
      Copies a value from the current position in a UnsignedByteBuffer to the current position in a buffer of type T.
      Specified by:
      convertUnsignedByte in class VoxelsConverter<FloatBuffer>
      Parameters:
      in - the current position of this buffer gives the value to convert, and the position is incremented.
      out - the converted value is written to the current position of this buffer, and the position is incremented.
    • convertUnsignedShort

      protected void convertUnsignedShort(UnsignedShortBuffer in, FloatBuffer out)
      Description copied from class: VoxelsConverter
      Copies a value from the current position in a UnsignedShortBuffer to the current position in a buffer of type T.
      Specified by:
      convertUnsignedShort in class VoxelsConverter<FloatBuffer>
      Parameters:
      in - the current position of this buffer gives the value to convert, and the position is incremented.
      out - the converted value is written to the current position of this buffer, and the position is incremented.
    • convertUnsignedInt

      protected void convertUnsignedInt(UnsignedIntBuffer in, FloatBuffer out)
      Description copied from class: VoxelsConverter
      Copies a value from the current position in a UnsignedIntBuffer to the current position in a buffer of type T.
      Specified by:
      convertUnsignedInt in class VoxelsConverter<FloatBuffer>
      Parameters:
      in - the current position of this buffer gives the value to convert, and the position is incremented.
      out - the converted value is written to the current position of this buffer, and the position is incremented.
    • convertFloat

      protected void convertFloat(FloatBuffer in, FloatBuffer out)
      Description copied from class: VoxelsConverter
      Copies a value from the current position in a FloatBuffer to the current position in a buffer of type T.
      Specified by:
      convertFloat in class VoxelsConverter<FloatBuffer>
      Parameters:
      in - the current position of this buffer gives the value to convert, and the position is incremented.
      out - the converted value is written to the current position of this buffer, and the position is incremented.