private short GetHeightByRectBoundAssist(int indexInRect, GeoCalcBound geoCalcBound, DemDataType demDataType, int layerIndex) { if ((!geoCalcBound.Equals(this.m_geoHeightCalcBound) || (this.m_HeightlayerIndex != layerIndex)) || (this.m_HeightValueArray == null)) { this.m_HeightlayerIndex = layerIndex; this.m_geoHeightCalcBound = geoCalcBound; this.m_HeightValueArray = this.GetValueByGeoCalcBound(geoCalcBound, demDataType); } return this.m_HeightValueArray[indexInRect]; }