|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Globe
Method Summary | |
---|---|
Matrix |
computeModelCoordinateOriginTransform(Angle latitude,
Angle longitude,
double metersElevation)
|
Matrix |
computeModelCoordinateOriginTransform(Position position)
|
Vec4 |
computeNorthPointingTangentAtLocation(Angle latitude,
Angle longitude)
|
Vec4 |
computePointFromLocation(LatLon location)
|
Vec4 |
computePointFromPosition(Angle latitude,
Angle longitude,
double metersElevation)
|
Vec4 |
computePointFromPosition(LatLon latLon,
double metersElevation)
|
Vec4 |
computePointFromPosition(Position position)
|
Position |
computePositionFromPoint(Vec4 point)
|
Vec4 |
computeSurfaceNormalAtLocation(Angle latitude,
Angle longitude)
|
Vec4 |
computeSurfaceNormalAtPoint(Vec4 point)
|
Matrix |
computeSurfaceOrientationAtPosition(Angle latitude,
Angle longitude,
double metersElevation)
Returns the cartesian transform Matrix that maps model coordinates to a local coordinate system at (latitude, longitude, metersElevation). |
Matrix |
computeSurfaceOrientationAtPosition(Position position)
Returns the cartesian transform Matrix that maps model coordinates to a local coordinate system at (latitude, longitude, metersElevation). |
double |
getEccentricitySquared()
|
double |
getElevation(Angle latitude,
Angle longitude)
|
ElevationModel |
getElevationModel()
Indicates this globe's elevation model. |
double |
getElevations(Sector sector,
List<? extends LatLon> latlons,
double targetResolution,
double[] elevations)
|
double |
getEquatorialRadius()
|
Extent |
getExtent()
|
GlobeStateKey |
getGlobeStateKey()
Returns a typed state key identifying this globe's current configuration. |
GlobeStateKey |
getGlobeStateKey(DrawContext dc)
Returns a typed state key identifying this globe's current configuration. |
Position |
getIntersectionPosition(Line line)
|
double |
getMaxElevation()
|
double |
getMaximumRadius()
|
double[] |
getMinAndMaxElevations(Angle latitude,
Angle longitude)
Returns the minimum and maximum elevations at a specified location on this Globe. |
double[] |
getMinAndMaxElevations(Sector sector)
Returns the minimum and maximum elevations within a specified sector on this Globe. |
double |
getMinElevation()
|
double |
getPolarRadius()
|
double |
getRadiusAt(Angle latitude,
Angle longitude)
|
double |
getRadiusAt(LatLon latLon)
Indicates this globe's radius at a specified location. |
Object |
getStateKey(DrawContext dc)
Returns a state key identifying this globe's current configuration. |
Tessellator |
getTessellator()
Returns this globe's current tessellator. |
Intersection[] |
intersect(Line line,
double altitude)
Intersects a specified line with this globe. |
Intersection[] |
intersect(Triangle triangle,
double altitude)
Intersects a specified triangle with the globe. |
boolean |
isPointAboveElevation(Vec4 point,
double elevation)
Determines whether a point is above a given elevation. |
void |
setElevationModel(ElevationModel elevationModel)
Specifies this globe's elevation model. |
void |
setTessellator(Tessellator tessellator)
Specifies this globe's tessellator. |
SectorGeometryList |
tessellate(DrawContext dc)
Tessellate this globe for the currently visible region. |
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 |
Methods inherited from interface gov.nasa.worldwind.event.MessageListener |
---|
onMessage |
Methods inherited from interface gov.nasa.worldwind.geom.Extent |
---|
getCenter, getDiameter, getEffectiveRadius, getProjectedArea, getRadius, intersect, intersects, intersects, intersects |
Method Detail |
---|
Matrix computeModelCoordinateOriginTransform(Angle latitude, Angle longitude, double metersElevation)
computeSurfaceOrientationAtPosition(gov.nasa.worldwind.geom.Angle, gov.nasa.worldwind.geom.Angle, double)
Matrix computeModelCoordinateOriginTransform(Position position)
computeSurfaceOrientationAtPosition(gov.nasa.worldwind.geom.Position)
Vec4 computeNorthPointingTangentAtLocation(Angle latitude, Angle longitude)
Vec4 computePointFromLocation(LatLon location)
Vec4 computePointFromPosition(Angle latitude, Angle longitude, double metersElevation)
Vec4 computePointFromPosition(LatLon latLon, double metersElevation)
Vec4 computePointFromPosition(Position position)
Position computePositionFromPoint(Vec4 point)
Vec4 computeSurfaceNormalAtLocation(Angle latitude, Angle longitude)
Vec4 computeSurfaceNormalAtPoint(Vec4 point)
Matrix computeSurfaceOrientationAtPosition(Angle latitude, Angle longitude, double metersElevation)
latitude
- the latitude of the position.longitude
- the longitude of the position.metersElevation
- the number of meters above or below mean sea level.
Matrix computeSurfaceOrientationAtPosition(Position position)
position
- the latitude, longitude, and number of meters above or below mean sea level.
double getEccentricitySquared()
double getElevation(Angle latitude, Angle longitude)
ElevationModel getElevationModel()
double getElevations(Sector sector, List<? extends LatLon> latlons, double targetResolution, double[] elevations)
double getEquatorialRadius()
Extent getExtent()
GlobeStateKey getGlobeStateKey()
IllegalArgumentException
- if the draw context is null.GlobeStateKey getGlobeStateKey(DrawContext dc)
dc
- the current draw context.
IllegalArgumentException
- if the draw context is null.Position getIntersectionPosition(Line line)
double getMaxElevation()
double getMaximumRadius()
double[] getMinAndMaxElevations(Angle latitude, Angle longitude)
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, or zero if this Globe has no elevation model.double[] getMinAndMaxElevations(Sector sector)
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, or zero if this Globe has no elevation model.double getMinElevation()
double getPolarRadius()
double getRadiusAt(Angle latitude, Angle longitude)
double getRadiusAt(LatLon latLon)
latLon
- the location of interest.
Object getStateKey(DrawContext dc)
dc
- the current draw context.
IllegalArgumentException
- if the draw context is null.Tessellator getTessellator()
Intersection[] intersect(Line line, double altitude)
line
- the line to intersect.altitude
- a distance in meters to expand the globe's equatorial and polar radii prior to performing the
intersection.
line
is null.Intersection[] intersect(Triangle triangle, double altitude)
triangle
- the triangle to intersect.altitude
- a distance in meters to expand the globe's equatorial and polar radii prior to performing the
intersection.
triangle
is null.boolean isPointAboveElevation(Vec4 point, double elevation)
point
- the Vec4
point to test. If null, this method returns false.elevation
- the elevation to test for.
void setElevationModel(ElevationModel elevationModel)
elevationModel
- this globe's elevation model. May be null to indicate no elevation model.void setTessellator(Tessellator tessellator)
tessellator
- the new tessellator. Specify null to use the default tessellator.SectorGeometryList tessellate(DrawContext dc)
dc
- the current draw context.
IllegalStateException
- if the globe has no tessellator and a default tessellator cannot be created.
|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |