Package org.esa.snap.rcp.pixelinfo
Class PixelInfoViewUtils
- java.lang.Object
-
- org.esa.snap.rcp.pixelinfo.PixelInfoViewUtils
-
public class PixelInfoViewUtils extends Object
Utility class to compute pixel value in any raster
-
-
Constructor Summary
Constructors Constructor Description PixelInfoViewUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Point2D.Double
computeScenePos(ProductSceneView view, int x, int y)
Compute the scene position according to the view rasterstatic String
getPixelValue(Point2D.Double scenePos, RasterDataNode raster)
Get the pixel value for the current raster
-
-
-
Method Detail
-
computeScenePos
public static Point2D.Double computeScenePos(ProductSceneView view, int x, int y)
Compute the scene position according to the view raster- Parameters:
view
- the current viewx
- the current pixel's X coordinatey
- the current pixel's Y coordinate- Returns:
- the scene position
-
getPixelValue
public static String getPixelValue(Point2D.Double scenePos, RasterDataNode raster)
Get the pixel value for the current raster- Parameters:
scenePos
- the scene position (in another raster)raster
- the current raster for which we want to find the pixel value- Returns:
- the pixel value for the current raster
-
-