当前位置: 首页>>代码示例>>C#>>正文


C# ValueMatrixShort.SetParam方法代码示例

本文整理汇总了C#中ValueMatrixShort.SetParam方法的典型用法代码示例。如果您正苦于以下问题:C# ValueMatrixShort.SetParam方法的具体用法?C# ValueMatrixShort.SetParam怎么用?C# ValueMatrixShort.SetParam使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ValueMatrixShort的用法示例。


在下文中一共展示了ValueMatrixShort.SetParam方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GenerateValueMatrixShortNoInitial

 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;
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:8,代码来源:ValueMatrixHandle.cs

示例2: GenerateValueMatrixShort

 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;
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:9,代码来源:ValueMatrixHandle.cs

示例3: ThroughputShow

 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);
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:25,代码来源:PredictionResultManager.cs


注:本文中的ValueMatrixShort.SetParam方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。