Layered color class. This class is mainly used to develop 3D model rendering display solutions.。
Layered coloring is a common way of visualizing maps. It expresses and distinguishes different attributes of 3D data by a certain color change order or shade.
Members
-
ColorTable : ColorTable
-
Get or set the color table.
Example:
var hypsometricSetting = new Cesium.HypsometricSetting(); //Set color table var colorTable = new Cesium.ColorTable(); colorTable.insert(900, new Cesium.Color(1, 0, 0)); colorTable.insert(600, new Cesium.Color(0, 0, 1)); hypsometricSetting.ColorTable= colorTable; //Get the color table var value= hypsometricSetting.ColorTable;
-
Get the maximum key value of the color table.
Example:
var hypsometricSetting = new Cesium.HypsometricSetting(); var maxKey = hypsometricSetting.ColorTableMaxKey ;
-
Get the minimum key value of the color table.
Example:
var hypsometricSetting = new Cesium.HypsometricSetting(); var minKey = hypsometricSetting.ColorTableMinKey ;
-
Gets or sets the area of the layered tinted.
Example:
var hypsometricSetting = new Cesium.HypsometricSetting(); //Set the layered tinted area var pos = new Array(); pos.push(110.0);pos.push(40.03);pos.push(110.0); pos.push(110.0);pos.push(40.001);pos.push(110.0); pos.push(110.103);pos.push(40.001);pos.push(110.0); pos.push(110.103);pos.push(40.03);pos.push(110.0); hypsometricSetting.CoverageArea= pos; //Get layered tinted areas var value= hypsometricSetting.CoverageArea;
-
Gets or sets the display mode.
Example:
var hypsometricSetting = new Cesium.HypsometricSetting(); //Set display mode hypsometricSetting.DisplayMode= Cesium.HysometricSetting Enum.DisplayMode.FACE;LineColor //Get display mode var value= hypsometricSetting.DisplayMode;
-
Sets or obtains the velocity of the self-illuminating texture in the U direction. The texture coordinates of the U-direction of the entire texture are from 0.0 to 1.0, and the velocity unit is the offset of the texture coordinates per second.
Example:
var hypsometricSetting = new Cesium.HypsometricSetting(); //Set the speed of the self-illuminating texture in the U direction var emissionTexCoordSpeed = value; hypsometricSetting.emissionTexCoordUSpeed = emissionTexCoordSpeed; //Get the speed of the self-illuminating texture in the U direction var value= hypsometricSetting.emissionTexCoordUSpeed ;
-
Set or get a self-illuminating texture
Example:
var hypsometricSetting = new Cesium.HypsometricSetting(); //Set self-illuminating texture var emissionTextureUrl = String; hypsometricSetting.emissionTextureUrl = emissionTextureUrl; //Get self-illuminating texture var value= hypsometricSetting.emissionTextureUrl ;
-
LineColor : Color
-
Gets or sets the color of the contour.
Example:
var hypsometricSetting = new Cesium.HypsometricSetting(); //Set the color of the line var color = new Cesium.Color(1, 0, 0); hypsometricSetting.LineColor = color; //Get the color of the line var value= hypsometricSetting.LineColor ;
-
Gets or sets the interval of the contours.
Example:
var hypsometricSetting = new Cesium.HypsometricSetting(); //Set the spacing of the lines hypsometricSetting.LineInterval= 10; //Get the line spacing var value= hypsometricSetting.LineInterval;
-
Gets or sets the maximum visible value.
Example:
var hypsometricSetting = new Cesium.HypsometricSetting(); //Set the maximum visible value hypsometricSetting.MaxVisibleValue = 150; //Get the maximum visible value var value= hypsometricSetting.MaxVisibleValue;
-
Gets or sets the minimum visible value.
Example:
var hypsometricSetting = new Cesium.HypsometricSetting(); //Set the minimum visible value hypsometricSetting.MinVisibleValue = 30; //Get the minimum visible value var value= hypsometricSetting.MinVisibleValue;
-
noValueColor : Color
-
Set or get invalid color values, default white
-
Gets or sets the opacity, which ranges from 0-1, where 0 is completely transparent and 1 is completely opaque.
Example:
var hypsometricSetting = new Cesium.HypsometricSetting(); //Set transparency hypsometricSetting.Opacity = 0.5; //Set transparency var value= hypsometricSetting.Opacity;
Methods
-
staticCesium.HypsometricSetting.clone(hypSetting, result) → HypsometricSetting
-
Copy a layered tinted object.
Name Type Description hypSetting
HypsometricSetting A layered tinted object to be cloned. result
HypsometricSetting optional If this parameter is not passed in, a new instance will be created. Returns:
Layered color objects.Example:
var hypsometricSetting = new Cesium.HypsometricSetting(); hypsometricSetting.LineInterval= 10; var cloneHypsometricSetting = Cesium.HypsometricSetting.clone(hypsometricSetting )