public static ValueMatrixShort GenerateValueMatrixShortNoInitial(TrueFalseMatrix tfMatrix, string filepath, string relativePath) { ValueMatrixShort shortMatrix = new ValueMatrixShort(filepath, relativePath, tfMatrix.RowCount, tfMatrix.ColCount); m_ShortMatrix = shortMatrix; shortMatrix.SetParam(tfMatrix.NorthWestX, tfMatrix.NorthWestY, tfMatrix.Resolution); shortMatrix.SetValue(-32768, -32768, -32768); return shortMatrix; }
public static ValueMatrixShort GenerateValueMatrixShort(TrueFalseMatrix tfMatrix, string filepath, string relativePath) { ValueMatrixShort vms = new ValueMatrixShort(filepath, relativePath, tfMatrix.RowCount, tfMatrix.ColCount); m_ShortMatrix = vms; vms.SetParam(tfMatrix.NorthWestX, tfMatrix.NorthWestY, tfMatrix.Resolution); vms.SetValue(-32768, -32768, -32768); InitialValueMatrix(tfMatrix, -32768, -32768, vms); return vms; }
public static ValueMatrixShort GenerateValueMatrixShortNoInitial(TrueFalseMatrix tfMatrix, string filepath, PredictionStudyType st, string relativePath) { short num; short num2; short num3; DefaultValueDefine.GetShortResult(st, out num3, out num2, out num); ValueMatrixShort @short = new ValueMatrixShort(filepath, relativePath, tfMatrix.RowCount, tfMatrix.ColCount); m_ShortMatrix = @short; @short.SetParam(tfMatrix.NorthWestX, tfMatrix.NorthWestY, tfMatrix.Resolution); @short.SetValue(num, num2, num3); return @short; }
private void ThroughputShow(PredictionGroup pg, PredictionStudy ps) { this.ClearDiscreteMapLayer(ps); string savePath = this.GetSavePath(ps); this.m_ValueCollectionInt = ps.StudyValueMatrix as ValueMatrixIntCollection; this.m_ValueCollectionInt.Open(this.m_SubSysInterface.ProjectManager); Dictionary<short, Color> discreteColorDict = new Dictionary<short, Color>(); this.m_DefaultColor = Color.FromArgb(0, Color.White); List<MaxMinValue> maxMinValueList = this.GenerateColorDict(ps, discreteColorDict); foreach (ValueMatrixInt num in this.m_ValueCollectionInt.Values) { ValueMatrixShort throughputValueMatrix = new ValueMatrixShort(savePath, string.Empty, num.RowsCount, num.ColumnsCount); throughputValueMatrix.SetParam(num.NorthwestX, num.NorthwestY, (float) num.Resolution); throughputValueMatrix.SetValue(num.InvalidValue, num.NotCalcValue, num.DefaultValue); this.GenerateValueMatrixForGeo(maxMinValueList, num, throughputValueMatrix); string str2 = Enum.GetName(typeof(PredictionStudyType), ps.StudyType).Replace('_', ' '); GeoDiscreteEventArgs args = new GeoDiscreteEventArgs(throughputValueMatrix, discreteColorDict, this.m_DefaultColor); args.m_PolygonRegion = this.m_PredictionGroup.Region; int layerId = this.m_SubSysInterface.AnalyDispEvent.AnalyGeoDiscreteLayerMsgChanged(args); ps.StudyLegend.MapLever = layerId; this.UpdateTreeNodeTag(pg, ps, layerId); throughputValueMatrix.Close(false); } this.m_ValueCollectionInt.Close(false); }