Summary
Methods:
addMathCell |
添加对应的数学模型组成元素到模型module:geosolution/math~MathModel对象 |
destroy |
销毁对象 |
getAllMathCells |
获取组成该数学模型的所有对应元素module:geosolution/cell |
getMathCellById |
根据唯一标识符获取组成该数学模型的元素module:geosolution/cell |
getVisibility |
获取地理解决方案模型的可见性 |
removeAll |
清空该数学模型中所有的组成元素 |
removeMathCellById |
根据该数学模型组成元素的唯一标识符,将对应的元素从数学模型中移除 |
setVisibility |
设置模型对象的可见性 |
updateDrawData |
当组成数学对象的元素数据变化时,重新组织绘制数据。 |
Constructor
new abstract MathModel(options)
Parameters:
Name | Type | Description |
---|---|---|
options |
Methods
-
addMathCell(mathCell)
-
添加对应的数学模型组成元素到模型module:geosolution/math~MathModel对象
Parameters:
Name Type Description mathCell
与数学模型module:geosolution/math~MathModel对应的组成元素。例module:geosolution/math~BarModel的组成元素为module:geosolution/cell~Bar。
-
destroy()
-
销毁对象
-
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()
-
清空该数学模型中所有的组成元素
-
removeMathCellById(id)
-
根据该数学模型组成元素的唯一标识符,将对应的元素从数学模型中移除
Parameters:
Name Type Description id
String 组成元素的唯一标识符
-
setVisibility(visible)
-
设置模型对象的可见性
Parameters:
Name Type Description visible
Boolean 是否可见。默认true。
-
updateDrawData()
-
当组成数学对象的元素数据变化时,重新组织绘制数据。