new FieldLayer3D(context, scene)
Field data layer class, through which field data is loaded.
| Name | Type | Description |
|---|---|---|
context |
Context |
WebGL context object. |
scene |
Scene |
Scene对象。 |
Example
var layer = new FieldLayer3D(context, scene);
scene.primitives.add(layer);
Members
-
fieldDataArray
-
Retrieve or set the field data of a layer.
-
hypsometricSettingHypsometricSetting
-
Retrieve or set hierarchical color parameter objects.
-
layerBoundsRectangle
-
Get or set the X and Y direction range of layer data.
-
NetCDFData
-
Get or set the NetCDF field data layer. The NetCDF field layer object has five parameters: longitude, latitude, uwnd, vwnd, and timeOrder [optional]. Longitude: The longitude dimension of NetCDF field data. Longitude: The longitude dimension of NetCDF field data. Uwnd: The U-component (meridional wind) wind speed of NetCDF field data, measured in meters per second. Vwnd: The wind speed of the V component (meridional wind) in NetCDF field data, measured in meters per second. TimeOrder: The time index corresponding to the NetCDF field data.
Example
var option = { longitude:'lon', latitude:'lat', uwnd:'uwnd', vwnd:'uwnd' } fieldLayer.NetCDFData = option; -
NetCDFInfo
-
Retrieve or set header file information for NetCDF field data, including dimensions, variables, and corresponding attribute information.
-
particleVelocityFieldEffectParticleVelocityFieldEffect
-
Obtain three-dimensional flow field effects.
-
temporalSettingTemporalSetting
-
Retrieve objects with multiple temporal parameters.
-
readonly typeString
-
Obtain the layer type identifier.
-
visibleBoolean
-
Get or set the visibility of layers.
-
zBoundsCartesian2
-
Get or set the Z-direction range of layer data.
Methods
-
destroy(){undefined}
-
Destroy the object and release its WebGL resources
Once an object is destroyed, it can no longer be used; Calling any method of the destroyed object will throw a Developers Error exception
- See:
-
- FieldLayer3D#isDestroyed
Returns:
Type Description undefined Example
layer = layer && layer.destroy();