@JsType(isNative=true, namespace="Cesium", name="ImageryLayer") public class ImageryLayer extends Object
Modifier and Type | Field and Description |
---|---|
float |
alpha
The alpha blending value of this layer, with 0.0 representing fully transparent and 1.0 representing fully opaque.
|
float |
brightness
The brightness of this layer. 1.0 uses the unmodified imagery color.
|
Color |
colorToAlpha
Color value that should be set to transparent.
|
double |
colorToAlphaThreshold
Normalized (0-1) threshold for color-to-alpha.
|
float |
contrast
The contrast of this layer. 1.0 uses the unmodified imagery color.
|
Rectangle |
cutoutRectangle
Rectangle cutout in this layer of imagery.
|
static float |
DEFAULT_BRIGHTNESS
This value is used as the default brightness for the imagery layer if one is not provided during construction
or by the imagery provider.
|
static float |
DEFAULT_CONTRAST
This value is used as the default contrast for the imagery layer if one is not provided during construction
or by the imagery provider.
|
static float |
DEFAULT_GAMMA
This value is used as the default gamma for the imagery layer if one is not provided during construction
or by the imagery provider.
|
static float |
DEFAULT_HUE
This value is used as the default hue for the imagery layer if one is not provided during construction
or by the imagery provider.
|
static Number |
DEFAULT_MAGNIFICATION_FILTER
This value is used as the default texture magnification filter for the imagery layer if one is not
provided during construction or by the imagery provider.
|
static Number |
DEFAULT_MINIFICATION_FILTER
This value is used as the default texture minification filter for the imagery layer if one is not
provided during construction or by the imagery provider.
|
static float |
DEFAULT_SATURATION
This value is used as the default saturation for the imagery layer if one is not provided during construction
or by the imagery provider.
|
static Number |
DEFAULT_SPLIT
This value is used as the default spliat for the imagery layer if one is not provided during construction or by the imagery provider.
|
float |
gamma
The gamma correction to apply to this layer. 1.0 uses the unmodified imagery color.
|
float |
hue
The hue of this layer in radians. 0.0 uses the unmodified imagery color.
|
Number |
magnificationFilter
The TextureMagnificationFilter to apply to this layer.
|
Number |
minificationFilter
The TextureMinificationFilter to apply to this layer.
|
float |
saturation
The saturation of this layer. 1.0 uses the unmodified imagery color.
|
boolean |
show
Determines if this layer is shown.
|
Number |
splitDirection
The
ImagerySplitDirection to apply to this layer. |
Constructor and Description |
---|
ImageryLayer(ImageryProvider imageryProvider)
An imagery layer that displays tiled imagery data from a single imagery provider on a
Globe . |
ImageryLayer(ImageryProvider imageryProvider,
ImageryLayerOptions options)
An imagery layer that displays tiled imagery data from a single imagery provider on a
Globe . |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys the WebGL resources held by this object.
|
Promise<Rectangle,Void> |
getViewableRectangle()
Computes the intersection of this layer's rectangle with the imagery provider's availability rectangle, producing
the overall bounds of imagery that can be produced by this layer.
|
ImageryProvider |
imageryProvider()
Gets the imagery provider for this layer.
|
boolean |
isBaseLayer()
Gets a value indicating whether this layer is the base layer in the ImageryLayerCollection.
|
boolean |
isDestroyed()
Returns true if this object was destroyed; otherwise, false.
|
Rectangle |
rectangle()
Gets the rectangle of this layer.
|
@JsProperty public static float DEFAULT_BRIGHTNESS
@JsProperty public static float DEFAULT_CONTRAST
@JsProperty public static float DEFAULT_GAMMA
@JsProperty public static float DEFAULT_HUE
@JsProperty public static Number DEFAULT_MAGNIFICATION_FILTER
TextureMagnificationFilter.LINEAR()
@JsProperty public static Number DEFAULT_MINIFICATION_FILTER
TextureMinificationFilter.LINEAR()
@JsProperty public static float DEFAULT_SATURATION
@JsProperty public static Number DEFAULT_SPLIT
ImagerySplitDirection.NONE()
@JsProperty public float alpha
@JsProperty public float brightness
DEFAULT_BRIGHTNESS
@JsProperty public Color colorToAlpha
@JsProperty public double colorToAlphaThreshold
@JsProperty public float contrast
DEFAULT_CONTRAST
@JsProperty public Rectangle cutoutRectangle
@JsProperty public float gamma
DEFAULT_GAMMA
@JsProperty public float hue
DEFAULT_HUE
@JsProperty public Number magnificationFilter
TextureMagnificationFilter.LINEAR()
(the default) and
TextureMagnificationFilter.NEAREST()
. To take effect, this property must be set immediately after adding the imagery layer.
Once a texture is loaded it won't be possible to change the texture filter used.
Default: DEFAULT_MAGNIFICATION_FILTER
@JsProperty public Number minificationFilter
TextureMinificationFilter.LINEAR()
(the default) and
TextureMinificationFilter.NEAREST()
. To take effect, this property must be set immediately after adding
the imagery layer. Once a texture is loaded it won't be possible to change the texture filter used.
Default: DEFAULT_MINIFICATION_FILTER
@JsProperty public float saturation
DEFAULT_SATURATION
@JsProperty public boolean show
@JsProperty public Number splitDirection
ImagerySplitDirection
to apply to this layer.
Default: {ImageryLayer#DEFAULT_SPLIT}.@JsConstructor public ImageryLayer(ImageryProvider imageryProvider)
Globe
.imageryProvider
- The imagery provider to use.@JsConstructor public ImageryLayer(ImageryProvider imageryProvider, ImageryLayerOptions options)
Globe
.imageryProvider
- The imagery provider to use.options
- Options.@JsProperty(name="imageryProvider") public ImageryProvider imageryProvider()
@JsProperty(name="rectangle") public Rectangle rectangle()
@JsMethod public void destroy()
isDestroyed()
@JsMethod public Promise<Rectangle,Void> getViewableRectangle()
@JsMethod public boolean isBaseLayer()
@JsMethod public boolean isDestroyed()
destroy()
Copyright © 2019. All rights reserved.