Package org.esa.snap.core.datamodel
Interface Pointing
-
- All Known Implementing Classes:
TiePointGridPointing
public interface PointingThe interfacePointingwraps aGeoCodingand optionally provides more geometry information such as sun direction, satellite (view) direction and elevation at a given pixel position.All
Pointingimplementations should override theequals()andhashCode()methods.- Version:
- $Revision$ $Date$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanGetElevation()Returns whether or not the elevation is available.booleancanGetSunDir()Returns whether or not the sun direction is available.booleancanGetViewDir()Returns whether or not the viewing direction is available.doublegetElevation(PixelPos pixelPos)Gets the elevation above the given pixel position.GeoCodinggetGeoCoding()Gets the geo-coding.AngularDirectiongetSunDir(PixelPos pixelPos, AngularDirection angularDirection)Gets the vector to the sun at the given pixel position as angular direction.AngularDirectiongetViewDir(PixelPos pixelPos, AngularDirection angularDirection)Gets the vector to the observer at the given pixel position as angular direction.
-
-
-
Method Detail
-
getGeoCoding
GeoCoding getGeoCoding()
Gets the geo-coding.- Returns:
- the geo-coding, never null.
-
getSunDir
AngularDirection getSunDir(PixelPos pixelPos, AngularDirection angularDirection)
Gets the vector to the sun at the given pixel position as angular direction.- Parameters:
pixelPos- the pixel positionangularDirection- the return value to be re-used. If null, a newAngularDirectionwill be returned- Returns:
- the direction to the sun or null, if this information is not available
- See Also:
canGetSunDir()
-
getViewDir
AngularDirection getViewDir(PixelPos pixelPos, AngularDirection angularDirection)
Gets the vector to the observer at the given pixel position as angular direction.- Parameters:
pixelPos- the pixel positionangularDirection- the return value to be re-used. If null, a newAngularDirectionwill be returned- Returns:
- the direction to the observer or null, if this information is not available
- See Also:
canGetViewDir()
-
getElevation
double getElevation(PixelPos pixelPos)
Gets the elevation above the given pixel position.This method is called by the
Orthorectifierin the case that noElevationModelis available.Note that a particular implementation is not able to retrieve a meaningful elevation, it should return zero.
- Parameters:
pixelPos- the pixel position- Returns:
- the elevation at the given pixel position
- See Also:
canGetElevation()
-
canGetSunDir
boolean canGetSunDir()
Returns whether or not the sun direction is available.- Returns:
- true, if and only if so
-
canGetViewDir
boolean canGetViewDir()
Returns whether or not the viewing direction is available.- Returns:
- true, if and only if so
-
canGetElevation
boolean canGetElevation()
Returns whether or not the elevation is available.- Returns:
- true, if and only if so
-
-