@JsType(isNative=true, namespace="Cesium", name="Scene") public class Scene extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Scene.DebugCommandFilter |
static interface |
Scene.Listener |
Modifier and Type | Field and Description |
---|---|
Color |
backgroundColor
The background color, which is only visible if there is no sky box, i.e., Scene#skyBox is undefined.
|
boolean |
completeMorphOnUserInput
Determines whether or not to instantly complete the scene transition animation on user input.
|
Scene.DebugCommandFilter |
debugCommandFilter
This property is for debugging only; it is not for production use.
|
boolean |
debugShowCommands
This property is for debugging only; it is not for production use.
|
int |
debugShowDepthFrustum
This property is for debugging only; it is not for production use.
|
boolean |
debugShowFramesPerSecond
This property is for debugging only; it is not for production use.
|
boolean |
debugShowFrustums
This property is for debugging only; it is not for production use.
|
boolean |
debugShowGlobeDepth
This property is for debugging only; it is not for production use.
|
double |
eyeSeparation
The eye separation distance in meters for use with cardboard or WebVR.
|
double |
farToNearRatio
The far-to-near ratio of the multi-frustum.
|
double |
focalLength
The focal length for use when with cardboard or WebVR.
|
Fog |
fog
Blends the atmosphere to geometry far from the camera for horizon views.
|
Globe |
globe
Gets or sets the depth-test ellipsoid.
|
double |
imagerySplitPosition
Gets or sets the position of the Imagery splitter within the viewport.
|
boolean |
invertClassification
When false, 3D Tiles will render normally.
|
Color |
invertClassificationColor
The highlight color of unclassified 3D Tile geometry when Scene#invertClassification is true.
|
boolean |
logarithmicDepthBuffer
Whether or not to use a logarithmic depth buffer.
|
double |
logarithmicDepthFarToNearRatio
The far-to-near ratio of the multi-frustum when using a logarithmic depth buffer.
|
boolean |
mapMode2D
Determines if the 2D map is rotatable or can be scrolled infinitely in the horizontal direction.
|
double |
maximumRenderTimeChange
If
requestRenderMode is true, this value defines the maximum change in simulation time allowed before a
render is requested. |
Number |
mode
Gets or sets the current mode of the scene.
|
Moon |
moon
The Moon
Default: undefined
|
Event |
morphComplete
The event fired at the completion of a scene transition.
|
Event |
morphStart
The event fired at the beginning of a scene transition.
|
double |
morphTime
The current morph transition time between 2D/Columbus View and 3D, with 0.0 being 2D or Columbus View and 1.0 being 3D.
|
double |
nearToFarDistance2D
Determines the uniform depth size in meters of each frustum of the multifrustum in 2D.
|
boolean |
pickTranslucentDepth
When true, enables picking translucent geometry using the depth buffer.
|
PostProcessStageCollection |
postProcessStages
Post processing effects applied to the final render.
|
boolean |
requestRenderMode
When true, rendering a frame will only occur when needed as determined by changes within the scene.
|
boolean |
rethrowRenderErrors
Exceptions occurring in render are always caught in order to raise the renderError event.
|
ShadowMap |
shadowMap
The shadow map in the scene.
|
SkyAtmosphere |
skyAtmosphere
The sky atmosphere drawn around the globe.
|
SkyBox |
skyBox
The SkyBox used to draw the stars.
|
String |
specularEnvironmentMaps
The url to the KTX file containing the specular environment map and convoluted mipmaps for image-based lighting of PBR models.
|
Cartesian3[] |
sphericalHarmonicCoefficients
The spherical harmonic coefficients for image-based lighting of PBR models.
|
Sun |
sun
The Sun.
|
boolean |
sunBloom
Uses a bloom filter on the sun when enabled.
|
double |
terrainExaggeration
Gets the scalar used to exaggerate the terrain.
|
TerrainProvider |
terrainProvider
The terrain provider providing surface geometry for the globe.
|
boolean |
useDepthPicking
When true, enables picking using the depth buffer.
|
boolean |
useWebVR
When true, splits the scene into two viewports with steroscopic views for the left and right eyes.
|
Constructor and Description |
---|
Scene()
The container for all 3D graphical objects and state in a Cesium virtual scene.
|
Scene(SceneOptions options)
The container for all 3D graphical objects and state in a Cesium virtual scene.
|
Modifier and Type | Method and Description |
---|---|
Camera |
camera()
Gets the camera.
|
com.google.gwt.dom.client.CanvasElement |
canvas()
Gets the canvas element to which this scene is bound.
|
Cartesian2 |
cartesianToCanvasCoordinates(Cartesian3 position)
Transforms a position in cartesian coordinates to canvas coordinates.
|
Cartesian2 |
cartesianToCanvasCoordinates(Cartesian3 position,
Cartesian2 result)
Transforms a position in cartesian coordinates to canvas coordinates.
|
Cartesian3 |
clampToHeight(Cartesian3 cartesian)
Clamps the given cartesian position to the scene geometry along the geodetic surface normal.
|
Cartesian3 |
clampToHeight(Cartesian3 cartesian,
JsObject[] objectsToExclude)
Clamps the given cartesian position to the scene geometry along the geodetic surface normal.
|
Cartesian3 |
clampToHeight(Cartesian3 cartesian,
JsObject[] objectsToExclude,
double width)
Clamps the given cartesian position to the scene geometry along the geodetic surface normal.
|
Cartesian3 |
clampToHeight(Cartesian3 cartesian,
JsObject[] objectsToExclude,
double width,
Cartesian3 result)
Clamps the given cartesian position to the scene geometry along the geodetic surface normal.
|
Promise<Cartesian3[],Void> |
clampToHeightMostDetailed(Cartesian3[] cartesians)
Initiates an asynchronous {link Scene#clampToHeight} query for an array of Cartesian3 positions using the maximum
level of detail for 3D Tilesets in the scene.
|
Promise<Cartesian3[],Void> |
clampToHeightMostDetailed(Cartesian3[] cartesians,
JsObject[] objectsToExclude)
Initiates an asynchronous {link Scene#clampToHeight} query for an array of Cartesian3 positions using the maximum
level of detail for 3D Tilesets in the scene.
|
Promise<Cartesian3[],Void> |
clampToHeightMostDetailed(Cartesian3[] cartesians,
JsObject[] objectsToExclude,
double width)
Initiates an asynchronous {link Scene#clampToHeight} query for an array of Cartesian3 positions using the maximum
level of detail for 3D Tilesets in the scene.
|
boolean |
clampToHeightSupported()
Returns true if the clampToHeight function is supported.
|
void |
completeMorph()
Instantly completes an active transition.
|
Object |
debugFrustumStatistics()
This property is for debugging only; it is not for production use.
|
void |
destroy()
Destroys the WebGL resources held by this object.
|
double |
drawingBufferHeight()
The drawingBufferWidth of the underlying GL context.
|
double |
drawingBufferWidth()
The drawingBufferHeight of the underlying GL context.
|
PickedObject[] |
drillPick(Cartesian2 windowPosition)
Returns a list of objects, each containing a `primitive` property, for all primitives at a particular
window coordinate position.
|
PickedObject[] |
drillPick(Cartesian2 windowPosition,
double limit)
Returns a list of objects, each containing a `primitive` property, for all primitives at a particular
window coordinate position.
|
PickedObject[] |
drillPick(Cartesian2 windowPosition,
double limit,
int width)
Returns a list of objects, each containing a `primitive` property, for all primitives at a particular
window coordinate position.
|
PickedObject[] |
drillPick(Cartesian2 windowPosition,
double limit,
int width,
int height)
Returns a list of objects, each containing a `primitive` property, for all primitives at a particular
window coordinate position.
|
PrimitiveCollection |
groundPrimitives()
Gets the collection of ground primitives.
|
boolean |
highDynamicRangeSupported()
Whether or not high dynamic range rendering is supported.
|
String |
id()
Gets the unique identifier for this scene.
|
ImageryLayerCollection |
imageryLayers()
Gets the collection of imagery layers that will be rendered on the globe.
|
boolean |
invertClassificationSupported()
Returns true if the
invertClassification is supported. |
boolean |
isDestroyed()
Returns true if this object was destroyed; otherwise, false.
|
JulianDate |
lastRenderTime()
Gets the simulation time when the scene was last rendered.
|
MapProjection |
mapProjection()
Get the map projection to use in 2D and Columbus View modes.
|
int |
maximumAliasedLineWidth()
The maximum aliased line width, in pixels, supported by this WebGL implementation.
|
int |
maximumCubeMapSize()
The maximum length in pixels of one edge of a cube map, supported by this WebGL implementation.
|
void |
morphTo2D()
Asynchronously transitions the scene to 2D.
|
void |
morphTo2D(double duration)
Asynchronously transitions the scene to 2D.
|
void |
morphTo3D()
Asynchronously transitions the scene to 3D.
|
void |
morphTo3D(double duration)
Asynchronously transitions the scene to 3D.
|
void |
morphToColumbusView()
Asynchronously transitions the scene to Columbus View.
|
void |
morphToColumbusView(double duration)
Asynchronously transitions the scene to Columbus View.
|
boolean |
orderIndependentTranslucency()
Gets whether or not the scene has order independent translucency enabled.
|
PickedObject |
pick(Cartesian2 windowPosition)
Returns an object with a `primitive` property that contains the first (top) primitive in the scene at a particular
window coordinate or undefined if nothing is at the location.
|
Cartesian3 |
pickPosition(Cartesian2 windowPosition)
Returns the cartesian position reconstructed from the depth buffer and window position.
|
Cartesian3 |
pickPosition(Cartesian2 windowPosition,
Cartesian3 result)
Returns the cartesian position reconstructed from the depth buffer and window position.
|
boolean |
pickPositionSupported()
Returns true if the pickPosition function is supported.
|
Event |
postRender()
Gets the event that will be raised at the end of each call to render.
|
Event |
postUpdate()
Gets the event that will be raised immediately after the scene is updated and before the scene is rendered.
|
Event |
preRender()
Gets the event that will be raised at the start of each call to render.
|
Event |
preUpdate()
Gets the event that will be raised before the scene is updated or rendered.
|
PrimitiveCollection |
primitives()
Gets the collection of primitives.
|
Event |
renderError()
Gets the event that will be raised when an error is thrown inside the render function.
|
void |
requestRender()
Requests a new rendered frame when Scene#requestRenderMode is set to true.
|
double |
sampleHeight(Cartographic position)
Returns the height of scene geometry at the given cartographic position or undefined if there was no
scene geometry to sample height from.
|
double |
sampleHeight(Cartographic position,
JsObject[] objectsToExclude)
Returns the height of scene geometry at the given cartographic position or undefined if there was no
scene geometry to sample height from.
|
double |
sampleHeight(Cartographic position,
JsObject[] objectsToExclude,
double width)
Returns the height of scene geometry at the given cartographic position or undefined if there was no
scene geometry to sample height from.
|
Promise<double[],Void> |
sampleHeightMostDetailed(Cartographic[] positions)
Initiates an asynchronous
sampleHeight(org.cesiumjs.cs.core.Cartographic) query for an array of Cartographic positions using the
maximum level of detail for 3D Tilesets in the scene. |
Promise<double[],Void> |
sampleHeightMostDetailed(Cartographic[] positions,
JsObject[] objectsToExclude)
Initiates an asynchronous
sampleHeight(org.cesiumjs.cs.core.Cartographic) query for an array of Cartographic positions using the
maximum level of detail for 3D Tilesets in the scene. |
Promise<double[],Void> |
sampleHeightMostDetailed(Cartographic[] positions,
JsObject[] objectsToExclude,
double width)
Initiates an asynchronous
sampleHeight(org.cesiumjs.cs.core.Cartographic) query for an array of Cartographic positions using the
maximum level of detail for 3D Tilesets in the scene. |
boolean |
sampleHeightSupported()
Returns true if the sampleHeight function is supported.
|
boolean |
scene3DOnly()
Gets whether or not the scene is optimized for 3D only viewing.
|
ScreenSpaceCameraController |
screenSpaceCameraController()
Gets the controller for camera input handling.
|
Event |
terrainProviderChanged()
Gets an event that's raised when the terrain provider is changed
|
@JsProperty public Color backgroundColor
skyBox
@JsProperty public boolean completeMorphOnUserInput
@JsProperty public Scene.DebugCommandFilter debugCommandFilter
Example:
_viewer.scene().debugCommandFilter = new Scene.DebugCommandFilter() {
{@literal @}Override
public boolean function(Object object) {
return ((JsObject)object).getObject("owner") == _viewer.scene().skyAtmosphere;
}
};
Default: undefined@JsProperty public boolean debugShowCommands
@JsProperty public int debugShowDepthFrustum
@JsProperty public boolean debugShowFramesPerSecond
@JsProperty public boolean debugShowFrustums
@JsProperty public boolean debugShowGlobeDepth
@JsProperty public double eyeSeparation
@JsProperty public double farToNearRatio
@JsProperty public double focalLength
@JsProperty public Fog fog
@JsProperty public Globe globe
@JsProperty public double imagerySplitPosition
@JsProperty public boolean invertClassification
invertClassificationColor
.
Default: false@JsProperty public Color invertClassificationColor
Color.WHITE()
@JsProperty public boolean logarithmicDepthBuffer
@JsProperty public double logarithmicDepthFarToNearRatio
logarithmicDepthBuffer
is true. When logarithmicDepthBuffer is false,
use farToNearRatio
.
Default: 1e9@JsProperty public boolean mapMode2D
@JsProperty public double maximumRenderTimeChange
requestRenderMode
is true, this value defines the maximum change in simulation time allowed before a
render is requested. Lower values increase the number of frames rendered and higher values decrease the number
of frames rendered. If undefined, changes to the simulation time will never request a render. This value impacts
the rate of rendering for changes in the scene like lighting, entity property updates, and animations.
Default: 0.5@JsProperty public Number mode
SceneMode.SCENE3D()
@JsProperty public Moon moon
@JsProperty public Event morphComplete
@JsProperty public Event morphStart
@JsProperty public double morphTime
public double nearToFarDistance2D
@JsProperty public boolean pickTranslucentDepth
useDepthPicking
must also be
true to enable picking the depth buffer. There is a decrease in performance when enabled. There are extra draw
calls to write depth for translucent geometry.
Default: false@JsProperty public PostProcessStageCollection postProcessStages
@JsProperty public boolean requestRenderMode
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.
Default: false@JsProperty public boolean rethrowRenderErrors
@JsProperty public ShadowMap shadowMap
@JsProperty public SkyAtmosphere skyAtmosphere
@JsProperty public SkyBox skyBox
backgroundColor
@JsProperty public String specularEnvironmentMaps
@JsProperty public Cartesian3[] sphericalHarmonicCoefficients
@JsProperty public Sun sun
@JsProperty public boolean sunBloom
@JsProperty public double terrainExaggeration
@JsProperty public TerrainProvider terrainProvider
@JsProperty public boolean useDepthPicking
@JsProperty public boolean useWebVR
@JsConstructor public Scene()
@JsConstructor public Scene(SceneOptions options)
options
- Options.@JsProperty(name="camera") public Camera camera()
@JsProperty(name="canvas") public com.google.gwt.dom.client.CanvasElement canvas()
@JsProperty(name="debugFrustumStatistics") public Object debugFrustumStatistics()
@JsProperty(name="drawingBufferHeight") public double drawingBufferHeight()
drawingBufferHeight()
@JsProperty(name="drawingBufferWidth") public double drawingBufferWidth()
drawingBufferHeight()
@JsProperty(name="groundPrimitives") public PrimitiveCollection groundPrimitives()
@JsProperty(name="highDynamicRangeSupported") public boolean highDynamicRangeSupported()
@JsProperty(name="id") public String id()
@JsProperty(name="imageryLayers") public ImageryLayerCollection imageryLayers()
@JsProperty(name="lastRenderTime") public JulianDate lastRenderTime()
@JsProperty(name="mapProjection") public MapProjection mapProjection()
GeographicProjection
@JsProperty(name="maximumAliasedLineWidth") public int maximumAliasedLineWidth()
@JsProperty(name="maximumCubeMapSize") public int maximumCubeMapSize()
@JsProperty(name="orderIndependentTranslucency") public boolean orderIndependentTranslucency()
@JsProperty(name="pickPositionSupported") public boolean pickPositionSupported()
@JsProperty(name="postRender") public Event postRender()
@JsProperty(name="postUpdate") public Event postUpdate()
preUpdate()
,
preRender()
,
postRender()
@JsProperty(name="preRender") public Event preRender()
@JsProperty(name="preUpdate") public Event preUpdate()
postRender()
,
preRender()
,
postRender()
@JsProperty(name="primitives") public PrimitiveCollection primitives()
@JsProperty(name="renderError") public Event renderError()
@JsProperty(name="sampleHeightSupported") public boolean sampleHeightSupported()
@JsProperty(name="clampToHeightSupported") public boolean clampToHeightSupported()
@JsProperty(name="invertClassificationSupported") public boolean invertClassificationSupported()
invertClassification
is supported.@JsProperty(name="scene3DOnly") public boolean scene3DOnly()
@JsProperty(name="screenSpaceCameraController") public ScreenSpaceCameraController screenSpaceCameraController()
@JsProperty(name="terrainProviderChanged") public Event terrainProviderChanged()
@JsMethod public Cartesian2 cartesianToCanvasCoordinates(Cartesian3 position)
position
- The position in cartesian coordinates.
Example:
ViewerPanel panel = new ViewerPanel();
panel.getViewer().extend(viewerCesiumNavigationMixin.instance(), options);
final Scene scene = panel.getViewer().scene();
Ellipsoid ellipsoid = scene.globe.ellipsoid;
final Cartesian3 position = Cartesian3.fromDegrees(0.0, 0.0);
ScreenSpaceEventHandler handler = new ScreenSpaceEventHandler(scene.canvas());
handler.setInputAction(new ScreenSpaceEventHandler.Listener() {
{@literal @}Override
public void function(Object event) {
Cesium.log(scene.cartesianToCanvasCoordinates(position));
}
}, ScreenSpaceEventType.MOUSE_MOVE());
@JsMethod public Cartesian2 cartesianToCanvasCoordinates(Cartesian3 position, Cartesian2 result)
position
- The position in cartesian coordinates.result
- An optional object to return the input position transformed to canvas coordinates.
Example:
ViewerPanel panel = new ViewerPanel();
panel.getViewer().extend(viewerCesiumNavigationMixin.instance(), options);
final Scene scene = panel.getViewer().scene();
Ellipsoid ellipsoid = scene.globe.ellipsoid;
final Cartesian3 position = Cartesian3.fromDegrees(0.0, 0.0);
ScreenSpaceEventHandler handler = new ScreenSpaceEventHandler(scene.canvas());
handler.setInputAction(new ScreenSpaceEventHandler.Listener() {
{@literal @}Override
public void function(Object event) {
Cesium.log(scene.cartesianToCanvasCoordinates(position));
}
}, ScreenSpaceEventType.MOUSE_MOVE());
@JsMethod public Cartesian3 clampToHeight(Cartesian3 cartesian)
cartesian
- The cartesian position.
This may be undefined if there was no scene geometry to clamp to.sampleHeight(org.cesiumjs.cs.core.Cartographic)
@JsMethod public Cartesian3 clampToHeight(Cartesian3 cartesian, JsObject[] objectsToExclude)
cartesian
- The cartesian position.objectsToExclude
- A list of primitives, entities, or features to not clamp to.sampleHeight(org.cesiumjs.cs.core.Cartographic)
@JsMethod public Cartesian3 clampToHeight(Cartesian3 cartesian, JsObject[] objectsToExclude, double width)
cartesian
- The cartesian position.objectsToExclude
- A list of primitives, entities, or features to not clamp to.width
- Width of the intersection volume in meters.sampleHeight(org.cesiumjs.cs.core.Cartographic)
@JsMethod public Cartesian3 clampToHeight(Cartesian3 cartesian, JsObject[] objectsToExclude, double width, Cartesian3 result)
cartesian
- The cartesian position.objectsToExclude
- A list of primitives, entities, or features to not clamp to.width
- Width of the intersection volume in meters.result
- An optional object to return the clamped position.sampleHeight(org.cesiumjs.cs.core.Cartographic)
@JsMethod public Promise<Cartesian3[],Void> clampToHeightMostDetailed(Cartesian3[] cartesians)
cartesians
- The cartesian positions to update with clamped positions.clampToHeight(org.cesiumjs.cs.core.Cartesian3)
@JsMethod public Promise<Cartesian3[],Void> clampToHeightMostDetailed(Cartesian3[] cartesians, JsObject[] objectsToExclude)
cartesians
- The cartesian positions to update with clamped positions.objectsToExclude
- A list of primitives, entities, or 3D Tiles features to not clamp to.clampToHeight(org.cesiumjs.cs.core.Cartesian3)
@JsMethod public Promise<Cartesian3[],Void> clampToHeightMostDetailed(Cartesian3[] cartesians, JsObject[] objectsToExclude, double width)
cartesians
- The cartesian positions to update with clamped positions.objectsToExclude
- A list of primitives, entities, or 3D Tiles features to not clamp to.width
- Width of the intersection volume in meters.clampToHeight(org.cesiumjs.cs.core.Cartesian3)
@JsMethod public void completeMorph()
@JsMethod public void destroy()
isDestroyed()
@JsMethod public PickedObject[] drillPick(Cartesian2 windowPosition)
Example:
Object[] pickedObjects = scene.drillPick(new Cartesian2(100.0, 200.0));
windowPosition
- Window coordinates to perform picking on.@JsMethod public PickedObject[] drillPick(Cartesian2 windowPosition, double limit)
Example:
Object[] pickedObjects = scene.drillPick(new Cartesian2(100.0, 200.0));
windowPosition
- Window coordinates to perform picking on.limit
- If supplied, stop drilling after collecting this many picks.@JsMethod public PickedObject[] drillPick(Cartesian2 windowPosition, double limit, int width)
Example:
Object[] pickedObjects = scene.drillPick(new Cartesian2(100.0, 200.0));
windowPosition
- Window coordinates to perform picking on.limit
- If supplied, stop drilling after collecting this many picks.width
- Width of the pick rectangle.@JsMethod public PickedObject[] drillPick(Cartesian2 windowPosition, double limit, int width, int height)
Example:
Object[] pickedObjects = scene.drillPick(new Cartesian2(100.0, 200.0));
windowPosition
- Window coordinates to perform picking on.limit
- If supplied, stop drilling after collecting this many picks.width
- Width of the pick rectangle.height
- Height of the pick rectangle.@JsMethod public boolean isDestroyed()
destroy()
@JsMethod public void morphTo2D()
@JsMethod public void morphTo2D(double duration)
duration
- The amount of time, in seconds, for transition animations to complete. Default: 2.0@JsMethod public void morphTo3D()
@JsMethod public void morphTo3D(double duration)
duration
- The amount of time, in seconds, for transition animations to complete. Default: 2.0@JsMethod public void morphToColumbusView()
@JsMethod public void morphToColumbusView(double duration)
duration
- The amount of time, in seconds, for transition animations to complete. Default: 2.0@JsMethod public PickedObject pick(Cartesian2 windowPosition)
windowPosition
- Window coordinates to perform picking on.@JsMethod public Cartesian3 pickPosition(Cartesian2 windowPosition)
windowPosition
- Window coordinates to perform picking on.@JsMethod public Cartesian3 pickPosition(Cartesian2 windowPosition, Cartesian3 result)
windowPosition
- Window coordinates to perform picking on.result
- The object on which to restore the result.@JsMethod public void requestRender()
CesiumWidget.targetFrameRate
.requestRenderMode
@JsMethod public double sampleHeight(Cartographic position)
position
- The cartographic position to sample height from.clampToHeight(org.cesiumjs.cs.core.Cartesian3)
@JsMethod public double sampleHeight(Cartographic position, JsObject[] objectsToExclude)
position
- The cartographic position to sample height from.objectsToExclude
- A list of primitives, entities, or features to not sample height from.clampToHeight(org.cesiumjs.cs.core.Cartesian3)
@JsMethod public double sampleHeight(Cartographic position, JsObject[] objectsToExclude, double width)
position
- The cartographic position to sample height from.objectsToExclude
- A list of primitives, entities, or features to not sample height from.width
- Width of the intersection volume in meters.clampToHeight(org.cesiumjs.cs.core.Cartesian3)
@JsMethod public Promise<double[],Void> sampleHeightMostDetailed(Cartographic[] positions)
sampleHeight(org.cesiumjs.cs.core.Cartographic)
query for an array of Cartographic positions using the
maximum level of detail for 3D Tilesets in the scene. The height of the input positions is ignored.
Returns a promise that is resolved when the query completes. Each point height is modified in place.
If a height cannot be determined because no geometry can be sampled at that location, or another error occurs,
the height is set to undefined.positions
- The cartographic positions to update with sampled heights.sampleHeight(org.cesiumjs.cs.core.Cartographic)
@JsMethod public Promise<double[],Void> sampleHeightMostDetailed(Cartographic[] positions, JsObject[] objectsToExclude)
sampleHeight(org.cesiumjs.cs.core.Cartographic)
query for an array of Cartographic positions using the
maximum level of detail for 3D Tilesets in the scene. The height of the input positions is ignored.
Returns a promise that is resolved when the query completes. Each point height is modified in place.
If a height cannot be determined because no geometry can be sampled at that location, or another error occurs,
the height is set to undefined.positions
- The cartographic positions to update with sampled heights.objectsToExclude
- A list of primitives, entities, or 3D Tiles features to not sample height from.sampleHeight(org.cesiumjs.cs.core.Cartographic)
@JsMethod public Promise<double[],Void> sampleHeightMostDetailed(Cartographic[] positions, JsObject[] objectsToExclude, double width)
sampleHeight(org.cesiumjs.cs.core.Cartographic)
query for an array of Cartographic positions using the
maximum level of detail for 3D Tilesets in the scene. The height of the input positions is ignored.
Returns a promise that is resolved when the query completes. Each point height is modified in place.
If a height cannot be determined because no geometry can be sampled at that location, or another error occurs,
the height is set to undefined.positions
- The cartographic positions to update with sampled heights.objectsToExclude
- A list of primitives, entities, or 3D Tiles features to not sample height from.width
- Width of the intersection volume in meters.sampleHeight(org.cesiumjs.cs.core.Cartographic)
Copyright © 2019. All rights reserved.