VoxelGridLayer3D

new Supermap3D.VoxelGridLayer3D(options)

Field data layer, through this function to visually express volume data.

Name Type Description
options Object optional The parameter object has the following properties:
Name Type Description
setDataBounds String optional variable name.
xDimName String optional x dimension name.
yDimName String optional y dimension name.
zDimName String optional z dimension name.
timeDimName Number optional The name of the time series dimension.

Members

colorTable : float

Set the color table

colorTransferFunction : ColorTransferFunction

This attribute specifies a piecewise function that controls the color.

contourValue : Number

Set the intensity value of the isosurface.

enableLighting : bool

Whether to turn on the light.

fillStyle: Number

Used to set the border line mode, the default is filled and wire frame mode.
See:

frameIndex : Number

Set to select fixed timing display.

gradientOpacityMaxOpacity : float

Control the relationship between the gradient value and transparency after useGradientOpacity is turned on, and express it as a linear piecewise function.

gradientOpacityMaxValue : float

Control the relationship between the gradient value and transparency after useGradientOpacity is turned on, and express it as a linear piecewise function.

gradientOpacityMinOpacity : float

Control the relationship between the gradient value and transparency after useGradientOpacity is turned on, and express it as a linear piecewise function.

gradientOpacityMinValue : float

Control the relationship between the gradient value and transparency after useGradientOpacity is turned on, and express it as a linear piecewise function.

layerBounds : Rectangle

Get or set the data range of the layer

material : Material

Material parameters.

maxFiltration : Number

Set or get the maximum value that can be displayed by the filter.

maxValue : Number

Set or get the maximum value of volume data.

minFiltration : Number

Set or get the minimum value that can be filtered.

minValue : Number

Set or get the minimum value of the volume data.

opacityTransferFunction : PiecewiseFunction

This attribute specifies a piecewise function that controls transparency.

opaqueRate : Number

Set transparency.

outlineColor: Number

Used for border line color setting

scale : Number

Set the scaling of the data in the XYZ direction.

sliceCoordinate : Number

Set the position of the section plane (relative to the center point).

readonlytype : String

Get the ID of the layer type

useGradientOpacity : bool

Set whether to use gradient value to control transparency.

visible : Boolean

Get or set the visibility of the layer

visibleBoundingBox : Number

Set the display range.

VolumeRenderMode : VolumeRenderMode

Set the display mode (body mode, section plane mode).

zBounds : Cartesian2

Get or set the Z direction range of the layer's data

Methods

addClipPlane()

Set a cutting surface, no more than 6 at most. The coordinates of this surface are the coordinates of the volume data as a cube with a side length of 1 in the cube.

destroy()undefined

Destroy the object and release its webgl resources.

Once the object is destroyed, it can no longer be used; calling any method of the destroyed object will throw an DeveloperError exception

Returns:
Example:
layer = layer && layer.destroy();
See:
  • VoxelGridLayer3D#isDestroyed

getNumberOfClipPlanes()Number

Get the number of clipping regions.
Returns:

removeAllClipPlanes()

Remove all clipping regions.

removeClipPlane()

Removes the clipping plane at the specified index.