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; }
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; }
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(); }
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(); }
private GeoPolygonRegion getActuralPolyonRegion(IGeoPolygonAssist polyAssist, GeoPolygonRegion poly) { return polyAssist.FindPolygonById(poly.ID); }