コード例 #1
0
ファイル: MapClutterHelper.cs プロジェクト: xiaoyj/Space
 public MapClutterHelper(List<GeoXYRect> rects, IGeoPolygonAssist polyAssist, Dictionary<short, ClutterData> clutterDataDict, IApplicationContext appContext)
 {
     this.m_ClutterAreaPercentDict = new Dictionary<short, double>();
     this.m_ClutterPtsCntDict = new Dictionary<short, int>();
     this.m_CluttersId = new List<short>();
     this.m_ClutterWeightFactorDict = new Dictionary<short, double>();
     this.m_ClutterDataDict = clutterDataDict;
     this.m_ClutterPtsCntDict = polyAssist.GetClutterCountDict(rects);
     this.GetClutterIDs();
     this.GetClutterAreaPercentDict();
     this.GetClutterWeightFactorDict();
 }
コード例 #2
0
ファイル: MapClutterHelper.cs プロジェクト: xiaoyj/Space
 public MapClutterHelper(GeoPolygonRegion poly, IGeoPolygonAssist polyAssist, Dictionary<short, ClutterData> clutterDataDict, IApplicationContext appContext, bool isFixure)
 {
     this.m_ClutterAreaPercentDict = new Dictionary<short, double>();
     this.m_ClutterPtsCntDict = new Dictionary<short, int>();
     this.m_CluttersId = new List<short>();
     this.m_ClutterWeightFactorDict = new Dictionary<short, double>();
     this.m_ClutterDataDict = clutterDataDict;
     this.EventViewService = appContext.Lookup(typeof(IEventViewService).FullName) as IEventViewService;
     this.EventViewService.SetProgressScope(TrafficMapResource.TRAFFICMAP_GENUSER, 0, 100);
     this.m_ClutterPtsCntDict = polyAssist.GetClutterCountDict(poly, new SimulationProgressHandle(this.ReportProgrss), 5, 0x55, TrafficMapResource.TRAFFICMAP_GENUSER, !isFixure);
     this.EventViewService.ResetProgress(TrafficMapResource.TRAFFICMAP_GENUSER);
     this.GetClutterIDs();
     this.GetClutterAreaPercentDict();
     this.GetClutterWeightFactorDict();
 }