Package org.esa.snap.core.gpf.pointop
Interface WritableSample
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
set(boolean v)
Sets this sample to the givenboolean
value.void
set(double v)
Sets this sample to the givendouble
value.void
set(float v)
Sets this sample to the givenfloat
value.void
set(int v)
Sets this sample to the givenint
value.void
set(int bitIndex, boolean v)
Sets the sample at the given bit index to the givenbit
value.-
Methods inherited from interface org.esa.snap.core.gpf.pointop.Sample
getBit, getBoolean, getDataType, getDouble, getFloat, getIndex, getInt, getNode
-
-
-
-
Method Detail
-
set
void set(int bitIndex, boolean v)
Sets the sample at the given bit index to the givenbit
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 givenboolean
value.- Parameters:
v
- The new value.
-
set
void set(int v)
Sets this sample to the givenint
value.- Parameters:
v
- The new value.
-
set
void set(float v)
Sets this sample to the givenfloat
value.- Parameters:
v
- The new value.
-
set
void set(double v)
Sets this sample to the givendouble
value.- Parameters:
v
- The new value.
-
-