new HypsometricSetting()
Layered color scheme. This type is mainly used to develop rendering and display schemes for 3D models. Layered coloring is a common way of map visualization, which expresses and distinguishes different attributes of 3D data through a certain order of color changes or color depth.
Example
// Create hypsometric tint settings
var hypsometricSetting= new SuperMap3D.HypsometricSetting();
Members
-
baseValueNumber
-
Obtain or set the sampling base value for layered coloring, such as setting it to the bottom height of the layer during flood analysis
- Default Value: 0.0
colorModulationColorModulationInfo
Obtain or set color adjustment information for point cloud data, currently only supporting adjustment of point cloud data intensity values.
ColorTableColorTable
Get or set a color chart.
Example
var hypsometricSetting = new SuperMap3D.HypsometricSetting();
// Set the color table
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 color table
var value= hypsometricSetting.ColorTable;
ColorTableMaxKeyNumber
Get the maximum key value for the color chart.
Example
var hypsometricSetting = new SuperMap3D.HypsometricSetting();
var maxKey = hypsometricSetting.ColorTableMaxKey ;
ColorTableMinKeyNumber
Obtain the minimum key value for the color chart.
Example
var hypsometricSetting = new SuperMap3D.HypsometricSetting();
var minKey = hypsometricSetting.ColorTableMinKey ;
CoverageAreaArray
Get or set the area for layered coloring.
Example
var hypsometricSetting = new SuperMap3D.HypsometricSetting();
// Set the hypsometric tint area. The area array format should be [lon1, lat1, height1, lon2, lat2, height2, ...] in degrees.
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 the hypsometric tint area
var value= hypsometricSetting.CoverageArea;
DisplayModeHypsometricSettingEnum.DisplayMode
Get or set the display mode.
Example
var hypsometricSetting = new SuperMap3D.HypsometricSetting();
// Set the display mode
hypsometricSetting.DisplayMode= SuperMap3D.HysometricSettingEnum.DisplayMode.FACE;
// Get the display mode
var value= hypsometricSetting.DisplayMode;
emissionTexCoordScaleScale
Get or set the range of self luminous textures.
emissionTexCoordUSpeedNumber
Get or set the motion speed of the self luminous texture in the U direction. The texture coordinates of the entire texture in the U direction range from 0.0 to 1.0, and the speed unit is the offset of the texture coordinates per second.
Example
var hypsometricSetting = new SuperMap3D.HypsometricSetting();
// Set the motion speed of the emissive texture in the U direction
var emissionTexCoordSpeed = value;
hypsometricSetting.emissionTexCoordUSpeed = emissionTexCoordSpeed;
// Get the motion speed of the emissive texture in the U direction
var value= hypsometricSetting.emissionTexCoordUSpeed ;
emissionTexCoordVSpeedNumber
Get or set the motion speed of the self luminous texture in the V direction.
emissionTextureArrayArray
Set multiple self illuminating texture objects, and objects in the S3M layer can randomly obtain one of the self illuminating effects.
Example
// Set multiple emissive texture objects
function setHypsometric(layer) {
hyp.emissionTextureArray = [
{
url:"./images/纹理16.jpg",
USpeed:0,
VSpeed:0,
UTiling:100,
VTiling:100
},
{
url:"./images/纹理17.jpg",
USpeed:0,
VSpeed:0,
UTiling:80,
VTiling:80
}
]
layer.hypsometricSetting = {
hypsometricSetting: hyp,
}
};
emissionTextureUrlString
Set self illuminating texture objects.
Example
var hypsometricSetting = new SuperMap3D.HypsometricSetting();
// Set the emissive texture
var emissionTextureUrl = String;
hypsometricSetting.emissionTextureUrl = emissionTextureUrl;
// Get the emissive texture
var value= hypsometricSetting.emissionTextureUrl ;
LineColorColor
Get or set the color of contour lines.
Example
var hypsometricSetting = new SuperMap3D.HypsometricSetting();
// Set the line color
var color = new SuperMap3D.Color(1, 0, 0);
hypsometricSetting.LineColor = color;
// Get the line color
var value= hypsometricSetting.LineColor ;
LineIntervalNumber
Obtain or set the interval between contour lines.
Example
var hypsometricSetting = new SuperMap3D.HypsometricSetting();
// Set the line interval
hypsometricSetting.LineInterval= 10;
// Get the line interval
var value= hypsometricSetting.LineInterval;
maxVisibleAltitudeNumber
Get or set the maximum visible height
MaxVisibleValueNumber
Get or set the maximum visible value.
Example
var hypsometricSetting = new SuperMap3D.HypsometricSetting();
// Set the maximum visible value
hypsometricSetting.MaxVisibleValue = 150;
// Get the maximum visible value
var value= hypsometricSetting.MaxVisibleValue;
minVisibleAltitudeNumber
Get or set the minimum visible height
MinVisibleValueNumber
Get or set the minimum visible value.
Example
var hypsometricSetting = new SuperMap3D.HypsometricSetting();
// Set the minimum visible value
hypsometricSetting.MinVisibleValue = 30;
// Get the minimum visible value
var value= hypsometricSetting.MinVisibleValue;
noValueColorColor
Set or retrieve invalid color values, default is white.
OpacityNumber
Get or set opacity within the range of 0-1, where 0 represents complete transparency and 1 represents complete opacity.
Example
var hypsometricSetting = new SuperMap3D.HypsometricSetting();
// Set the transparency
hypsometricSetting.Opacity = 0.5;
// Get the transparency
var value= hypsometricSetting.Opacity;
visibleDistanceMaxNumber
Get or set the maximum visible distance
visibleDistanceMinNumber
Get or set the minimum visible distance
Methods
-
static clone(hypSetting, result){HypsometricSetting}
-
Copy a layered colored object.
Name Type Description hypSettingHypsometricSetting Layered color objects to be cloned.
resultHypsometricSetting optional If the parameter is not passed in, a new instance will be created.
Returns:
Type Description HypsometricSetting Layered coloring objects. Example
var hypsometricSetting = new SuperMap3D.HypsometricSetting(); hypsometricSetting.LineInterval= 10; var cloneHypsometricSetting = SuperMap3D.HypsometricSetting.clone(hypsometricSetting )