new SlopeAnalysis(argsopt)
- Description:
- 矩形坡度分析
- Source:
- objects/other/SlopeAnalysis.js, line3
Example
const Slope = new Engine.SlopeAnalysis({
range: [
{x: 114.54285408673763, y: 30.527309972472402, z: 12.338045986846847,},
{x: 114.52414243562359, y: 30.488505856674532, z: 12.115206359768635,},
{x: 114.51737381122989, y: 30.48239216550051, z: 11.97821403948241,}
],
useSlopeAnalysis: true,
colorRange: [
{r: 0.685325, g: 1, b: 0.298996},
{r: 0.963023, g: 1, b: 0.198688},
{r: 1, g: 0.710181, b: 0.235817},
{r: 1, g: 0.440705, b: 0.156314},
{r: 1, g: 0.310357, b: 0.150163},
{r: 1, g: 0.219426, b: 0.155697}
];
});
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
args |
object |
<optional> |
参数
Properties
|
Extends
Members
(readonly) animateNeedsUpdate
- Source:
- objects/Shape/Shape.js, line814
- Inherited From:
Properties:
Name | Type | Description |
---|---|---|
animateNeedsUpdate |
Boolean | 动画是否变化 |
depthTest
- Source:
- objects/Shape/Shape.js, line398
- Inherited From:
- Default Value:
- true
Properties:
Name | Type | Description |
---|---|---|
depthTest |
boolean | 是否开启深度测试 |
map
- Description:
- 获取贴图
- Source:
- objects/Shape/Shape.js, line134
- Overrides:
获取贴图
(readonly) materialNeedsUpdate
- Source:
- objects/Shape/Shape.js, line802
- Inherited From:
Properties:
Name | Type | Description |
---|---|---|
materialNeedsUpdate |
Boolean | 记录材质是否变化 |
(readonly) matrixNeedsUpdate
- Source:
- objects/Shape/Shape.js, line796
- Inherited From:
Properties:
Name | Type | Description |
---|---|---|
matrixNeedsUpdate |
Boolean | 记录空间是否变化 |
transparent
- Source:
- objects/Shape/Shape.js, line393
- Inherited From:
- Default Value:
- opacity < 1.0
Properties:
Name | Type | Description |
---|---|---|
transparent |
boolean | 是否透明 |
visible
- Description:
- 获取可见性状态
- Source:
- objects/Shape/Shape.js, line113
- Overrides:
获取可见性状态
(readonly) visibleNeedsUpdate
- Source:
- objects/Shape/Shape.js, line808
- Inherited From:
Properties:
Name | Type | Description |
---|---|---|
visibleNeedsUpdate |
Boolean | 记录显隐是否变化 |
Methods
animate(options) → {TWEEN.Tween}
- Description:
- 动画函数,to中的animateOffset表示位置偏移单位cm
- Source:
- objects/Shape/Shape.js, line828
- Inherited From:
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | {from, to, duration, easing, loop}
Properties
|
Returns:
返回Tween对象,可以调用stop()方法停止动画,onUpdate的时候会返回一个0-1的渐变值
- Type
- TWEEN.Tween
setData(geoJsonData)
- Description:
- 数据赋值与预处理
- Source:
- objects/Shape/Shape.js, line905
- Inherited From:
Parameters:
Name | Type | Description |
---|---|---|
geoJsonData |
object | geojson格式的几何信息 |
stopAnimate(delayTime)
- Description:
- 停止动画
- Source:
- objects/Shape/Shape.js, line891
- Inherited From:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
delayTime |
1000
|
延迟时间,默认为1000毫秒 |