public class DiffuseLightShadingAlgorithm extends java.lang.Object implements ShadingAlgorithm
SimpleShadingAlgorithm
and to the standard neutral value that is filled in when there is no hillshading but the always-option is set to true in the theme.
More accurate than SimpleShadingAlgorithm, but maybe not as useful for visualizing both softly rolling hills and dramatic mountain ranges at the same time.
ShadingAlgorithm.RawHillTileSource, ShadingAlgorithm.RawShadingResult| Constructor and Description |
|---|
DiffuseLightShadingAlgorithm() |
DiffuseLightShadingAlgorithm(float heightAngle)
height angle of light source over ground (in degrees 0..90)
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
getAxisLenght(org.mapsforge.map.layer.hills.HgtCache.HgtFileInfo source) |
double |
getLightHeight() |
int |
hashCode() |
java.lang.String |
toString() |
ShadingAlgorithm.RawShadingResult |
transformToByteBuffer(org.mapsforge.map.layer.hills.HgtCache.HgtFileInfo source,
int padding) |
public DiffuseLightShadingAlgorithm()
public DiffuseLightShadingAlgorithm(float heightAngle)
public double getLightHeight()
public int getAxisLenght(org.mapsforge.map.layer.hills.HgtCache.HgtFileInfo source)
getAxisLenght in interface ShadingAlgorithmpublic ShadingAlgorithm.RawShadingResult transformToByteBuffer(org.mapsforge.map.layer.hills.HgtCache.HgtFileInfo source, int padding)
transformToByteBuffer in interface ShadingAlgorithmpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object