Summary
Methods:
_clearGPUBuffer |
清空顶点数组绑定的缓冲区 |
addMathCell |
添加对应的数学模型组成元素到模型module:geosolution/math~MathModel对象 |
destroy |
销毁对象。必须先将model从geosolutionLayer上移除之后再销毁model,否则会报错 |
getAllMathCells |
获取组成该数学模型的所有对应元素module:geosolution/cell |
getMathCellById |
根据唯一标识符获取组成该数学模型的元素module:geosolution/cell |
getVisibility |
获取地理解决方案模型的可见性 |
removeAll |
清空该数学模型中所有的组成元素 |
removeMathCell |
移除该数学模型上的特定元素对象 |
removeMathCellById |
根据该数学模型组成元素的唯一标识符,将对应的元素从数学模型中移除 |
setVisibility |
设置模型对象的可见性,设置后需要调用地理解决方案图层的重绘方法,才能生效 |
Constructor
new abstract MathModel(options)
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
options |
|
Methods
-
_clearGPUBuffer()
-
清空顶点数组绑定的缓冲区
-
addMathCell(mathCell)
-
添加对应的数学模型组成元素到模型module:geosolution/math~MathModel对象
Parameters:
Name Type Description mathCell
与数学模型module:geosolution/math~MathModel对应的组成元素。例module:geosolution/math~BarModel的组成元素为module:geosolution/cell~Bar。
-
destroy()
-
销毁对象。必须先将model从geosolutionLayer上移除之后再销毁model,否则会报错
-
getAllMathCells() → {Array.<module:geosolution/cell>}
-
获取组成该数学模型的所有对应元素module:geosolution/cell
-
getMathCellById(id) → {Object|null}
-
根据唯一标识符获取组成该数学模型的元素module:geosolution/cell
Parameters:
Name Type Description id
String 元素对象module:geosolution/cell的唯一标识符
-
getVisibility() → {Boolean}
-
获取地理解决方案模型的可见性
Returns:
Boolean -
removeAll()
-
清空该数学模型中所有的组成元素
-
removeMathCell(mathCell)
-
移除该数学模型上的特定元素对象
Parameters:
Name Type Description mathCell
Object 组成该数学模型的元素对象module:geosolution/cell
-
removeMathCellById(id)
-
根据该数学模型组成元素的唯一标识符,将对应的元素从数学模型中移除
Parameters:
Name Type Description id
String 组成元素的唯一标识符
-
setVisibility(visible)
-
设置模型对象的可见性,设置后需要调用地理解决方案图层的重绘方法,才能生效
Parameters:
Name Type Description visible
Boolean 是否可见。默认true。