@JsType(isNative=true, namespace="Cesium", name="Globe") public class Globe extends Object
Modifier and Type | Field and Description |
---|---|
double |
atmosphereBrightnessShift
The brightness shift to apply to the atmosphere.
|
double |
atmosphereHueShift
The hue shift to apply to the atmosphere.
|
double |
atmosphereSaturationShift
The saturation shift to apply to the atmosphere.
|
Color |
baseColor
Gets or sets the color of the globe when no imagery is available.
|
Rectangle |
cartographicLimitRectangle
Use this to limit terrain and imagery to a specific Rectangle area.
|
ClippingPlaneCollection |
clippingPlanes
The
ClippingPlaneCollection used to selectively disable rendering the tileset. |
boolean |
depthTestAgainstTerrain
True if primitives such as billboards, polylines, labels, etc. should be depth-tested against the terrain surface,
or false if such primitives should always be drawn on top of terrain unless they're on the opposite side of the globe.
|
Ellipsoid |
ellipsoid
Gets an ellipsoid describing the shape of this globe.
|
boolean |
enableLighting
Enable lighting the globe with the sun as a light source.
|
ImageryLayerCollection |
imageryLayers
Gets the collection of imagery layers that will be rendered on this globe.
|
double |
lightingFadeInDistance
The distance where lighting resumes.
|
double |
lightingFadeOutDistance
The distance where everything becomes lit.
|
Material |
material
Gets or sets the material appearance of the Globe.
|
double |
maximumScreenSpaceError
The maximum screen-space error used to drive level-of-detail refinement.
|
double |
nightFadeInDistance
The distance where the darkness of night from the ground atmosphere fades in to an unlit ground atmosphere.
|
double |
nightFadeOutDistance
The distance where the darkness of night from the ground atmosphere fades out to a lit ground atmosphere.
|
String |
oceanNormalMapUrl
The normal map to use for rendering waves in the ocean.
|
Number |
shadows
Determines whether the globe casts or receives shadows from each light source.
|
boolean |
show
Determines if the globe will be shown.
|
boolean |
showGroundAtmosphere
Enable the ground atmosphere.
|
boolean |
showWaterEffect
True if an animated wave effect should be shown in areas of the globe covered by water; otherwise, false.
|
TerrainProvider |
terrainProvider
The terrain provider providing surface geometry for this globe.
|
int |
tileCacheSize
The size of the terrain tile cache, expressed as a number of tiles.
|
Event |
tileLoadProgressEvent
Gets an event that's raised when the length of the tile load queue has changed since the last render frame.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys the WebGL resources held by this object.
|
double |
getHeight(Cartographic cartographic)
Get the height of the surface at a given cartographic.
|
Event |
imageryLayersUpdatedEvent()
Gets an event that's raised when an imagery layer is added, shown, hidden, moved, or removed.
|
boolean |
isDestroyed()
Returns true if this object was destroyed; otherwise, false.
|
Cartesian3 |
pick(Ray ray,
Scene scene)
Find an intersection between a ray and the globe surface that was rendered.
|
Cartesian3 |
pick(Ray ray,
Scene scene,
Cartesian3 result)
Find an intersection between a ray and the globe surface that was rendered.
|
Event |
terrainProviderChanged()
Gets an event that's raised when the terrain provider is changed
|
boolean |
tilesLoaded()
Returns true when the tile load queue is empty, false otherwise.
|
@JsProperty public double atmosphereBrightnessShift
@JsProperty public double atmosphereHueShift
@JsProperty public double atmosphereSaturationShift
@JsProperty public Color baseColor
@JsProperty public ClippingPlaneCollection clippingPlanes
ClippingPlaneCollection
used to selectively disable rendering the tileset.
Clipping planes are not currently supported in Internet Explorer.@JsProperty public Rectangle cartographicLimitRectangle
@JsProperty public boolean depthTestAgainstTerrain
@JsProperty public Ellipsoid ellipsoid
@JsProperty public boolean enableLighting
@JsProperty public ImageryLayerCollection imageryLayers
@JsProperty public double lightingFadeInDistance
@JsProperty public double lightingFadeOutDistance
@JsProperty public Material material
@JsProperty public double maximumScreenSpaceError
@JsProperty public double nightFadeInDistance
@JsProperty public double nightFadeOutDistance
@JsProperty public String oceanNormalMapUrl
@JsProperty public Number shadows
@JsProperty public boolean show
@JsProperty public boolean showGroundAtmosphere
@JsProperty public boolean showWaterEffect
@JsProperty public TerrainProvider terrainProvider
@JsProperty public int tileCacheSize
@JsProperty public Event tileLoadProgressEvent
@JsConstructor public Globe()
@JsConstructor public Globe(Ellipsoid ellipsoid)
@JsProperty(name="imageryLayersUpdatedEvent") public Event imageryLayersUpdatedEvent()
@JsProperty(name="terrainProviderChanged") public Event terrainProviderChanged()
@JsMethod(name="tilesLoaded") public boolean tilesLoaded()
@JsMethod public void destroy()
isDestroyed()
@JsMethod public double getHeight(Cartographic cartographic)
cartographic
- @JsMethod public boolean isDestroyed()
destroy()
@JsMethod public Cartesian3 pick(Ray ray, Scene scene)
// find intersection of ray through a pixel and the globe
Ray ray = viewer.camera.getPickRay(windowCoordinates);
Cartesian3 intersection = globe.pick(ray, scene);
ray
- The ray to test for intersection.scene
- The scene.@JsMethod public Cartesian3 pick(Ray ray, Scene scene, Cartesian3 result)
// find intersection of ray through a pixel and the globe
Ray ray = viewer.camera.getPickRay(windowCoordinates);
Cartesian3 intersection = globe.pick(ray, scene);
ray
- The ray to test for intersection.scene
- The scene.result
- The object onto which to store the result.Copyright © 2019. All rights reserved.