|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.WWObjectImpl
gov.nasa.worldwind.terrain.AbstractElevationModel
gov.nasa.worldwind.terrain.LocalElevationModel
public class LocalElevationModel
| Nested Class Summary | |
|---|---|
protected static class |
LocalElevationModel.LocalTile
|
| Field Summary | |
|---|---|
protected double[] |
extremeElevations
|
protected CopyOnWriteArrayList<LocalElevationModel.LocalTile> |
tiles
|
| Fields inherited from class gov.nasa.worldwind.terrain.AbstractElevationModel |
|---|
missingDataFlag, missingDataValue |
| Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl |
|---|
changeSupport |
| Constructor Summary | |
|---|---|
LocalElevationModel()
|
|
| Method Summary | |
|---|---|
void |
addElevations(String filePath)
|
void |
addElevations(String filePath,
Sector sector,
int width,
int height)
|
protected void |
addElevationsFromWorldFiles(String filePath)
|
protected void |
adjustMinMax(LocalElevationModel.LocalTile tile)
|
boolean |
contains(Angle latitude,
Angle longitude)
Indicates whether a specified location is within the elevation model's domain. |
protected LocalElevationModel.LocalTile |
findTile(double latRadians,
double lonRadians)
|
double |
getBestResolution(Sector sector)
Indicates the best resolution attainable for a specified sector. |
double |
getElevations(Sector sector,
List<? extends LatLon> latlons,
double targetResolution,
double[] buffer)
Returns the elevations of a collection of locations. |
double[] |
getExtremeElevations(Angle latitude,
Angle longitude)
Returns the minimum and maximum elevations at a specified location. |
double[] |
getExtremeElevations(Sector sector)
Returns the minimum and maximum elevations within a specified sector of the elevation model. |
double |
getMaxElevation()
Returns the maximum elevation contained in the elevevation model. |
double |
getMinElevation()
Returns the minimum elevation contained in the elevevation model. |
double |
getUnmappedElevation(Angle latitude,
Angle longitude)
Returns the elevation at a specified location, but without mapping missing data to the elevation model's missing data replacement value. |
int |
intersects(Sector sector)
Indicates whether the elevation model corresponds to a specified sector. |
protected double |
lookupElevation(double latRadians,
double lonRadians)
|
| Methods inherited from class gov.nasa.worldwind.terrain.AbstractElevationModel |
|---|
getDetailHint, getElevation, getMissingDataReplacement, getMissingDataSignal, getName, getRestorableState, isNetworkRetrievalEnabled, restoreState, setMissingDataReplacement, setMissingDataSignal, setName, setNetworkRetrievalEnabled, toString |
| Methods inherited from class gov.nasa.worldwind.WWObjectImpl |
|---|
propertyChange |
| Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl |
|---|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface gov.nasa.worldwind.avlist.AVList |
|---|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
| Methods inherited from interface java.beans.PropertyChangeListener |
|---|
propertyChange |
| Field Detail |
|---|
protected double[] extremeElevations
protected CopyOnWriteArrayList<LocalElevationModel.LocalTile> tiles
| Constructor Detail |
|---|
public LocalElevationModel()
| Method Detail |
|---|
public void addElevations(String filePath)
throws IOException
IOException
public void addElevations(String filePath,
Sector sector,
int width,
int height)
throws IOException
IOException
protected void addElevationsFromWorldFiles(String filePath)
throws IOException
IOExceptionprotected void adjustMinMax(LocalElevationModel.LocalTile tile)
public boolean contains(Angle latitude,
Angle longitude)
ElevationModel
latitude - the latitude of the location in question.longitude - the longitude of the location in question.
protected LocalElevationModel.LocalTile findTile(double latRadians,
double lonRadians)
public double getBestResolution(Sector sector)
ElevationModel
sector - the sector in question. If null, the elevation model's best overall resolution is returned. This is
the best attainable at some> locations but not necessarily at all locations.
Double.MAX_VALUE if the
sector does not intersect the elevation model.
public double getElevations(Sector sector,
List<? extends LatLon> latlons,
double targetResolution,
double[] buffer)
ElevationModel
sector - the sector in question.latlons - the locations to return elevations for. A value of zero is returned if a location is
null.targetResolution - the desired horizontal resolution, in radians, of the raster or other elevation sample
from which elevations are drawn. (To compute radians from a distance, divide the distance
by the radius of the globe, ensuring that both the distance and the radius are in the
same units.)buffer - an array in which to place the returned elevations. The array must be pre-allocated and
contain at least as many elements as the list of locations.
Double.MAX_VALUE if individual elevations cannot be
determined for any of the locations.#setMissingValueSentinel(Double)
public double[] getExtremeElevations(Angle latitude,
Angle longitude)
ElevationModel
latitude - the latitude of the location in question.longitude - the longitude of the location in question.
double array indicating the minimum and maximum elevations at the specified
location, respectively. These values are the global minimum and maximum if the local minimum and
maximum values are currently unknown.public double[] getExtremeElevations(Sector sector)
ElevationModel
sector - the sector in question.
double array indicating the sector's minimum and maximum elevations,
respectively. These elements are the global minimum and maximum if the local minimum and maximum
values are currently unknown.public double getMaxElevation()
ElevationModel
public double getMinElevation()
ElevationModel
public double getUnmappedElevation(Angle latitude,
Angle longitude)
ElevationModel
latitude - the latitude of the location for which to return the elevation.longitude - the longitude of the location for which to return the elevation.
public int intersects(Sector sector)
ElevationModel
sector - the sector in question.
protected double lookupElevation(double latRadians,
double lonRadians)
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||