@JsType(isNative=true, namespace="<global>", name="Object") public class SceneOptions extends Object
Modifier and Type | Field and Description |
---|---|
com.google.gwt.dom.client.CanvasElement |
canvas
The HTML canvas element to create the scene for.
|
Object |
contextOptions
Context and WebGL creation properties.
|
com.google.gwt.dom.client.Element |
creditContainer
The HTML element in which the credits will be displayed.
|
int |
mapMode2D
Determines if the 2D map is rotatable or can be scrolled infinitely in the horizontal direction.
|
MapProjection |
mapProjection
The map projection to use in 2D and Columbus View modes.
|
double |
maximumRenderTimeChange
If requestRenderMode is true, this value defines the maximum change in simulation time allowed before a render is requested.
|
boolean |
orderIndependentTranslucency
If true and the configuration supports it, use order independent translucency.
|
boolean |
requestRenderMode
If true, rendering a frame will only occur when needed as determined by changes within the scene.
|
boolean |
scene3DOnly
If true, optimizes memory use and performance for 3D mode but disables the ability to use 2D or Columbus View.
|
boolean |
shadows
Determines if shadows are cast by the sun.
|
double |
terrainExaggeration
A scalar used to exaggerate the terrain.
|
Constructor and Description |
---|
SceneOptions() |
@JsProperty public com.google.gwt.dom.client.CanvasElement canvas
@JsProperty public Object contextOptions
@JsProperty public com.google.gwt.dom.client.Element creditContainer
@JsProperty public MapProjection mapProjection
GeographicProjection
@JsProperty public boolean orderIndependentTranslucency
@JsProperty public boolean scene3DOnly
@JsProperty public double terrainExaggeration
@JsProperty public boolean shadows
@JsProperty public int mapMode2D
MapMode2D.INFINITE_SCROLL()
@JsProperty public boolean requestRenderMode
Scene.requestRender()
to render a new frame
explicitly in this mode. This will be necessary in many cases after making changes to the scene in other parts of the API.
See Improving Performance with Explicit Rendering.
Default: false@JsProperty public double maximumRenderTimeChange
Copyright © 2019. All rights reserved.