Interface WritableSample

All Superinterfaces:
Sample

public interface WritableSample extends Sample
A writable sample is a Sample that can change its value.

This interface is not intended to be implemented by clients.

Since:
BEAM 4.9
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    set(boolean v)
    Sets this sample to the given boolean value.
    void
    set(double v)
    Sets this sample to the given double value.
    void
    set(float v)
    Sets this sample to the given float value.
    void
    set(int v)
    Sets this sample to the given int value.
    void
    set(int bitIndex, boolean v)
    Sets the sample at the given bit index to the given bit value.

    Methods inherited from interface org.esa.snap.core.gpf.pointop.Sample

    getBit, getBoolean, getDataType, getDouble, getFloat, getIndex, getInt, getNode
  • Method Details

    • set

      void set(int bitIndex, boolean v)
      Sets the sample at the given bit index to the given bit value.
      Parameters:
      bitIndex - The bit index. Valid range is zero to n-1, where n is 8, 16, 32, 64, depending on the actual raster data type.
      v - The new value.
    • set

      void set(boolean v)
      Sets this sample to the given boolean value.
      Parameters:
      v - The new value.
    • set

      void set(int v)
      Sets this sample to the given int value.
      Parameters:
      v - The new value.
    • set

      void set(float v)
      Sets this sample to the given float value.
      Parameters:
      v - The new value.
    • set

      void set(double v)
      Sets this sample to the given double value.
      Parameters:
      v - The new value.