private GeoPolygonAssist() { this.m_IsNeedReportProgress = false; this.m_ProgressStart = 0; this.m_ProgressEnd = 0; this.m_ProgressStr = null; this.m_HasAllMapCalc = false; this.m_IsClutterPercentRun = false; this.m_AreaRatio = 1.0; this.clutterIDPointInRectDict = new Dictionary<short, List<GeoXYPoint>>(); this.m_GeoPolygon = new Huawei.UNet.GIS.GeoInterface.GeoPolygon(); this.m_PolygonRegion = new GeoPolygonRegion(); this.m_ClutterIDCountDict = new Dictionary<short, int>(); this.m_ClutterIDIndexDict = new Dictionary<short, List<int>>(); this.m_ClutterIDPercentDict = new Dictionary<short, double>(); this.m_AllMapClutterIDPercentDict = new Dictionary<short, double>(); this.m_InvalidMaxMin = new MaxMinValue(); this.m_InvalidMaxMin.max = float.MaxValue; this.m_InvalidMaxMin.min = float.MinValue; }
private void GetRoundForMaxMin(ref MaxMinValue maxMin, int modle) { maxMin.max = (float) Math.Round((double) maxMin.max, modle); maxMin.min = (float) Math.Round((double) maxMin.min, modle); }
private MaxMinValue CreateMaxMinValue(float boundary1, float boundary2) { MaxMinValue value2 = new MaxMinValue(); if (boundary1 > boundary2) { value2.max = boundary1; value2.min = boundary2; return value2; } value2.max = boundary2; value2.min = boundary1; return value2; }
public GeoIntervalSytle(string featureName, Color color, MaxMinValue value) { base.m_FeatureName = featureName; base.m_Color = color; this.m_MaxMin = value; }
private void init(TreeNode selectNode, OtherSubSysInterface otherSubSysInterface, PredictionGroupsManager predictionGroupsManager, bool isGroup) { this.m_selectNode = selectNode; this.m_isGroup = isGroup; this.m_SubSysInterface = otherSubSysInterface; this.m_PredictionGroupsManager = predictionGroupsManager; this.m_letcelllist = this.m_SubSysInterface.INet.TranceiverList; this.geoProvider = this.m_SubSysInterface.IGis.GeoProvider; if (this.m_isGroup) { this.m_PredictionGroup = this.m_PredictionGroupsManager.Find(this.m_selectNode.Text); } else { this.m_PredictionGroup = this.m_PredictionGroupsManager.Find(this.m_selectNode.Parent.Text); } this.m_SelectedMaxMinValue = new List<MaxMinValue>(); this.m_MaxMinList = new List<MaxMinValue>(); this.m_study = this.GetPredictionStudy(); if (this.m_study != null) { int displayTypeIndex = this.m_study.StudyLegend.DisplayTypeIndex; this.m_MaxMinList.AddRange(this.m_study.StudyLegend.ValueIntervals[this.m_study.StudyLegend.FieldItem[displayTypeIndex]].ValueIntervalsField.Keys); } else { MaxMinValue item = new MaxMinValue(); item.min = 0f; item.max = 32767f; this.m_MaxMinList.Add(item); MaxMinValue value3 = new MaxMinValue(); value3.min = -5000f; value3.max = 0f; this.m_MaxMinList.Add(value3); MaxMinValue value4 = new MaxMinValue(); value4.min = -8000f; value4.max = -5000f; this.m_MaxMinList.Add(value4); MaxMinValue value5 = new MaxMinValue(); value5.min = -9000f; value5.max = -8000f; this.m_MaxMinList.Add(value5); MaxMinValue value6 = new MaxMinValue(); value6.min = -10000f; value6.max = -9000f; this.m_MaxMinList.Add(value6); MaxMinValue value7 = new MaxMinValue(); value7.min = -10500f; value7.max = -10000f; this.m_MaxMinList.Add(value7); MaxMinValue value8 = new MaxMinValue(); value8.min = -11000f; value8.max = -10500f; this.m_MaxMinList.Add(value8); MaxMinValue value9 = new MaxMinValue(); value9.min = -12000f; value9.max = -11000f; this.m_MaxMinList.Add(value9); MaxMinValue value10 = new MaxMinValue(); value10.min = -32768f; value10.max = -12000f; this.m_MaxMinList.Add(value10); } }
private void solveMinValueForDraw(ref MaxMinValue maxMinValue, ref float resultValue) { if (maxMinValue.min == -32768f) { List<MaxMinValue> list = new List<MaxMinValue>(); list.AddRange(this.m_Study.StudyLegend.ValueIntervals[this.m_Study.StudyLegend.FieldItem[2]].ValueIntervalsField.Keys); float min = 32767f; foreach (MaxMinValue value2 in list) { if ((maxMinValue.min < min) && (maxMinValue.min != -32768f)) { min = maxMinValue.min; } else if ((maxMinValue.min == -32768f) && (maxMinValue.max < min)) { min = maxMinValue.max; } } if (this.m_ActualMinValue < min) { min = this.m_ActualMinValue; } resultValue = min / 100f; } else { resultValue = maxMinValue.min / 100f; } }
private void solveMaxValueForDraw(ref MaxMinValue maxMinValue, ref float resultValue) { if (maxMinValue.max == float.MaxValue) { List<MaxMinValue> list = new List<MaxMinValue>(); list.AddRange(this.m_Study.StudyLegend.ValueIntervals[this.m_Study.StudyLegend.FieldItem[2]].ValueIntervalsField.Keys); float max = -32768f; foreach (MaxMinValue value2 in list) { if ((maxMinValue.max > max) && (maxMinValue.max != float.MaxValue)) { max = maxMinValue.max; } else if ((maxMinValue.max == float.MaxValue) && (maxMinValue.min > max)) { max = maxMinValue.min; } } if (this.m_ActualMaxValue > max) { max = this.m_ActualMaxValue; } resultValue = max / 100f; } else { resultValue = maxMinValue.max / 100f; } }
private float solveMaxMinValueForDraw(MaxMinValue maxMinValue, string symbol) { float resultValue = 0f; if (symbol.Equals("MAX")) { this.solveMaxValueForDraw(ref maxMinValue, ref resultValue); return resultValue; } if (symbol.Equals("MIN")) { this.solveMinValueForDraw(ref maxMinValue, ref resultValue); } return resultValue; }
private bool NeedSolveShortMinValue(MaxMinValue maxMinValue) { return (maxMinValue.min == -32768f); }
private bool NeedSolveFloatMaxValue(MaxMinValue maxMinValue) { return (maxMinValue.max == float.MaxValue); }