Exemplo n.º 1
0
 public TrafficMapFunctionImp(IApplicationContext context, TrafficMapView trafficMapView)
 {
     this.m_Context = context;
     this.m_TrafficMapView = trafficMapView;
     this.m_TrafficMapModelService = context.Lookup(typeof(ITrafficMapModelService).FullName) as ITrafficMapModelService;
     this.m_GisPolygonAssist = this.m_TrafficMapModelService.GeoProvider.PolygonRegionAssist;
 }
Exemplo n.º 2
0
 public CellUserGenerator(IApplicationContext context)
 {
     this.m_ServiceContext = context;
     this.m_UserCollection = new UserCollection();
     this.m_CellClutterPtsCntDict = new Dictionary<int, Dictionary<short, int>>();
     this.m_CellClutterWeightFactorDict = new Dictionary<int, Dictionary<short, double>>();
     this.m_TrafficModelService = context.Lookup(typeof(ITrafficMapModelService).FullName) as ITrafficMapModelService;
     this.m_PolyAssist = this.m_TrafficModelService.PolygonRegionAssist;
 }
Exemplo n.º 3
0
 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();
 }
Exemplo n.º 4
0
 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();
 }
Exemplo n.º 5
0
 private GeoPolygonRegion getActuralPolyonRegion(IGeoPolygonAssist polyAssist, GeoPolygonRegion poly)
 {
     return polyAssist.FindPolygonById(poly.ID);
 }