@JsType(isNative=true, namespace="Cesium", name="CesiumWidget") public class CesiumWidget extends Object
Modifier and Type | Field and Description |
---|---|
com.google.gwt.dom.client.CanvasElement |
canvas
Gets the canvas.
|
Clock |
clock
Gets the clock.
|
com.google.gwt.dom.client.Element |
container
Gets the parent container.
|
com.google.gwt.dom.client.Element |
creditContainer
Gets the credit container.
|
double |
resolutionScale
Gets or sets a scaling factor for rendering resolution.
|
Scene |
scene
Gets the scene.
|
ScreenSpaceEventHandler |
screenSpaceEventHandler
Gets the screen space event handler.
|
double |
targetFrameRate
Gets or sets the target frame rate of the widget when useDefaultRenderLoop is true.
|
TerrainProvider |
terrainProvider
The terrain provider providing surface geometry for the globe.
|
boolean |
useDefaultRenderLoop
Gets or sets whether or not this widget should control the render loop.
|
Constructor and Description |
---|
CesiumWidget(com.google.gwt.dom.client.Element container)
A widget containing a Cesium scene.
|
CesiumWidget(com.google.gwt.dom.client.Element container,
CesiumWidgetOptions options)
A widget containing a Cesium scene.
|
CesiumWidget(String container)
A widget containing a Cesium scene.
|
CesiumWidget(String container,
CesiumWidgetOptions options)
A widget containing a Cesium scene.
|
Modifier and Type | Method and Description |
---|---|
Camera |
camera()
Gets the camera.
|
void |
destroy()
Destroys the widget.
|
ImageryLayerCollection |
imageryLayers()
Gets the collection of imagery layers that will be rendered on the globe.
|
boolean |
isDestroyed() |
void |
render()
Renders the scene.
|
void |
resize()
Updates the canvas size, camera aspect ratio, and viewport size.
|
void |
showErrorPanel(String title,
String message)
Show an error panel to the user containing a title and a longer error message, which can be dismissed using an OK button.
|
void |
showErrorPanel(String title,
String message,
String error)
Show an error panel to the user containing a title and a longer error message, which can be dismissed using an OK button.
|
@JsProperty public com.google.gwt.dom.client.CanvasElement canvas
@JsProperty public Clock clock
@JsProperty public com.google.gwt.dom.client.Element container
@JsProperty public com.google.gwt.dom.client.Element creditContainer
@JsProperty public double resolutionScale
@JsProperty public Scene scene
@JsProperty public ScreenSpaceEventHandler screenSpaceEventHandler
@JsProperty public double targetFrameRate
@JsProperty public TerrainProvider terrainProvider
@JsProperty public boolean useDefaultRenderLoop
@JsConstructor public CesiumWidget(com.google.gwt.dom.client.Element container)
container
- The DOM element or ID that will contain the widget.@JsConstructor public CesiumWidget(String container)
container
- The DOM element or ID that will contain the widget.@JsConstructor public CesiumWidget(com.google.gwt.dom.client.Element container, CesiumWidgetOptions options)
container
- The DOM element or ID that will contain the widget.options
- Options.@JsConstructor public CesiumWidget(String container, CesiumWidgetOptions options)
container
- The DOM element or ID that will contain the widget.options
- Options.@JsProperty(name="camera") public Camera camera()
@JsProperty(name="imageryLayers") public ImageryLayerCollection imageryLayers()
@JsMethod public void destroy()
@JsMethod public boolean isDestroyed()
@JsMethod public void render()
@JsMethod public void resize()
@JsMethod public void showErrorPanel(String title, String message)
title
- The title to be displayed on the error panel. This string is interpreted as text.message
- A helpful, user-facing message to display prior to the detailed error information. This string is interpreted as HTML.@JsMethod public void showErrorPanel(String title, String message, String error)
title
- The title to be displayed on the error panel. This string is interpreted as text.message
- A helpful, user-facing message to display prior to the detailed error information. This string is interpreted as HTML.error
- The error to be displayed on the error panel. This string is formatted using formatError and then displayed as text.Copyright © 2019. All rights reserved.