org.esa.beam.framework.gpf.pointop
Interface Sample
- All Known Subinterfaces:
- WritableSample
public interface Sample
A sample represents the (geophysical) value of a RasterDataNode at a certain a certain pixel position.
This interface is not intended to be implemented by clients.
- Since:
- BEAM 4.9
- Author:
- Norman Fomferra
getNode
RasterDataNode getNode()
- Returns:
- The raster data node to which this sample belongs.
getIndex
int getIndex()
- Returns:
- The index of the sample defined by the
defineSample()
method and used within the sample arrays passed to
computeSample() or
computePixel() methods.
getDataType
int getDataType()
- Returns:
- The geophysical data type of this sample.
- See Also:
RasterDataNode.getGeophysicalDataType()
getBit
boolean getBit(int bitIndex)
- Interprets an integer sample as a sequence of bits (flags).
- 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.
- Returns:
- The sample value as
bit at given bit index.
getBoolean
boolean getBoolean()
- Returns:
- The sample value as
boolean.
getInt
int getInt()
- Returns:
- The sample value as
int.
getFloat
float getFloat()
- Returns:
- The sample value as
float.
getDouble
double getDouble()
- Returns:
- The sample value as
double.
Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.