public abstract class GlobeImageOverlay extends GlobeOverlay implements IDisposable
GlobeOverlay
that shows an image.Modifier | Constructor and Description |
---|---|
protected |
GlobeImageOverlay() |
Modifier and Type | Method and Description |
---|---|
protected void |
dispose(boolean disposing) |
double |
getAltitudeBasedTranslucencyLowerAltitude()
Gets the lower altitude bound used to calculate translucency for the image when
UseAltitudeBasedTranslucency is set to true . |
float |
getAltitudeBasedTranslucencyLowerTranslucency()
Gets the lower translucency value for the image when
UseAltitudeBasedTranslucency is set to true . |
double |
getAltitudeBasedTranslucencyUpperAltitude()
Gets the upper altitude bound used to calculate translucency for the image when
UseAltitudeBasedTranslucency is set to true . |
float |
getAltitudeBasedTranslucencyUpperTranslucency()
Gets the upper translucency value for the image when
UseAltitudeBasedTranslucency is set to true . |
static boolean |
getMoreThanOneImageGlobeOverlaySupported()
Gets whether or not the video card allows for more than one image globe overlay
GlobeImageOverlay to be added. |
float |
getTranslucency()
Gets the translucency value for the image.
|
boolean |
getUseAltitudeBasedTranslucency()
Gets whether to use altitude to determine the translucency value for the image or not.
|
void |
setAltitudeBasedTranslucencyLowerAltitude(double value)
Sets the lower altitude bound used to calculate translucency for the image when
UseAltitudeBasedTranslucency is set to true . |
void |
setAltitudeBasedTranslucencyLowerTranslucency(float value)
Sets the lower translucency value for the image when
UseAltitudeBasedTranslucency is set to true . |
void |
setAltitudeBasedTranslucencyUpperAltitude(double value)
Sets the upper altitude bound used to calculate translucency for the image when
UseAltitudeBasedTranslucency is set to true . |
void |
setAltitudeBasedTranslucencyUpperTranslucency(float value)
Sets the upper translucency value for the image when
UseAltitudeBasedTranslucency is set to true . |
void |
setTranslucency(float value)
Sets the translucency value for the image.
|
void |
setUseAltitudeBasedTranslucency(boolean value)
Sets whether to use altitude to determine the translucency value for the image or not.
|
dispose, getCentralBody, getDisplayCondition, getExtent, getIsValid, getRole, getTag, getUri, setDisplayCondition, setExtent, setTag
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, dispose
protected void dispose(boolean disposing)
dispose
in class GlobeOverlay
public float getTranslucency()
public void setTranslucency(float value)
public boolean getUseAltitudeBasedTranslucency()
false
, the Translucency
value is used. If true
,
the translucency will be determined by the values of AltitudeBasedTranslucencyLowerTranslucency
, AltitudeBasedTranslucencyUpperTranslucency
,
AltitudeBasedTranslucencyLowerAltitude
, and AltitudeBasedTranslucencyUpperAltitude
.public void setUseAltitudeBasedTranslucency(boolean value)
false
, the Translucency
value is used. If true
,
the translucency will be determined by the values of AltitudeBasedTranslucencyLowerTranslucency
, AltitudeBasedTranslucencyUpperTranslucency
,
AltitudeBasedTranslucencyLowerAltitude
, and AltitudeBasedTranslucencyUpperAltitude
.public float getAltitudeBasedTranslucencyLowerTranslucency()
UseAltitudeBasedTranslucency
is set to true
. When the
altitude of the viewer is at or below AltitudeBasedTranslucencyLowerAltitude
, the image will have the translucency specified by this property,
and will be linearly interpolated at altitude values between AltitudeBasedTranslucencyLowerAltitude
and AltitudeBasedTranslucencyUpperAltitude
.public void setAltitudeBasedTranslucencyLowerTranslucency(float value)
UseAltitudeBasedTranslucency
is set to true
. When the
altitude of the viewer is at or below AltitudeBasedTranslucencyLowerAltitude
, the image will have the translucency specified by this property,
and will be linearly interpolated at altitude values between AltitudeBasedTranslucencyLowerAltitude
and AltitudeBasedTranslucencyUpperAltitude
.public float getAltitudeBasedTranslucencyUpperTranslucency()
UseAltitudeBasedTranslucency
is set to true
. When the
altitude of the viewer is at or above AltitudeBasedTranslucencyUpperAltitude
, the image will have the translucency specified by this property,
and will be linearly interpolated at altitude values between AltitudeBasedTranslucencyUpperAltitude
and AltitudeBasedTranslucencyLowerAltitude
.public void setAltitudeBasedTranslucencyUpperTranslucency(float value)
UseAltitudeBasedTranslucency
is set to true
. When the
altitude of the viewer is at or above AltitudeBasedTranslucencyUpperAltitude
, the image will have the translucency specified by this property,
and will be linearly interpolated at altitude values between AltitudeBasedTranslucencyUpperAltitude
and AltitudeBasedTranslucencyLowerAltitude
.public double getAltitudeBasedTranslucencyLowerAltitude()
UseAltitudeBasedTranslucency
is set to true
. When the
altitude of the viewer is at or below this value, the image will have the translucency specified by AltitudeBasedTranslucencyLowerTranslucency
,
and will be linearly interpolated at altitude values between AltitudeBasedTranslucencyLowerAltitude
and AltitudeBasedTranslucencyUpperAltitude
.public void setAltitudeBasedTranslucencyLowerAltitude(double value)
UseAltitudeBasedTranslucency
is set to true
. When the
altitude of the viewer is at or below this value, the image will have the translucency specified by AltitudeBasedTranslucencyLowerTranslucency
,
and will be linearly interpolated at altitude values between AltitudeBasedTranslucencyLowerAltitude
and AltitudeBasedTranslucencyUpperAltitude
.public double getAltitudeBasedTranslucencyUpperAltitude()
UseAltitudeBasedTranslucency
is set to true
. When the
altitude of the viewer is at or above this value, the image will have the translucency specified by AltitudeBasedTranslucencyUpperTranslucency
,
and will be linearly interpolated at altitude values between AltitudeBasedTranslucencyUpperAltitude
and AltitudeBasedTranslucencyLowerAltitude
.public void setAltitudeBasedTranslucencyUpperAltitude(double value)
UseAltitudeBasedTranslucency
is set to true
. When the
altitude of the viewer is at or above this value, the image will have the translucency specified by AltitudeBasedTranslucencyUpperTranslucency
,
and will be linearly interpolated at altitude values between AltitudeBasedTranslucencyUpperAltitude
and AltitudeBasedTranslucencyLowerAltitude
.public static final boolean getMoreThanOneImageGlobeOverlaySupported()
GlobeImageOverlay
to be added.
Returns true
if any number of base, night, specular, and normal images can be added to a central body. false
if only one base image can be added to a central body.