|
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.globes.EllipsoidalGlobe
gov.nasa.worldwind.globes.FlatGlobe
public class FlatGlobe
Defines a Globe represented as a projection onto a plane. The projection type is modifiable.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class gov.nasa.worldwind.globes.EllipsoidalGlobe |
|---|
EllipsoidalGlobe.StateKey |
| Field Summary | |
|---|---|
static String |
PROJECTION_LAT_LON
|
static String |
PROJECTION_MERCATOR
|
static String |
PROJECTION_MODIFIED_SINUSOIDAL
|
static String |
PROJECTION_SINUSOIDAL
|
| Fields inherited from class gov.nasa.worldwind.globes.EllipsoidalGlobe |
|---|
equatorialRadius, es, polarRadius |
| Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl |
|---|
changeSupport |
| Constructor Summary | |
|---|---|
FlatGlobe(double equatorialRadius,
double polarRadius,
double es,
ElevationModel em)
|
|
| Method Summary | |
|---|---|
protected Position |
cartesianToGeodetic(Vec4 cart)
|
Cylinder |
computeBoundingCylinder(double verticalExaggeration,
Sector sector,
double minElevation,
double maxElevation)
Returns a cylinder that minimally surrounds the specified minimum and maximum elevations in the sector at a specified vertical exaggeration. |
Vec4 |
computeNorthPointingTangentAtLocation(Angle latitude,
Angle longitude)
|
Vec4 |
computeSurfaceNormalAtLocation(Angle latitude,
Angle longitude)
Returns the normal to the Globe at the specified position. |
Vec4 |
computeSurfaceNormalAtPoint(Vec4 point)
Returns the normal to the Globe at the specified cartiesian point. |
Matrix |
computeTransformToPosition(Angle latitude,
Angle longitude,
double metersElevation)
Returns the cartesian transform Matrix that maps coordinates to the local coordinate system at (latitude, longitude, metersElevation). |
Matrix |
computeTransformToPosition(Position position)
Returns the cartesian transform Matrix that maps coordinates to the local coordinate system at (latitude, longitude, metersElevation). |
protected Vec4 |
geodeticToCartesian(Angle latitude,
Angle longitude,
double metersElevation)
Maps a position to a flat world Cartesian coordinates. |
double |
getElevation(Angle latitude,
Angle longitude)
|
String |
getProjection()
|
double |
getRadiusAt(Angle latitude,
Angle longitude)
|
double |
getRadiusAt(LatLon latLon)
|
Object |
getStateKey(DrawContext dc)
|
protected Intersection[] |
intersect(Line line,
double equRadius,
double polarRadius)
|
boolean |
intersects(Line line)
Calculate whether or not line intersects this Extent. |
boolean |
intersects(Plane plane)
Calculate whether or not this Extent is intersected by plane. |
boolean |
isPointAboveElevation(Vec4 point,
double elevation)
Determines whether a point is above a given elevation |
void |
setProjection(String projection)
|
| 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, toString, 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 |
|---|
public static final String PROJECTION_LAT_LON
public static final String PROJECTION_MERCATOR
public static final String PROJECTION_MODIFIED_SINUSOIDAL
public static final String PROJECTION_SINUSOIDAL
| Constructor Detail |
|---|
public FlatGlobe(double equatorialRadius,
double polarRadius,
double es,
ElevationModel em)
| Method Detail |
|---|
protected Position cartesianToGeodetic(Vec4 cart)
cartesianToGeodetic in class EllipsoidalGlobe
public Cylinder computeBoundingCylinder(double verticalExaggeration,
Sector sector,
double minElevation,
double maxElevation)
computeBoundingCylinder in interface GlobecomputeBoundingCylinder in class EllipsoidalGlobeverticalExaggeration - the vertical exaggeration to apply to the minimum and maximum elevations when
computing the cylinder.sector - the sector to return the bounding cylinder for.minElevation - the minimum elevation of the bounding cylinder.maxElevation - the maximum elevation of the bounding cylinder.
IllegalArgumentException - if sector is null
public Vec4 computeNorthPointingTangentAtLocation(Angle latitude,
Angle longitude)
computeNorthPointingTangentAtLocation in interface GlobecomputeNorthPointingTangentAtLocation in class EllipsoidalGlobe
public Vec4 computeSurfaceNormalAtLocation(Angle latitude,
Angle longitude)
EllipsoidalGlobe
computeSurfaceNormalAtLocation in interface GlobecomputeSurfaceNormalAtLocation in class EllipsoidalGlobelatitude - the latitude of the position.longitude - the longitude of the position.
public Vec4 computeSurfaceNormalAtPoint(Vec4 point)
EllipsoidalGlobe
computeSurfaceNormalAtPoint in interface GlobecomputeSurfaceNormalAtPoint in class EllipsoidalGlobepoint - the cartesian point.
public Matrix computeTransformToPosition(Angle latitude,
Angle longitude,
double metersElevation)
EllipsoidalGlobe
computeTransformToPosition in interface GlobecomputeTransformToPosition in class EllipsoidalGlobelatitude - the latitude of the position.longitude - the longitude of the position.metersElevation - the number of meters above or below mean sea level.
public Matrix computeTransformToPosition(Position position)
EllipsoidalGlobe
computeTransformToPosition in interface GlobecomputeTransformToPosition in class EllipsoidalGlobeposition - the latitude, longitude, and number of meters above or below mean sea level.
protected Vec4 geodeticToCartesian(Angle latitude,
Angle longitude,
double metersElevation)
geodeticToCartesian in class EllipsoidalGlobelatitude - the latitude of the position.longitude - the longitude of the position.metersElevation - the number of meters above or below mean sea level.
public double getElevation(Angle latitude,
Angle longitude)
getElevation in interface GlobegetElevation in class EllipsoidalGlobepublic String getProjection()
public double getRadiusAt(Angle latitude,
Angle longitude)
getRadiusAt in interface GlobegetRadiusAt in class EllipsoidalGlobepublic double getRadiusAt(LatLon latLon)
getRadiusAt in interface GlobegetRadiusAt in class EllipsoidalGlobepublic Object getStateKey(DrawContext dc)
getStateKey in interface GlobegetStateKey in class EllipsoidalGlobe
protected Intersection[] intersect(Line line,
double equRadius,
double polarRadius)
intersect in class EllipsoidalGlobepublic boolean intersects(Line line)
Extentline intersects this Extent. This method may be faster than
checking the size of the arary returned by intersect(Line). Implementing methods must ensure that
this method returns true if and only if intersect(Line) returns a non-null array containing at least
one element.
intersects in interface Extentintersects in class EllipsoidalGlobeline - the Line with which to test for intersection
public boolean intersects(Plane plane)
ExtentExtent is intersected by plane.
intersects in interface Extentintersects in class EllipsoidalGlobeplane - the Plane with which to test for intersection
plane is found to intersect this Extent
public boolean isPointAboveElevation(Vec4 point,
double elevation)
isPointAboveElevation in interface GlobeisPointAboveElevation in class EllipsoidalGlobepoint - the Vec4 point to test.elevation - the elevation to test for.
public void setProjection(String projection)
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||