Layered tinting class. This class is mainly used to formulate 3D model rendering and display schemes.
Layered coloring is a common method of map visualization, which expresses and distinguishes different attributes of 3D data through a certain color change order or tone depth.
Members
-
colorModulation : ColorModulationInfo
-
Get or set the color adjustment information for point clouds. Currently only supports the adjustment of the intensity values of point cloud data.
-
ColorTable : ColorTable
-
Get or set the colormap.
Example:
var hypsometricSetting = new SuperMap3D.HypsometricSetting(); //set the colormap. var colorTable = new SuperMap3D.ColorTable(); colorTable.insert(900, new SuperMap3D.Color(1, 0, 0)); colorTable.insert(600, new SuperMap3D.Color(0, 0, 1)); hypsometricSetting.ColorTable= colorTable; //Get the colormap. var value= hypsometricSetting.ColorTable; -
Get the maximum key value of the color table.
Example:
var hypsometricSetting = new SuperMap3D.HypsometricSetting(); var maxKey = hypsometricSetting.ColorTableMaxKey ; -
Get the minimum key value of the color table.
Example:
var hypsometricSetting = new SuperMap3D.HypsometricSetting(); var minKey = hypsometricSetting.ColorTableMinKey ; -
Get or set the layered coloring area.
Example:
var hypsometricSetting = new SuperMap3D.HypsometricSetting(); //Set layered tinting 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 tinting area var value= hypsometricSetting.CoverageArea; -
Get or set the display mode.
Example:
var hypsometricSetting = new SuperMap3D.HypsometricSetting(); //set the display mode. hypsometricSetting.DisplayMode= SuperMap3D.HysometricSetting Enum.DisplayMode.FACE;LineColor //Get the display mode. var value= hypsometricSetting.DisplayMode; -
Gets or sets the range of the emissive texture.
-
Get or set the movement speed 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. The speed unit is the offset of the texture coordinates per second
Example:
var hypsometricSetting = new SuperMap3D.HypsometricSetting(); //Set the movement speed of the self-illuminating texture in the U direction var emissionTexCoordSpeed = value; hypsometricSetting.emissionTexCoordUSpeed = emissionTexCoordSpeed; //Get the movement speed of the self-illuminating texture in the U direction var value= hypsometricSetting.emissionTexCoordUSpeed ; -
Gets or sets the movement speed of the self-illumination texture in the V direction.
-
Set multiple self-illumination texture objects, and objects in the S3M layer can randomly obtain one of the self-illumination effects
Example:
//Setting up multiple self-illuminating texture objects function setHypsometric(layer) { hyp.emissionTextureArray = [ { url:"./images/Texture16.jpg", USpeed:0, VSpeed:0, UTiling:100, VTiling:100 }, { url:"./images/Texture17.jpg", USpeed:0, VSpeed:0, UTiling:80, VTiling:80 } ] layer.hypsometricSetting = { hypsometricSetting: hyp, } }; -
Set self-illumination texture object
Example:
var hypsometricSetting = new SuperMap3D.HypsometricSetting(); //Set self-illumination texture var emissionTextureUrl = String; hypsometricSetting.emissionTextureUrl = emissionTextureUrl; //Get self-illumination texture var value= hypsometricSetting.emissionTextureUrl ; -
LineColor : Color
-
Gets or sets the color of contour lines.
Example:
var hypsometricSetting = new SuperMap3D.HypsometricSetting(); //Sets the color of contour lines. var color = new SuperMap3D.Color(1, 0, 0); hypsometricSetting.LineColor = color; //Gets the color of contour lines. var value= hypsometricSetting.LineColor ; -
Get or set the interval of contour lines.
Example:
var hypsometricSetting = new SuperMap3D.HypsometricSetting(); //Set the interval of contour lines. hypsometricSetting.LineInterval= 10; //Get the interval of contour lines. var value= hypsometricSetting.LineInterval; -
Gets or sets the maximum visible value.
Example:
var hypsometricSetting = new SuperMap3D.HypsometricSetting(); //Sets the maximum visible value. hypsometricSetting.MaxVisibleValue = 150; //Gets the maximum visible value. var value= hypsometricSetting.MaxVisibleValue; -
Gets or sets the minimum visible value.
Example:
var hypsometricSetting = new SuperMap3D.HypsometricSetting(); //Sets the minimum visible value. hypsometricSetting.MinVisibleValue = 30; //Gets the minimum visible value. var value= hypsometricSetting.MinVisibleValue; -
noValueColor : Color
-
Set or get an invalid color value, the default is white
-
Get or set the opacity, the value range is 0-1, where 0 means completely transparent and 1 means completely opaque.
Example:
var hypsometricSetting = new SuperMap3D.HypsometricSetting(); //set transparency hypsometricSetting.Opacity = 0.5; //get transparency var value= hypsometricSetting.Opacity;
Methods
-
staticSuperMap3D.HypsometricSetting.clone(hypSetting, result) → HypsometricSetting
-
Duplicate a layered tinted object.
Name Type Description hypSettingHypsometricSetting The layered tinted object to be cloned. resultHypsometricSetting optional If this parameter is not passed, a new instance will be created. Returns:
Layer tinted objects.Example:
var hypsometricSetting = new SuperMap3D.HypsometricSetting(); hypsometricSetting.LineInterval= 10; var cloneHypsometricSetting = SuperMap3D.HypsometricSetting.clone(hypsometricSetting )
