Package org.esa.snap.core.gpf.pointop
Interface WritableSample
- All Superinterfaces:
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 TypeMethodDescriptionvoidset(boolean v) Sets this sample to the givenbooleanvalue.voidset(double v) Sets this sample to the givendoublevalue.voidset(float v) Sets this sample to the givenfloatvalue.voidset(int v) Sets this sample to the givenintvalue.voidset(int bitIndex, boolean v) Sets the sample at the given bit index to the givenbitvalue.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 givenbitvalue.- 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 givenbooleanvalue.- Parameters:
v- The new value.
-
set
void set(int v) Sets this sample to the givenintvalue.- Parameters:
v- The new value.
-
set
void set(float v) Sets this sample to the givenfloatvalue.- Parameters:
v- The new value.
-
set
void set(double v) Sets this sample to the givendoublevalue.- Parameters:
v- The new value.
-