Package gov.nasa.worldwind.globes
Interface Globe2D
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getOffset()
GeographicProjection
getProjection()
Returns the geographic projection for this globe.boolean
isContinuous()
Indicates whether it makes sense to treat the associated projection as contiguous with itself.void
setContinuous(boolean continuous)
Specifies whether to treat the associated projection as contiguous with itself.void
setOffset(int offset)
Indicates an offset to apply to Cartesian points computed by this globe.void
setProjection(GeographicProjection projection)
Specifies the geographic projection for this globe.
-
-
-
Method Detail
-
setContinuous
void setContinuous(boolean continuous)
Specifies whether to treat the associated projection as contiguous with itself. If true, the scene controller will make the implementing globe appear to scroll continuously horizontally. Calling this method overrides the associated projection's value for this field.- Parameters:
continuous
-true
if it makes sense to treat the associated projection as continuous, otherwisefalse
.- See Also:
GeographicProjection.isContinuous()
-
isContinuous
boolean isContinuous()
Indicates whether it makes sense to treat the associated projection as contiguous with itself. If true, the scene controller will make the implementing globe appear to scroll continuously horizontally.- Returns:
true
if it makes sense to treat the associated projection as continuous, otherwisefalse
.
-
getOffset
int getOffset()
-
setOffset
void setOffset(int offset)
Indicates an offset to apply to Cartesian points computed by this globe. The offset is in units of globe widths, e.g., an offset of one indicates a Cartesian offset of the globe's width in meters.- Parameters:
offset
- The offset to apply, in units of globe widths.
-
setProjection
void setProjection(GeographicProjection projection)
Specifies the geographic projection for this globe. The geographic projection converts geographic positions to Cartesian coordinates and back. Implementations of this interface define their default projection.- Parameters:
projection
- The projection to apply to this globe.- Throws:
java.lang.IllegalArgumentException
- if the projection is null.- See Also:
GeographicProjection
-
getProjection
GeographicProjection getProjection()
Returns the geographic projection for this globe.- Returns:
- The geographic projection for this globe.
-
-