本文整理汇总了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;
}
示例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;
}
示例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);
}